[PATCH v5] mtd: spi-nor: Add support for S3AN spi-nor devices

Ricardo Ribalda Delgado ricardo.ribalda at gmail.com
Tue Sep 20 11:01:26 PDT 2016


Hi Boris

On Tue, Sep 20, 2016 at 6:25 PM, Boris Brezillon
<boris.brezillon at free-electrons.com> wrote:

>>       while (len) {
>> -             ret = nor->read(nor, from, len, buf);
>> +             loff_t addr = from;
>> +
>> +             if (nor->flags & SNOR_F_S3AN_ADDR_DEFAULT)
>> +                     addr = spi_nor_s3an_addr_convert(nor, addr);

That should not be an issue, the bigest s3an is  less than 4 MBytes :)

Thanks for your review



-- 
Ricardo Ribalda



More information about the linux-mtd mailing list