From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793789373; b=xVM1xS6rvLoJQQMvpJEgpXHU+JE4aNHuc+d4lSG36FbijOWrRbQYdMcNqpQXZHlA2e40 qa0wDyfAIVtJ8QWnQ47clIcc6ReFps1niROAsnjd6CsmW3rM8KgRTcv3JZ18xfep/4c8c fU+KypsRXjcr/kUo3b00h5UhvNNiNw9W9RwyGJW12qcZ3oCaXmgUARwDgo3fW5N799xby hXWJ/+tp1QwU/p0/Z+zglYWf7OyLxBZIjFpCeLprkJXvX2Neh130RT/XlH0IqMjwK3EY/ sowYcFceBa9YXx5eRCh6C0jez8hptHPhUm0ddnsAM+2cWumgliF3DpoAw5pgQOfPtPg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793789373; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:From:To:Cc: Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Last-TLS-Session-Version; bh=aI4EIZNxMoprUdCGvASntRDiuaop22syyWJWgaD/hhQ=; b=rgHK/vwj06i+5Y8FEna8SdVJUHmw1xRE0yUOUAmG5CSHgyIEm15Sel/OjF3RvQaCu6WL VM1kEThNYSROLpiDq4yvYOnZjKI3uOqJL/Ci2uUrGJ9fMxtkt4Vx4ezJBzGndX3vcAoXk e8qmQA5QdSMNDuNrzbl8k78oqy5ApOzbkfNPKP5QHpMnAEvDwEhW83/y70E3OeMmHcCB/ wEbKPT49P0bzBka4jY9T+5jwIBU/eW8AAf1Z13T7KghN8ReInV/CSi7C362iRC1V/fTTt fRlA7etcdg6UjdyyCvKDvDdBsLOYfxn8RpT6fKBZlLlvd49vr5iemxtp5rUIlaTfq+A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=Nc9ijgvo; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 26C37606A32C; Wed, 4 Nov 2026 10:49:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 26C37606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=Nc9ijgvo Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id C4C08C8F46C; Wed, 4 Nov 2026 10:50:36 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id D624060770; Wed, 4 Nov 2026 10:49:31 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9BD42103291D2; Wed, 4 Nov 2026 11:49:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1793789370; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=aI4EIZNxMoprUdCGvASntRDiuaop22syyWJWgaD/hhQ=; b=Nc9ijgvoOPaVD3JjNxp4TrkUWCXvJfVSA7Gz//GSu7l6f9iaXiLK61WkKNRKyRlUIwR7zo 7FE0kZGM+RBek+cuVSC3SygzmeA1EpvWUVScm+CsZoR3Apou0U1tVBSCCVybXjchfyo6ve sDJ8D6sd9uPlY/MS6cGjDxVNaBwQmCUQkVjGNlY2d2W3W7OYYtS2L2HRoBZFuBYhPZ+bU5 Y0UXcGVahaD6nXpiziHX2SruZBIQ/wtBb11y+giOIFBU3XDJTbs2TNMtTD0PA0caWgiugm m/BeUkOcGBK6XBh+pFl/tOkhk20XG9SAxTgUG5DsLtobbtnR1wHf2eUzIAvv7Q== From: Paul Cercueil To: Robert Richter , Andi Shyti Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Sunil Kovvuri Goutham , Umesh Kumar , Shashank Gupta , Tanmay Jagdale , stable@vger.kernel.org, Paul Cercueil Subject: [PATCH 2/3] i2c: thunderx: Set DMA mask Date: Wed, 4 Nov 2026 11:49:11 +0100 Message-ID: <20261104104912.166301-3-paul.cercueil@bootlin.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261104104912.166301-1-paul.cercueil@bootlin.com> References: <20261104104912.166301-1-paul.cercueil@bootlin.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 From: Tanmay Jagdale 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 Co-developed-by: Paul Cercueil Signed-off-by: Paul Cercueil --- 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