Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 2/3] i2c: thunderx: Set DMA mask
       [not found] <20261104104912.166301-1-paul.cercueil@bootlin.com>
@ 2026-11-04 10:49 ` Paul Cercueil
  0 siblings, 0 replies; only message in thread
From: Paul Cercueil @ 2026-11-04 10:49 UTC (permalink / raw)
  To: Robert Richter, Andi Shyti
  Cc: linux-i2c, linux-kernel, Thomas Petazzoni, Sunil Kovvuri Goutham,
	Umesh Kumar, Shashank Gupta, Tanmay Jagdale, stable,
	Paul Cercueil

From: Tanmay Jagdale <tanmay@marvell.com>

Without it, MSI-X initialization can fail.

Fixes: 4c21541d8da1 ("i2c: thunderx: Replace pci_enable_msix()")
Cc: stable@vger.kernel.org
Signed-off-by: Tanmay Jagdale <tanmay@marvell.com>
Co-developed-by: Paul Cercueil <paul.cercueil@bootlin.com>
Signed-off-by: Paul Cercueil <paul.cercueil@bootlin.com>
---
 drivers/i2c/busses/i2c-thunderx-pcidrv.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c
index 3959f23fc440..2208337e649b 100644
--- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c
+++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c
@@ -198,6 +198,10 @@ static int thunder_i2c_probe_pci(struct pci_dev *pdev,
 	i2c->hlc_int_enable = thunder_i2c_hlc_int_enable;
 	i2c->hlc_int_disable = thunder_i2c_hlc_int_disable;
 
+	ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(48));
+	if (ret < 0)
+		goto error;
+
 	ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSIX);
 	if (ret < 0)
 		goto error;
-- 
2.47.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-04 10:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20261104104912.166301-1-paul.cercueil@bootlin.com>
2026-11-04 10:49 ` [PATCH 2/3] i2c: thunderx: Set DMA mask Paul Cercueil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox