Skip to content

Commit 4fb7d85

Browse files
committed
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
2 parents 8685de2 + d81d0e4 commit 4fb7d85

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

drivers/spi/spi-altera-dfl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static int dfl_spi_altera_probe(struct dfl_device *dfl_dev)
134134
if (!master)
135135
return -ENOMEM;
136136

137-
master->bus_num = dfl_dev->id;
137+
master->bus_num = -1;
138138

139139
hw = spi_master_get_devdata(master);
140140

drivers/spi/spi-altera-platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static int altera_spi_probe(struct platform_device *pdev)
4848
return err;
4949

5050
/* setup the master state. */
51-
master->bus_num = pdev->id;
51+
master->bus_num = -1;
5252

5353
if (pdata) {
5454
if (pdata->num_chipselect > ALTERA_SPI_MAX_CS) {

drivers/spi/spi-pl022.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1716,12 +1716,13 @@ static int verify_controller_parameters(struct pl022 *pl022,
17161716
return -EINVAL;
17171717
}
17181718
} else {
1719-
if (chip_info->duplex != SSP_MICROWIRE_CHANNEL_FULL_DUPLEX)
1719+
if (chip_info->duplex != SSP_MICROWIRE_CHANNEL_FULL_DUPLEX) {
17201720
dev_err(&pl022->adev->dev,
17211721
"Microwire half duplex mode requested,"
17221722
" but this is only available in the"
17231723
" ST version of PL022\n");
1724-
return -EINVAL;
1724+
return -EINVAL;
1725+
}
17251726
}
17261727
}
17271728
return 0;

0 commit comments

Comments
 (0)