Skip to content

Commit c381c89

Browse files
committed
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
2 parents d5c6c9f + 177cdda commit c381c89

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/spi/spi-cs42l43.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,7 @@ static void cs42l43_set_cs(struct spi_device *spi, bool is_high)
148148
{
149149
struct cs42l43_spi *priv = spi_controller_get_devdata(spi->controller);
150150

151-
if (spi_get_chipselect(spi, 0) == 0)
152-
regmap_write(priv->regmap, CS42L43_SPI_CONFIG2, !is_high);
151+
regmap_write(priv->regmap, CS42L43_SPI_CONFIG2, !is_high);
153152
}
154153

155154
static int cs42l43_prepare_message(struct spi_controller *ctlr, struct spi_message *msg)

0 commit comments

Comments
 (0)