ath79: restore pin state on probe for ar934x-spi
authorChuanhong Guo <gch981213@gmail.com>
Sun, 9 Feb 2020 15:05:04 +0000 (23:05 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Mon, 10 Feb 2020 03:59:20 +0000 (11:59 +0800)
commit9c19c35d1ee3af7dc4f173871ab774d8d30a4e18
tree4dba41a60dc548c1e2c4b92502ad1efa4b8617c0
parent7df120b1b0e8ea37ac6112f3cd0813bed1e286f5
ath79: restore pin state on probe for ar934x-spi

If bootloader doesn't terminate its last spi operation properly
before starting kernel, our first transfer in kernel becomes a
continuous transfer to that request instead of a new one.
Fix this flaw by restoring IOC register, which restored all pin
state to default.

Fixes: ebf0d8dade ("ath79: add new ar934x spi driver")
Reported-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ath79/patches-4.19/0051-spi-add-driver-for-ar934x-spi-controller.patch