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

Marek Vasut marex at denx.de
Mon Feb 20 00:15:34 PST 2017


On 02/20/2017 09:12 AM, Rafał Miłecki wrote:
> 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 :)
> 
It reinits the SPI NOR (if I understand it correctly). Being able to use
it on some boards after resume is a side-effect, so it should be listed
as such.

-- 
Best regards,
Marek Vasut



More information about the linux-mtd mailing list