Skip to content

Commit b60500e

Browse files
committed
Merge tag 'spi-fix-v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown: "A few small driver specific fixes and device ID updates for SPI. The Apple change flags the driver as being compatible with the core's GPIO chip select support, fixing support for some systems" * tag 'spi-fix-v6.13-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: spi: omap2-mcspi: Fix the IS_ERR() bug for devm_clk_get_optional_enabled() spi: intel: Add Panther Lake SPI controller support spi: apple: Set use_gpio_descriptors to true spi: mpc52xx: Add cancel_work_sync before module remove
2 parents 35b7b33 + 4c6ac54 commit b60500e

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

drivers/spi/spi-apple.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ static int apple_spi_probe(struct platform_device *pdev)
493493
ctlr->prepare_message = apple_spi_prepare_message;
494494
ctlr->set_cs = apple_spi_set_cs;
495495
ctlr->transfer_one = apple_spi_transfer_one;
496+
ctlr->use_gpio_descriptors = true;
496497
ctlr->auto_runtime_pm = true;
497498

498499
pm_runtime_set_active(&pdev->dev);

drivers/spi/spi-intel-pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ static const struct pci_device_id intel_spi_pci_ids[] = {
8686
{ PCI_VDEVICE(INTEL, 0xa324), (unsigned long)&cnl_info },
8787
{ PCI_VDEVICE(INTEL, 0xa3a4), (unsigned long)&cnl_info },
8888
{ PCI_VDEVICE(INTEL, 0xa823), (unsigned long)&cnl_info },
89+
{ PCI_VDEVICE(INTEL, 0xe323), (unsigned long)&cnl_info },
90+
{ PCI_VDEVICE(INTEL, 0xe423), (unsigned long)&cnl_info },
8991
{ },
9092
};
9193
MODULE_DEVICE_TABLE(pci, intel_spi_pci_ids);

drivers/spi/spi-mpc52xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ static void mpc52xx_spi_remove(struct platform_device *op)
520520
struct mpc52xx_spi *ms = spi_controller_get_devdata(host);
521521
int i;
522522

523+
cancel_work_sync(&ms->work);
523524
free_irq(ms->irq0, ms);
524525
free_irq(ms->irq1, ms);
525526

drivers/spi/spi-omap2-mcspi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,10 +1561,10 @@ static int omap2_mcspi_probe(struct platform_device *pdev)
15611561
}
15621562

15631563
mcspi->ref_clk = devm_clk_get_optional_enabled(&pdev->dev, NULL);
1564-
if (mcspi->ref_clk)
1565-
mcspi->ref_clk_hz = clk_get_rate(mcspi->ref_clk);
1566-
else
1564+
if (IS_ERR(mcspi->ref_clk))
15671565
mcspi->ref_clk_hz = OMAP2_MCSPI_MAX_FREQ;
1566+
else
1567+
mcspi->ref_clk_hz = clk_get_rate(mcspi->ref_clk);
15681568
ctlr->max_speed_hz = mcspi->ref_clk_hz;
15691569
ctlr->min_speed_hz = mcspi->ref_clk_hz >> 15;
15701570

0 commit comments

Comments
 (0)