spi: cs42l43: Don't limit native CS to the first chip select
Subsystems (2)
PATCH 1/1 spi: cs42l43: Don't limit native CS to the first chip select
As the chip selects can be configured through ACPI/OF/swnode, and the set_cs() callback will only be called when a native chip select is being used, there is no reason for the driver to only support the native chip select as the first chip select. Remove the check that introduces this limitation.
--- drivers/spi/spi-cs42l43.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/spi/spi-cs42l43.c +1 -2
@@ -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)
Signature · 1 line
2.39.2
Mark Brown
maintainerQuoted 8 lines · Charles Keepax
As the chip selects can be configured through ACPI/OF/swnode, and the
set_cs()callback will only be called when a native chip select is being used, there is no reason for the driver to only support the native chip select as the first chip select. Remove the check that introduces this limitation.[...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
Thanks!
[1/1] spi: cs42l43: Don't limit native CS to the first chip select
commit: 177cddaa5bdfcbc4c3d4594bb44ed8338765fc29
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark