spi: mediatek: fix spi cs polarity error
authorLeilk Liu <leilk.liu@mediatek.com>
Mon, 7 Sep 2015 11:37:57 +0000 (19:37 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 7 Sep 2015 16:26:39 +0000 (17:26 +0100)
commit6583d2032d57df9f1c00c753ca58e1a822901bf0
treeb6721f9a52e34679452377bdcaa591bd79a830f3
parentc5992f610f78e6c9d0a78e8fef1066ad640e17e8
spi: mediatek: fix spi cs polarity error

Mediatek spi HW can't set cs inactive(keep cs high) directly.
Instead, it supplies pause mode to do it indirectly. If driver
unsets SPI_CMD_PAUSE_MODE in CMD_REG, it also needs to reset
internal state machine to let cs inactive at once.

Signed-off-by: Leilk Liu <leilk.liu@mediatek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mt65xx.c