Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtd: spi-nor: update ptr pointer after spi_nor_read_data
In spi_nor_spimem_xfer_data, it will limit the transfer size according to nor->bouncebuf_size which is usually equal to PAGE_SIZE. This means that sometimes a spi_nor_read operation will be split into several spi_nor_read_data operations if the transfer size is bigger than PAGE_SIZE . Considering the case above, when is_ofst_odd is 0, we initialize the "ptr" to be the "buf" and pass "ptr" as the argument to spi_nor_read_data, the "ptr" should be updated as the "buf" after spi_nor_read_data is called, or else the receive data will be stored in the same place every time. Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com> Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com> State: pending
- Loading branch information