Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
spi: spi-xilinx: Fix spi timeout issue with threaded irq enabled
The interrupt handler of the driver currently does a transfer finalize before disabling the SPI interrupt. With threaded interrupts enabled this can allow the SPI core to start a new SPI transfer between the transfer finalize and the interrupt disable, transfer completion interrupt for the current transfer will never occur which results in SPI timeout. This patch fixes the issue by disabling the SPI interrupts before finalizing the transfer. Currently we don't have ZynqMP AXI-QSPI setup to test threaded irq usecase. This fix is validated on customer's ZynqMP AXI-QSPI design. Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com> Reviewed-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
- Loading branch information