linux/drivers/mtd/spi-nor
Tudor Ambarus eb726c3220 mtd: spi-nor: core: Don't use mtd_info in the NOR's probe sequence of calls
Use NOR parameters in the probe's sequence of calls, thus
nor->params->size instead of nor->mtd.size and let the mtd_info
fields be used by the mtd calls (mtd->_erase, mtd->_read, mtd->_write).
mtd_info fields should not be used during probe because we haven't
registered mtd yet. It's safe to drop xilinx's setting of nor->mtd.size,
now that we use nor->params->size in spi_nor_set_addr_width().

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
Link: https://lore.kernel.org/r/20211207140254.87681-3-tudor.ambarus@microchip.com
2021-12-07 17:05:10 +02:00
..
controllers mtd: spi-nor: nxp-spifi: Make use of the helper function devm_platform_ioremap_resource_byname() 2021-10-15 11:58:50 +03:00
atmel.c mtd: spi-nor: atmel: Use flash late_init() for locking 2021-11-17 14:41:28 +02:00
catalyst.c mtd: spi-nor: Move Catalyst bits out of core.c 2020-03-17 09:28:05 +02:00
core.c mtd: spi-nor: core: Don't use mtd_info in the NOR's probe sequence of calls 2021-12-07 17:05:10 +02:00
core.h mtd: spi-nor: core: Introduce the late_init() hook 2021-11-17 14:41:28 +02:00
eon.c mtd: spi-nor: Move Eon bits out of core.c 2020-03-17 09:28:02 +02:00
esmt.c mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
everspin.c mtd: spi-nor: Move Everspin bits out of core.c 2020-03-17 09:28:03 +02:00
fujitsu.c mtd: spi-nor: Move Fujitsu bits out of core.c 2020-03-17 09:28:03 +02:00
gigadevice.c mtd: spi-nor: Trim what is exposed in spi-nor.h 2020-03-17 09:28:07 +02:00
intel.c mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
issi.c mtd: spi-nor: Get rid of duplicated argument in spi_nor_parse_sfdp() 2021-03-15 18:01:47 +02:00
Kconfig mtd: spi-nor: keep lock bits if they are non-volatile 2020-12-07 23:01:15 +05:30
macronix.c mtd: spi-nor: enable locking support for MX25L12805D 2021-05-27 20:04:38 +05:30
Makefile mtd: spi-nor: add initial sysfs support 2021-06-15 23:18:32 +05:30
micron-st.c mtd: spi-nor: Enable locking for n25q128a13 2021-10-15 11:37:44 +03:00
otp.c mtd: spi-nor: otp: implement erase for Winbond and similar flashes 2021-06-09 23:34:16 +05:30
sfdp.c mtd: spi-nor: sfdp: save a copy of the SFDP data 2021-06-15 23:18:31 +05:30
sfdp.h mtd: spi-nor: Get rid of duplicated argument in spi_nor_parse_sfdp() 2021-03-15 18:01:47 +02:00
spansion.c mtd: spi-nor: spansion: Use manufacturer late_init() 2021-11-17 14:41:29 +02:00
sst.c mtd: spi-nor: sst: Use manufacturer late_init() to set _write() 2021-11-17 14:41:29 +02:00
swp.c mtd: spi-nor: swp: Improve code around spi_nor_check_lock_status_sr() 2021-03-31 22:41:34 +03:00
sysfs.c mtd: spi-nor: add initial sysfs support 2021-06-15 23:18:32 +05:30
winbond.c mtd: spi-nor: winbond: Use manufacturer late_init() for OTP ops 2021-11-17 14:41:28 +02:00
xilinx.c mtd: spi-nor: core: Don't use mtd_info in the NOR's probe sequence of calls 2021-12-07 17:05:10 +02:00
xmc.c mtd: spi-nor: Move XMC bits out of core.c 2020-03-17 09:28:06 +02:00