[U-Boot] [PATCH v2] spi: zynq_spi: Fix infinite looping while xfer

Jagan Teki jagannadh.teki at gmail.com
Sun Jul 31 13:35:49 CEST 2016


On 31 July 2016 at 02:58, Lad Prabhakar <prabhakar.csengg at gmail.com> wrote:
> From: "Lad, Prabhakar" <prabhakar.csengg at gmail.com>
>
> 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 at gmail.com>
> Cc: Michal Simek <michal.simek at xilinx.com>
> Cc: Siva Durga Prasad Paladugu <sivadur at xilinx.com>
> Cc: Jagan Teki <jteki at openedev.com>

Applied to u-boot-spi/master

-- 
Jagan.


More information about the U-Boot mailing list