]> git.baikalelectronics.ru Git - kernel.git/commit
spi: imx: do not access registers while clocks disabled
authorStefan Agner <stefan@agner.ch>
Sun, 7 Jan 2018 14:05:49 +0000 (15:05 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 8 Jan 2018 11:19:07 +0000 (11:19 +0000)
commit99d6f8fbe4acd89428922b9ef1a25fcd13e8b55e
tree237f253de8dd3f8a6bb2e047930bd8e84fd07290
parentf9e9d4ede33f20ad238fc11db0232eaede684940
spi: imx: do not access registers while clocks disabled

Since clocks are disabled except during message transfer clocks
are also disabled when spi_imx_remove gets called. Accessing
registers leads to a freeeze at least on a i.MX 6ULL. Enable
clocks before disabling accessing the MXC_CSPICTRL register.

Fixes: c5a7e4e8544d4 ("spi: spi-imx: only enable the clocks when we start to transfer a message")
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
drivers/spi/spi-imx.c