ARM: 5893/1: SPI AMBA PL022: Limit TX FIFO fills
authorLinus Walleij <linus.walleij@stericsson.com>
Fri, 22 Jan 2010 12:53:30 +0000 (13:53 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 27 Jan 2010 22:00:46 +0000 (22:00 +0000)
commitfc05475f867624dddd5ea7089cf8f434f95fbec5
tree2ce5ef39c5f65c5bf80fa836c0a709ee4dda55a9
parent08d1e2e68da977956ff10735148ac1de21c85afd
ARM: 5893/1: SPI AMBA PL022: Limit TX FIFO fills

Added logic to cap TX FIFO fill size based on current free RX
FIFO entries instead of TX status flags. This is to prevent
an issue with RX FIFO overflows.

Signed-off-by: Kevin Wells <kevin.wells@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/spi/amba-pl022.c