spi: dw-pci: correct number of chip selects
PATCH 1/1 spi: dw-pci: correct number of chip selects
The commit d58cf5ff6500 brought a second controller to the list of supported devices and changed a number of the chip selects. Besides the previous number was wrong anyway the mentioned patch makes it wrong again meanwhile has a proper numbers in the commit message. Indeed, SPI1 has 5 bits and SPI2 has 2 bits, but it does not mean to have power of two of this bits as a possible number of the chip selects. So, this patch fixes it eventually.
--- drivers/spi/spi-dw-pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/spi/spi-dw-pci.c +2 -2
@@ -36,13 +36,13 @@ struct spi_pci_desc {static struct spi_pci_desc spi_pci_mid_desc_1 = { .setup = dw_spi_mid_init, - .num_cs =32 , + .num_cs =5 , .bus_num =0 , };static struct spi_pci_desc spi_pci_mid_desc_2 = { .setup = dw_spi_mid_init, - .num_cs =4 , + .num_cs =2 , .bus_num =1 , };
Signature · 6 lines
2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1424706954-6055-1-git-send-email-andriy.shevchenko-VuQAYsv1563Yd54FQh9/[email protected]
Mark Brown
AppliedQuoted 2 lines · Andy Shevchenko
The commit
d58cf5ff6500brought a second controller to the list of supported devices and changed a number of the chip selects. Besides the previous number
Applied, thanks.