From: Paul Cercueil <paul.cercueil@bootlin.com>
To: Robert Richter <rric@kernel.org>, Andi Shyti <andi.shyti@kernel.org>
Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Sunil Kovvuri Goutham <sgoutham@marvell.com>,
Umesh Kumar <ukumar@marvell.com>,
Shashank Gupta <shashankg@marvell.com>,
Tanmay Jagdale <tanmay@marvell.com>,
stable@vger.kernel.org, Paul Cercueil <paul.cercueil@bootlin.com>
Subject: [PATCH 2/3] i2c: thunderx: Set DMA mask
Date: Wed, 4 Nov 2026 11:49:11 +0100 [thread overview]
Message-ID: <20261104104912.166301-3-paul.cercueil@bootlin.com> (raw)
In-Reply-To: <20261104104912.166301-1-paul.cercueil@bootlin.com>
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
next prev parent reply other threads:[~2026-11-04 10:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-04 10:49 [PATCH 0/3] i2c: octeon/thunderx: Fix DMA mask + improvements Paul Cercueil
2026-11-04 10:49 ` [PATCH 1/3] i2c: octeon: Add error state recovery Paul Cercueil
2026-11-04 10:49 ` Paul Cercueil [this message]
2026-11-04 10:49 ` [PATCH 3/3] i2c: thunderx: Use polling with delay in HS mode Paul Cercueil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261104104912.166301-3-paul.cercueil@bootlin.com \
--to=paul.cercueil@bootlin.com \
--cc=andi.shyti@kernel.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rric@kernel.org \
--cc=sgoutham@marvell.com \
--cc=shashankg@marvell.com \
--cc=stable@vger.kernel.org \
--cc=tanmay@marvell.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=ukumar@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®