spi: fsi: Check mux status before transfers
authorEddie James <eajames@linux.ibm.com>
Wed, 9 Sep 2020 22:28:57 +0000 (17:28 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 17 Sep 2020 18:31:43 +0000 (19:31 +0100)
commit9211a441e60686eec2ebd8f7bd65c4f780416404
tree68885d300b39a1055a49a47d87c5a823453051b1
parent49c9fc1d7c101eceaddb655e4f0e062b0c8f403b
spi: fsi: Check mux status before transfers

The SPI controllers are not accessible if the mux isn't set. Therefore,
check the mux status before starting a transfer and fail out if it isn't
set.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20200909222857.28653-7-eajames@linux.ibm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsi.c