]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor: Fix the spi_nor_read() when config SPI_STACKED_PARALLEL is enabled
authorVenkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
Mon, 30 Dec 2024 07:02:06 +0000 (12:32 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 30 Dec 2024 14:20:15 +0000 (08:20 -0600)
commit9bb02f7f4533fbb48c8a5822b4b41a2e527b949c
treebcd9a6f9f6b8992b00aa96839556341f90e65daa
parentcb7410257ac930a6fb05f1c63b291b7d399f19f2
mtd: spi-nor: Fix the spi_nor_read() when config SPI_STACKED_PARALLEL is enabled

Update the spi_nor_read() function based on the config SPI_FLASH_BAR
and update the length and bank calculation by spliting the memory of
16MB size banks only when the address width is 3byte.
Fix the read issue for 4byte address width by passing the entire
length to the read function.

Fixes: 5d40b3d384 ("mtd: spi-nor: Add parallel and stacked memories support")
Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@amd.com>
drivers/mtd/spi/spi-nor-core.c