Skip to content

Commit 6f2f486

Browse files
committed
Merge tag 'spi-fix-v5.9-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fix from Mark Brown: "One last minute fix for v5.9 which has been causing crashes in test systems with the fsl-dspi driver when they hit deferred probe (and which I probably let cook in next a bit longer than is ideal). And an update to MAINTAINERS reflecting Serge's extensive and detailed recent work on the DesignWare driver" * tag 'spi-fix-v5.9-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: MAINTAINERS: Add maintainer of DW APB SSI driver spi: fsl-dspi: fix NULL pointer dereference
2 parents 8a5f78d + 1c33524 commit 6f2f486

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

MAINTAINERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16732,6 +16732,13 @@ S: Maintained
1673216732
F: Documentation/devicetree/bindings/gpio/snps,dw-apb-gpio.yaml
1673316733
F: drivers/gpio/gpio-dwapb.c
1673416734

16735+
SYNOPSYS DESIGNWARE APB SSI DRIVER
16736+
M: Serge Semin <[email protected]>
16737+
16738+
S: Supported
16739+
F: Documentation/devicetree/bindings/spi/snps,dw-apb-ssi.yaml
16740+
F: drivers/spi/spi-dw*
16741+
1673516742
SYNOPSYS DESIGNWARE AXI DMAC DRIVER
1673616743
M: Eugeniy Paltsev <[email protected]>
1673716744
S: Maintained

drivers/spi/spi-fsl-dspi.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,9 @@ static int dspi_probe(struct platform_device *pdev)
12811281
if (!ctlr)
12821282
return -ENOMEM;
12831283

1284+
spi_controller_set_devdata(ctlr, dspi);
1285+
platform_set_drvdata(pdev, dspi);
1286+
12841287
dspi->pdev = pdev;
12851288
dspi->ctlr = ctlr;
12861289

@@ -1417,8 +1420,6 @@ static int dspi_probe(struct platform_device *pdev)
14171420
if (dspi->devtype_data->trans_mode != DSPI_DMA_MODE)
14181421
ctlr->ptp_sts_supported = true;
14191422

1420-
platform_set_drvdata(pdev, dspi);
1421-
14221423
ret = spi_register_controller(ctlr);
14231424
if (ret != 0) {
14241425
dev_err(&pdev->dev, "Problem registering DSPI ctlr\n");

0 commit comments

Comments
 (0)