On 02/20/2017 09:12 AM, Rafał Miłecki wrote: > On 14 February 2017 at 16:32, Kamal Dasu <kdasu.kdev@xxxxxxxxx> 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@xxxxxxxxx> > > 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 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html