Skip to content
Commit 2d4675ed authored by Amit Kumar Mahapatra's avatar Amit Kumar Mahapatra Committed by Quanyang Wang
Browse files

spi: spi-cadence: Correct irq sequence for read



commit b9d25b16eb5bb405aa933406e211b521f09ec9ff from
https://github.com/Xilinx/linux-xlnx.git xlnx_rebase_v6.1

In current implementation during a read operation the driver reads one
extra byte than the number of bytes requested by spi-nor(from  RXFIFO
to system memory). In this process it tries a modify a memory location
that isn't allocated for the read operation. If the memory that driver
was trying to write is an read-only memory then this results in kernel
crash. Updated the driver irq sequence to return immediately after
finalizing the transfer.

Fixes: 46acc8a4ccbe ("spi: spi-cadence: Fix transfer timeout issue")
Signed-off-by: default avatarAmit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
Reviewed-by: default avatarRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
State: pending
Signed-off-by: default avatarQuanyang Wang <quanyang.wang@windriver.com>
parent 8597f273
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment