diff options
author | Gregory CLEMENT <gregory.clement@bootlin.com> | 2019-10-17 16:18:41 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-21 10:34:59 +0100 |
commit | efef9c1f5c8be974f4b8dbda0f9a35b0644cd638 (patch) | |
tree | 26affd1f297617dc2c7f153585d9717a6e11a27e /security/smack/Kconfig | |
parent | 5020350fb0012816ee35f7b744ded18bb75ecc1e (diff) | |
download | linux-stable-efef9c1f5c8be974f4b8dbda0f9a35b0644cd638.tar.gz linux-stable-efef9c1f5c8be974f4b8dbda0f9a35b0644cd638.tar.bz2 linux-stable-efef9c1f5c8be974f4b8dbda0f9a35b0644cd638.zip |
spi: atmel: Fix CS high support
commit 7cbb16b2122c09f2ae393a1542fed628505b9da6 upstream.
Until a few years ago, this driver was only used with CS GPIO. The
only exception is CS0 on AT91RM9200 which has to use internal CS. A
limitation of the internal CS is that they don't support CS High.
So by using the CS GPIO the CS high configuration was available except
for the particular case CS0 on RM9200.
When the support for the internal chip-select was added, the check of
the CS high support was not updated. Due to this the driver accepts
this configuration for all the SPI controller v2 (used by all SoCs
excepting the AT91RM9200) whereas the hardware doesn't support it for
infernal CS.
This patch fixes the test to match the hardware capabilities.
Fixes: 4820303480a1 ("spi: atmel: add support for the internal chip-select of the spi controller")
Cc: <stable@vger.kernel.org>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
Link: https://lore.kernel.org/r/20191017141846.7523-3-gregory.clement@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/smack/Kconfig')
0 files changed, 0 insertions, 0 deletions