diff options
author | Linus Torvalds | 2024-03-07 12:21:18 -0800 |
---|---|---|
committer | Linus Torvalds | 2024-03-07 12:21:18 -0800 |
commit | c381c89de18015fab265d18d2fa2f30b395be216 (patch) | |
tree | a0560812f39b505c37c13f1a591fddbdb5f28adc | |
parent | d5c6c9f151c4b3f5a1e8f59c79814d510c78afab (diff) | |
parent | 177cddaa5bdfcbc4c3d4594bb44ed8338765fc29 (diff) |
Merge tag 'spi-fix-v6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fix from Mark Brown:
"One small fix for the newly added cs42l43 driver which would have
caused it problems working in some system configurations by needlessly
restricting chip select configurations"
* tag 'spi-fix-v6.8-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: cs42l43: Don't limit native CS to the first chip select
-rw-r--r-- | drivers/spi/spi-cs42l43.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-cs42l43.c b/drivers/spi/spi-cs42l43.c index b24190526ce9..adf19e8c4c8a 100644 --- a/drivers/spi/spi-cs42l43.c +++ b/drivers/spi/spi-cs42l43.c @@ -148,8 +148,7 @@ static void cs42l43_set_cs(struct spi_device *spi, bool is_high) { struct cs42l43_spi *priv = spi_controller_get_devdata(spi->controller); - if (spi_get_chipselect(spi, 0) == 0) - regmap_write(priv->regmap, CS42L43_SPI_CONFIG2, !is_high); + regmap_write(priv->regmap, CS42L43_SPI_CONFIG2, !is_high); } static int cs42l43_prepare_message(struct spi_controller *ctlr, struct spi_message *msg) |