Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3854621pxv; Mon, 19 Jul 2021 10:19:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc+3ui5B9BNjSnsZxCc19Vt0jpR0kogFZLH5i64DYAbrsXbX0jvwI42hfe4cW/kpWFRy2p X-Received: by 2002:a6b:e70f:: with SMTP id b15mr20197215ioh.67.1626715160605; Mon, 19 Jul 2021 10:19:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626715160; cv=none; d=google.com; s=arc-20160816; b=JJPY0LicgxRbYeC8VPIU68iilZbKHYLci0cfzalNI6oVL/FA2wrJ61DdAe/AZu4q9g ntbK9qsl4pN8KHnk9Gq8iiICCjwE30xZqnMZKJxlx+s9/hi2Ne8IF6TW7g21FS5ZTaZP n0TuDFRfXxZWMxDJgIBS4q6qtBU/hkugrgMriva8bPJ9cvtRb1J3b/Xh8nkuFM0G9xcW O87qxTTgJlE6WOX25Y0PJD9wVIYdzeA4AaUD5v8wyv82KnhL0TFHSIk35NWeUMR4YaLa lSuWOndV6G4pOS/N+41jqdcjDi+x1fNyOZIqc/xz23laa9vZozAGgcrmbfsI+6pqNQjr WsdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=BYHWpKcYcGwEGs0tYDoyB44tLADinj8Tdpspf+toVEs=; b=oIEDcqPTBZ0NgkViz1P7KJU/3LqXQuweuSKA6tEO8L41lM+wlk0PVtdrlQNi9OjGQp S1YW/xio9lY4VTkDhcLAJe59tPJ+FGjClYIH2kV7G8c9Nzt0YoMU7xg9UkD/36vc7zTi KL7OVAsnrPfRDmAyM8ZZ5SH3+da0nYWqyhjUAUjUa1FR2niQeAs2T136D0Tt1/FAHOk5 GOUwZGy+JL5SVNtkHdq55oE167lDLikzGdrjoEYODIBbjYZLrzwm1NLBiNcry64eVDch xzI2wHZYELBAWS/CcrbxV91mVuPMNpcbLgVc33ZxcGhMi3YbjUVis4WjfdQLpwzcJ/2I BqYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TP3qR7N1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w132si10038282jab.61.2021.07.19.10.19.08; Mon, 19 Jul 2021 10:19:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TP3qR7N1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353251AbhGSQe7 (ORCPT + 99 others); Mon, 19 Jul 2021 12:34:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:58060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347589AbhGSPTv (ORCPT ); Mon, 19 Jul 2021 11:19:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 50E8161279; Mon, 19 Jul 2021 15:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710330; bh=MvRSfttoZI3GgtL9eQvN7tVLaYVPRkt7MRt6y9OH+cE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TP3qR7N1UYUv2SSp+AFjIbDJWq2AVvWj0YwoI8nzdCdwkdQhCxey5bxHxcuQcIOxe 4ES6ynWwtAcUceod2kuVQO4Ypw0ZiW5hcdnofC04rqstKxO6nfmKxAqqW78JASmNOm DcE9rTWM9ck8gvIqqF0sIquQv+57RaAoOnL4nips= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Blumenstingl , Lorenzo Pieralisi , Bjorn Helgaas , Rahul Tanwar , Sasha Levin Subject: [PATCH 5.10 171/243] PCI: intel-gw: Fix INTx enable Date: Mon, 19 Jul 2021 16:53:20 +0200 Message-Id: <20210719144946.424115728@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Martin Blumenstingl [ Upstream commit 655832d12f2251e04031294f547c86935a0a126d ] The legacy PCI interrupt lines need to be enabled using PCIE_APP_IRNEN bits 13 (INTA), 14 (INTB), 15 (INTC) and 16 (INTD). The old code however was taking (for example) "13" as raw value instead of taking BIT(13). Define the legacy PCI interrupt bits using the BIT() macro and then use these in PCIE_APP_IRN_INT. Link: https://lore.kernel.org/r/20210106135540.48420-1-martin.blumenstingl@googlemail.com Fixes: ed22aaaede44 ("PCI: dwc: intel: PCIe RC controller driver") Signed-off-by: Martin Blumenstingl Signed-off-by: Lorenzo Pieralisi Signed-off-by: Bjorn Helgaas Acked-by: Rahul Tanwar Signed-off-by: Sasha Levin --- drivers/pci/controller/dwc/pcie-intel-gw.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/pci/controller/dwc/pcie-intel-gw.c b/drivers/pci/controller/dwc/pcie-intel-gw.c index 5650cb78acba..5e1a284fdc53 100644 --- a/drivers/pci/controller/dwc/pcie-intel-gw.c +++ b/drivers/pci/controller/dwc/pcie-intel-gw.c @@ -39,6 +39,10 @@ #define PCIE_APP_IRN_PM_TO_ACK BIT(9) #define PCIE_APP_IRN_LINK_AUTO_BW_STAT BIT(11) #define PCIE_APP_IRN_BW_MGT BIT(12) +#define PCIE_APP_IRN_INTA BIT(13) +#define PCIE_APP_IRN_INTB BIT(14) +#define PCIE_APP_IRN_INTC BIT(15) +#define PCIE_APP_IRN_INTD BIT(16) #define PCIE_APP_IRN_MSG_LTR BIT(18) #define PCIE_APP_IRN_SYS_ERR_RC BIT(29) #define PCIE_APP_INTX_OFST 12 @@ -48,10 +52,8 @@ PCIE_APP_IRN_RX_VDM_MSG | PCIE_APP_IRN_SYS_ERR_RC | \ PCIE_APP_IRN_PM_TO_ACK | PCIE_APP_IRN_MSG_LTR | \ PCIE_APP_IRN_BW_MGT | PCIE_APP_IRN_LINK_AUTO_BW_STAT | \ - (PCIE_APP_INTX_OFST + PCI_INTERRUPT_INTA) | \ - (PCIE_APP_INTX_OFST + PCI_INTERRUPT_INTB) | \ - (PCIE_APP_INTX_OFST + PCI_INTERRUPT_INTC) | \ - (PCIE_APP_INTX_OFST + PCI_INTERRUPT_INTD)) + PCIE_APP_IRN_INTA | PCIE_APP_IRN_INTB | \ + PCIE_APP_IRN_INTC | PCIE_APP_IRN_INTD) #define BUS_IATU_OFFSET SZ_256M #define RESET_INTERVAL_MS 100 -- 2.30.2