Files
kernel_arpi/include/linux
Kamal Dasu 46dde01f6b mtd: spi-nor: add spi_nor_init() function
This patch extracts some chunks from spi_nor_init_params and spi_nor_scan()
 and moves them into a new spi_nor_init() function.

Indeed, spi_nor_init() regroups all the required SPI flash commands to be
sent to the SPI flash memory before performing any runtime operations
(Fast Read, Page Program, Sector Erase, ...). Hence spi_nor_init():
1) removes the flash protection if applicable for certain vendors.
2) sets the Quad Enable bit, if needed, before using Quad SPI protocols.
3) makes the memory enter its (stateful) 4-byte address mode, if needed,
   for SPI flash memory > 128Mbits not supporting the 4-byte address
   instruction set.

spi_nor_scan() now ends by calling spi_nor_init() once the probe phase has
completed. Further patches could also use spi_nor_init() to implement the
mtd->_resume() handler for the spi-nor framework.

Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@wedev4u.fr>
2017-10-10 18:19:42 +02:00
..
2017-09-06 19:56:49 +02:00
2017-10-04 10:22:55 +02:00
2017-09-01 16:35:50 -05:00
2017-09-08 18:26:49 -07:00
2017-08-30 14:40:40 +02:00
2017-09-04 00:05:22 +02:00
2017-09-04 00:06:02 +02:00
2017-09-05 12:53:11 +02:00
2017-09-08 18:26:46 -07:00
2017-09-07 11:53:11 +02:00
2017-09-25 08:56:05 -06:00
2017-09-06 17:27:26 -07:00
2017-09-08 18:26:47 -07:00
2017-09-11 12:29:41 -04:00
2017-09-15 16:57:10 +02:00
2017-09-08 18:26:48 -07:00
2017-08-31 18:50:14 +02:00
2017-09-05 06:34:17 -07:00