Boris Brezillon
dff972458a
mtd: spi-nor: Rework the SPI NOR lock/unlock logic
...
Add the SNOR_F_HAS_LOCK flag and set it when SPI_NOR_HAS_LOCK is set
in the flash_info entry or when it's a Micron or ST flash.
Move the locking hooks in a separate struct so that we have just
one field to update when we change the locking implementation.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com >
[tudor.ambarus@microchip.com: use ->default_init() hook, introduce
spi_nor_late_init_params(), set ops in nor->params]
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com>
2019-08-28 12:40:28 +03:00
..
2019-08-22 10:47:41 +02:00
2019-07-28 12:44:14 +02:00
2019-08-08 13:01:19 -07:00
2019-08-28 12:40:28 +03:00
2019-07-19 17:13:56 -07:00
2019-07-25 15:37:04 +02:00
2019-07-19 17:13:56 -07:00
2019-07-18 14:32:33 -07:00
2019-08-15 15:18:05 +02:00
2019-08-15 11:09:16 -06:00
2019-08-09 09:17:05 -07:00
2019-07-22 14:32:20 -07:00
2019-07-21 13:31:14 -07:00
2019-07-24 10:12:09 -07:00
2019-07-19 10:42:02 -07:00
2019-07-18 14:49:33 -07:00
2019-07-27 08:25:51 -07:00
2019-07-25 11:34:39 -07:00
2019-08-21 07:14:10 +09:00
2019-07-23 17:43:58 +02:00
2019-08-10 19:52:45 +02:00
2019-07-23 07:25:09 -06:00
2019-07-23 13:59:33 -07:00
2019-07-19 10:42:02 -07:00
2019-07-30 13:16:57 -06:00
2019-08-13 16:06:52 -07:00
2019-08-14 10:57:18 +02:00
2019-07-25 16:14:39 -03:00
2019-07-18 17:08:06 -07:00
2019-07-30 14:42:13 -07:00
2019-07-26 14:20:06 -07:00
2019-07-23 09:51:00 +02:00
2019-08-19 09:43:57 -07:00
2019-08-05 12:55:49 +02:00
2019-08-13 16:06:52 -07:00
2019-07-18 17:08:07 -07:00
2019-07-18 17:08:07 -07:00
2019-08-13 16:06:52 -07:00
2019-07-18 17:08:07 -07:00
2019-08-13 16:06:52 -07:00
2019-07-18 17:08:07 -07:00
2019-07-18 17:08:07 -07:00
2019-07-25 20:12:38 +03:00
2019-07-18 17:08:06 -07:00
2019-07-26 17:01:29 -06:00
2019-08-03 07:02:01 -07:00
2019-08-01 06:39:33 +02:00
2019-08-12 10:47:55 +02:00
2019-07-25 15:37:05 +02:00
2019-08-19 06:34:13 -05:00
2019-08-08 22:39:35 -07:00
2019-07-22 16:04:17 +02:00
2019-08-08 22:39:35 -07:00
2019-07-19 10:42:02 -07:00
2019-07-18 17:08:07 -07:00
2019-08-23 02:12:11 +02:00
2019-08-15 15:18:05 +02:00