]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit837d6d641ea75cab0d4223fed331a1c8a5d657e9
tree2a5b95b24e37becfb18de8e41b0ab0715f1987f5
parent76a9c253e9ad909ff93a596bd2aa896d453ad36d
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: c8a4cc557783 ("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