spi: fsi: Implement restricted size for certain controllers
authorEddie James <eajames@linux.ibm.com>
Wed, 9 Sep 2020 22:28:56 +0000 (17:28 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 17 Sep 2020 18:31:42 +0000 (19:31 +0100)
commit49c9fc1d7c101eceaddb655e4f0e062b0c8f403b
tree2a5b95b24e37becfb18de8e41b0ab0715f1987f5
parent7909eebb2bea7fdbb2de0aa794cf29843761ed5b
spi: fsi: Implement restricted size for certain controllers

Some of the FSI-attached SPI controllers cannot use the loop command in
programming the sequencer due to security requirements. Check the
devicetree compatibility that indicates this condition and restrict the
size for these controllers. Also, add more transfers directly in the
sequence up to the length of the sequence register.

Fixes: bbb6b2f9865b ("spi: Add FSI-attached SPI controller driver")
Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20200909222857.28653-6-eajames@linux.ibm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsi.c