spi/pl022: strengthen FIFO watermark level checks
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 16 Jun 2011 08:14:46 +0000 (10:14 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 16 Jun 2011 14:27:05 +0000 (08:27 -0600)
commit78b2b911bf7020359a2adb54adfca522cf776141
tree8a5125981b252ea1f774d65cda6e24a915f22aac
parentbcda6ff8ddffa593635ed7e6f620a1ef3b827ffc
spi/pl022: strengthen FIFO watermark level checks

The platform configuration can select custom FIFO watermarks, but
these may conflict the actual FIFO size of the PL022 variant if
set too high. So strengthen the sanity checks to deny any
conflicting settings.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-pl022.c