Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: ath79: set number of chipselect lines

All chipsets from AR7100 up to QCA9563 have three dedicated chipselect
lines for the integrated SPI controller. Set the number of chipselect
lines available on the controller to this value.

Signed-off-by: David Bauer <mail@david-bauer.net>
Link: https://lore.kernel.org/r/20210522074453.39299-2-mail@david-bauer.net
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

David Bauer and committed by
Mark Brown
ab053f48 42a7dfa2

+1
+1
drivers/spi/spi-ath79.c
··· 153 153 master->use_gpio_descriptors = true; 154 154 master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32); 155 155 master->flags = SPI_MASTER_GPIO_SS; 156 + master->num_chipselect = 3; 156 157 157 158 sp->bitbang.master = master; 158 159 sp->bitbang.chipselect = ath79_spi_chipselect;