]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor-core: Do not start or end writes at odd address in DTR mode
authorPratyush Yadav <p.yadav@ti.com>
Tue, 4 Jun 2024 06:09:10 +0000 (11:39 +0530)
committerTom Rini <trini@konsulko.com>
Thu, 13 Jun 2024 00:40:37 +0000 (18:40 -0600)
commit11d5655919ab94f4452f45f1a1b38a6a30030705
tree13a736479f6684d4af4d7d585640c9a44307b3ce
parent15d0dcc0ec1f424199dff2a3cbe037bc3a7d8749
mtd: spi-nor-core: Do not start or end writes at odd address in DTR mode

On DTR capable flashes like Micron Xcella the writes cannot start or end
at an odd address in DTR mode. Extra 0xff bytes need to be prepended or
appended respectively to make sure both the start and end addresses are
even.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
Signed-off-by: Apurva Nandan <a-nandan@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Tested-by: Jonathan Humphreys <j-humphreys@ti.com>
Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
drivers/mtd/spi/spi-nor-core.c