summaryrefslogtreecommitdiff
path: root/include/linux/crc-itu-t.h
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@foss.st.com>2022-06-29 16:30:13 +0300
committerTudor Ambarus <tudor.ambarus@microchip.com>2022-07-28 05:34:23 +0300
commitf8cd9f632f4415b1e8838bdca8ab42cfb37a6584 (patch)
tree7f32624a23ba12819c23056c74cbac814ebb56d6 /include/linux/crc-itu-t.h
parentb6b23833fc42a10ceed00006cb0a6184f9b9bbde (diff)
downloadlinux-f8cd9f632f4415b1e8838bdca8ab42cfb37a6584.tar.xz
mtd: spi-nor: fix spi_nor_spimem_setup_op() call in spi_nor_erase_{sector,chip}()
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. Tested on stm32mp157c-ev1 board with mx66l51235f spi-nor. Fixes: 0e30f47232ab ("mtd: spi-nor: add support for DTR protocol") Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com> [ta: use nor->reg_proto in spi_nor_controller_ops_erase()] Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Tested-by: Alexander Sverdlin <alexander.sverdlin@nokia.com> Reviewed-by: Pratyush Yadav <p.yadav@ti.com> Link: https://lore.kernel.org/r/20220629133013.3382393-1-patrice.chotard@foss.st.com
Diffstat (limited to 'include/linux/crc-itu-t.h')
0 files changed, 0 insertions, 0 deletions