mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 17:23:36 +00:00
spi: Fixes for v6.13
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. -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmdTF8cACgkQJNaLcl1U h9AqQwf6AwgAgr6L9LjQreR3e9XRmmIc9JVNd6ehPB180IcX0i7BDaPYBhKXemK1 iJfGHLEQ+FD30aBo5MEPnQvv31xLPoV04jP5lNe+4qxuFtEbCe6nfY/gjezUhKF/ o+1X3qS16VJexHn6n7y6thlOKqFQCS5yqARcyi1d7pt3nCPDhoRehNR5YKEsKq7J HpIVHuac6NKAtkQjSDfEGA/yeZ00nAbRdjanz23eMyk0U0O09sWy1ZCPqk0QVeQG fR0hVNQDVD0Inv/5bPd+IIkZiiy9ukiyjRpIE0mp0ZFeMHBq5oD7eJFPFSj/oRIz Glo244zFeo0+CyfXmFzFaq7auIuPsA== =ZVd9 -----END PGP SIGNATURE----- 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
This commit is contained in:
commit
b60500e902
@ -493,6 +493,7 @@ static int apple_spi_probe(struct platform_device *pdev)
|
||||
ctlr->prepare_message = apple_spi_prepare_message;
|
||||
ctlr->set_cs = apple_spi_set_cs;
|
||||
ctlr->transfer_one = apple_spi_transfer_one;
|
||||
ctlr->use_gpio_descriptors = true;
|
||||
ctlr->auto_runtime_pm = true;
|
||||
|
||||
pm_runtime_set_active(&pdev->dev);
|
||||
|
@ -86,6 +86,8 @@ static const struct pci_device_id intel_spi_pci_ids[] = {
|
||||
{ PCI_VDEVICE(INTEL, 0xa324), (unsigned long)&cnl_info },
|
||||
{ PCI_VDEVICE(INTEL, 0xa3a4), (unsigned long)&cnl_info },
|
||||
{ PCI_VDEVICE(INTEL, 0xa823), (unsigned long)&cnl_info },
|
||||
{ PCI_VDEVICE(INTEL, 0xe323), (unsigned long)&cnl_info },
|
||||
{ PCI_VDEVICE(INTEL, 0xe423), (unsigned long)&cnl_info },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(pci, intel_spi_pci_ids);
|
||||
|
@ -520,6 +520,7 @@ static void mpc52xx_spi_remove(struct platform_device *op)
|
||||
struct mpc52xx_spi *ms = spi_controller_get_devdata(host);
|
||||
int i;
|
||||
|
||||
cancel_work_sync(&ms->work);
|
||||
free_irq(ms->irq0, ms);
|
||||
free_irq(ms->irq1, ms);
|
||||
|
||||
|
@ -1561,10 +1561,10 @@ static int omap2_mcspi_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
mcspi->ref_clk = devm_clk_get_optional_enabled(&pdev->dev, NULL);
|
||||
if (mcspi->ref_clk)
|
||||
mcspi->ref_clk_hz = clk_get_rate(mcspi->ref_clk);
|
||||
else
|
||||
if (IS_ERR(mcspi->ref_clk))
|
||||
mcspi->ref_clk_hz = OMAP2_MCSPI_MAX_FREQ;
|
||||
else
|
||||
mcspi->ref_clk_hz = clk_get_rate(mcspi->ref_clk);
|
||||
ctlr->max_speed_hz = mcspi->ref_clk_hz;
|
||||
ctlr->min_speed_hz = mcspi->ref_clk_hz >> 15;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user