Searched hist:d2998286fc58e3ac6c75ed4d3a1e77b618bbf2ae (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/spi/ |
| H A D | zynq_spi.c | d2998286fc58e3ac6c75ed4d3a1e77b618bbf2ae Sat Jul 30 21:28:24 UTC 2016 Lad, Prabhakar <prabhakar.csengg@gmail.com> spi: zynq_spi: Fix infinite looping while xfer
During spi transfer, for example: sspi 1:1.0 8 ff
the rx_len values will be: rx_len = 0 rx_len = 4294967295
This caused a busy looping during xfer, this patch fixes it by adding a check while reading the rx fifo
Signed-off-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Siva Durga Prasad Paladugu <sivadur@xilinx.com> Reviewed-by: Jagan Teki <jteki@openedev.com>
|