mtd: spi-nor: fix spi_nor_spimem_setup_op() call in spi_nor_erase_{sector,chip}()
Tudor Ambarus
tudor.ambarus at microchip.com
Wed Jul 27 19:38:58 PDT 2022
On Wed, 29 Jun 2022 15:30:13 +0200, patrice.chotard at foss.st.com wrote:
> From: Patrice Chotard <patrice.chotard at foss.st.com>
>
> For erase operations, reg_proto must be used as indicated in
> struct spi_nor description in spi-nor.h.
>
> This issue was found when DT property spi-tx-bus-width is set to 4.
> In this case the spi_mem_op->addr.buswidth is set to 4 for erase command
> which is not correct.
>
> [...]
Used nor->reg_proto in spi_nor_controller_ops_erase() and applied to
spi-nor/next, thanks!
[1/1] mtd: spi-nor: fix spi_nor_spimem_setup_op() call in spi_nor_erase_{sector,chip}()
https://git.kernel.org/mtd/c/7f5ee1a113a9
Best regards,
--
Tudor Ambarus <tudor.ambarus at microchip.com>
More information about the linux-mtd
mailing list