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

Merge tag 'spi-fix-v5.15-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi

Pull spi fixes from Mark Brown:
"A couple of final driver specific fixes for v5.15, one fixing
potential ID collisions between two instances of the Altera driver and
one making Microwire full duplex mode actually work on pl022"

* tag 'spi-fix-v5.15-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: spl022: fix Microwire full duplex mode
spi: altera: Change to dynamic allocation of spi id

+5 -4
+1 -1
drivers/spi/spi-altera-dfl.c
··· 134 134 if (!master) 135 135 return -ENOMEM; 136 136 137 - master->bus_num = dfl_dev->id; 137 + master->bus_num = -1; 138 138 139 139 hw = spi_master_get_devdata(master); 140 140
+1 -1
drivers/spi/spi-altera-platform.c
··· 48 48 return err; 49 49 50 50 /* setup the master state. */ 51 - master->bus_num = pdev->id; 51 + master->bus_num = -1; 52 52 53 53 if (pdata) { 54 54 if (pdata->num_chipselect > ALTERA_SPI_MAX_CS) {
+3 -2
drivers/spi/spi-pl022.c
··· 1716 1716 return -EINVAL; 1717 1717 } 1718 1718 } else { 1719 - if (chip_info->duplex != SSP_MICROWIRE_CHANNEL_FULL_DUPLEX) 1719 + if (chip_info->duplex != SSP_MICROWIRE_CHANNEL_FULL_DUPLEX) { 1720 1720 dev_err(&pl022->adev->dev, 1721 1721 "Microwire half duplex mode requested," 1722 1722 " but this is only available in the" 1723 1723 " ST version of PL022\n"); 1724 - return -EINVAL; 1724 + return -EINVAL; 1725 + } 1725 1726 } 1726 1727 } 1727 1728 return 0;