Skip to content

Commit 1793eac

Browse files
committed
Merge tag 'spi-fix-v6.5-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fixes from Mark Brown: "A few mostly minor fixes that came in during the merge window, plus one administrative update for Jonas' e-mail address. The spi-geni-qcom fix is more major than the others, fixing the newly added DMA support for large reads which trigger DMA" * tag 'spi-fix-v6.5-merge-window' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi: spi: bcm{63xx,bca}-hsspi: update my email address spi: rzv2m-csi: Fix SoC product name spi: bcm-qspi: return error if neither hif_mspi nor mspi is available spi: spi-geni-qcom: enable SPI_CONTROLLER_MUST_TX for GPI DMA mode
2 parents 146d7ce + 879a879 commit 1793eac

File tree

5 files changed

+12
-10
lines changed

5 files changed

+12
-10
lines changed

drivers/spi/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ config SPI_RSPI
826826
SPI driver for Renesas RSPI and QSPI blocks.
827827

828828
config SPI_RZV2M_CSI
829-
tristate "Renesas RZV2M CSI controller"
829+
tristate "Renesas RZ/V2M CSI controller"
830830
depends on ARCH_RENESAS || COMPILE_TEST
831831
help
832832
SPI driver for Renesas RZ/V2M Clocked Serial Interface (CSI)

drivers/spi/spi-bcm-qspi.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,13 +1543,9 @@ int bcm_qspi_probe(struct platform_device *pdev,
15431543
res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
15441544
"mspi");
15451545

1546-
if (res) {
1547-
qspi->base[MSPI] = devm_ioremap_resource(dev, res);
1548-
if (IS_ERR(qspi->base[MSPI]))
1549-
return PTR_ERR(qspi->base[MSPI]);
1550-
} else {
1551-
return 0;
1552-
}
1546+
qspi->base[MSPI] = devm_ioremap_resource(dev, res);
1547+
if (IS_ERR(qspi->base[MSPI]))
1548+
return PTR_ERR(qspi->base[MSPI]);
15531549

15541550
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "bspi");
15551551
if (res) {

drivers/spi/spi-bcm63xx-hsspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Broadcom BCM63XX High Speed SPI Controller driver
33
*
44
* Copyright 2000-2010 Broadcom Corporation
5-
* Copyright 2012-2013 Jonas Gorski <[email protected]>
5+
* Copyright 2012-2013 Jonas Gorski <[email protected]>
66
*
77
* Licensed under the GNU/GPL. See COPYING for details.
88
*/

drivers/spi/spi-bcmbca-hsspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Broadcom BCMBCA High Speed SPI Controller driver
44
*
55
* Copyright 2000-2010 Broadcom Corporation
6-
* Copyright 2012-2013 Jonas Gorski <[email protected]>
6+
* Copyright 2012-2013 Jonas Gorski <[email protected]>
77
* Copyright 2019-2022 Broadcom Ltd
88
*/
99

drivers/spi/spi-geni-qcom.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,12 @@ static int spi_geni_probe(struct platform_device *pdev)
10971097
if (mas->cur_xfer_mode == GENI_SE_FIFO)
10981098
spi->set_cs = spi_geni_set_cs;
10991099

1100+
/*
1101+
* TX is required per GSI spec, see setup_gsi_xfer().
1102+
*/
1103+
if (mas->cur_xfer_mode == GENI_GPI_DMA)
1104+
spi->flags = SPI_CONTROLLER_MUST_TX;
1105+
11001106
ret = request_irq(mas->irq, geni_spi_isr, 0, dev_name(dev), spi);
11011107
if (ret)
11021108
goto spi_geni_release_dma;

0 commit comments

Comments
 (0)