[PATCH v4 1/2] mtd: spi-nor: Added spi-nor init function

Rafał Miłecki zajec5 at gmail.com
Mon Feb 20 00:12:08 PST 2017


On 14 February 2017 at 16:32, Kamal Dasu <kdasu.kdev at gmail.com> wrote:
> Refactored spi_nor_scan() code to add spi_nor_init() function that
> programs the spi-nor flash to:
> 1) remove flash protection if applicable
> 2) set read mode to quad mode if configured such
> 3) set the address width based on the flash size and vendor
>
> spi_nor_scan() now calls spi_nor_init() to setup nor flash.
>
> Signed-off-by: Kamal Dasu <kdasu.kdev at gmail.com>

Ideally a short reason info should go there.
"This allows reusing spi_nor_init during resume"
or whatever :)



More information about the linux-mtd mailing list