On Thu, Nov 07, 2024 at 11:40:00AM +0100, Miquel Raynal wrote: > On 01/11/2024 at 20:17:33 GMT, Mark Brown <broonie@xxxxxxxxxx> wrote: > > After applying this patch (I bisected the series) my Avenger96 board > > started failing to probe the SPI NOR flash it has: > > [ 3.567876] spi-nor spi0.0: probe with driver spi-nor failed with > > error -95 > Would you mind testing the series with this change on top and tell me if > that fixes it? > > --- a/drivers/spi/spi-mem.c > +++ b/drivers/spi/spi-mem.c > @@ -184,7 +184,7 @@ bool spi_mem_default_supports_op(struct spi_mem *mem, > return false; > } > > - if (op->max_freq < mem->spi->max_speed_hz) { > + if (op->max_freq && op->max_freq < mem->spi->max_speed_hz) { > if (!spi_mem_controller_is_capable(ctlr, per_op_freq)) > return false; > } Yes, that seems to have been the issue.
Attachment:
signature.asc
Description: PGP signature