spi/rockchip: Don't warn if SPI is busy but disabled
authorDoug Anderson <dianders@chromium.org>
Wed, 3 Sep 2014 20:44:26 +0000 (13:44 -0700)
committerMark Brown <broonie@kernel.org>
Thu, 4 Sep 2014 22:54:11 +0000 (23:54 +0100)
commit62946172c81578477fcbb26478aebaa31353488d
tree9e274b45ca36ec40a60921ff1d96641b10ca1241
parent64bc0110f1ec905b1676b5ef60c1cc5b1799e1b6
spi/rockchip: Don't warn if SPI is busy but disabled

The reference manual from Rockchip claims this about the BSF (SPI Busy
Flag):
* 0 - SPI is idle or disabled
* 1 - SPI is actively transferring data

The above doesn't quite appear to be true.  Specifically I found the
busy bit set when SPI was disabled.  Let's change the WARN_ON() so we
only check the busy bit if the controller was enabled.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c