Message ID | 20201009155436.27e67238@xhacker.debian (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=nxLb=DQ=lists.infradead.org=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0A9A4109B for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 9 Oct 2020 07:58:05 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C35EB22227 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 9 Oct 2020 07:58:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="XTELnBa2"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=Synaptics.onmicrosoft.com header.i=@Synaptics.onmicrosoft.com header.b="WEW1XpMr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C35EB22227 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=synaptics.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vKi24GFjoU4Op7D9fZakr7D0VbpHbqC7sWftP4d5lO0=; b=XTELnBa2Mmum8c2ZRE3F9RA5D 5JLJxBU9IfTvYoCmXWWSYuh+VuUSQ3VaYdhKzEO2cEqHP0S+YINGafyQAaTPkPvEcPQV07NGnb9X9 zOhvAQ8jChJNqrFmqRJ3k681AqeqRvRqA9c0fwP/TB6jD1hMwq+BNQQqS7A1XVsseZCIpraJBSEWg taCGW4bpb+keTVwYarRbAVewwtbNGY0moLy7UEhkKPvpZTRdjfSt7yCxZIUqmhUt9ZeJYZjt0U5ce yPBlVNPLaJDlQ55knscMkQppM5Pok7xxPQ79XBLqzINY1bTga36/17wsMMBtZMsqwtDn20SrY9zqj fSFOBHoxw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQnHk-0001U4-Fs; Fri, 09 Oct 2020 07:57:52 +0000 Received: from mail-bn8nam11on2065.outbound.protection.outlook.com ([40.107.236.65] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kQnHg-0001Sg-9A for linux-arm-kernel@lists.infradead.org; Fri, 09 Oct 2020 07:57:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HeAg3YXhmG1OWPcc4gl3CsBuJGG0+0YCK9bCG+r2DSgJ1RReSrChkG++AcTv/PVmfWQ+vlG7pNwNFkorwCXysUTqyAVMzcN45acTnn0aJs1IZ0PzQtqZEDlZtIlvZToWXJGCrhAut5ZvfAgIB/9ylrkc7vCD7Ycf+NyNuXdYfX5vJMTpOZhBBQYTe5BMrVrfJLHJC6Lvga5QYkeNA1wJyZmx3Pb9OyUlxbGXkKiFg4jFDRcqYwXrGELgXw3fwU/EL6gdA5uYb21IRACl/gqBAi+QpUC/AIvSHtCVBaDkwwzzk6Fq8JUSeixFcevuvzqdaMnL+dzoGv8e9lG6TCKJkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RMv2KCGB5LuSyCYNjvXkxUsl/D6L8sSQYG6wyWbXloI=; b=jWTwYILdfDMBCy5z1sl55Pd4OXbbpt3orVSOZ2k5WEVltfRThFjruxfu2BkL+fSivtSnaQHYdPWSyL9NOf3Fp0VG7zA+JAiTu4O4Kex59Ik2d3nDqsy+t06ltTw4P1HEpHfAhCDnLVNRtVLz0SuUk+DKk7iQmrfD7KHeoiPwcw4sMqF7ip8J31ItbhgzAN2q6uCYk+WawGmGztjLyT5/0jXGRN/z6M6ISHZLQKEbC9cTV58LUCSjOtfkkTM2F64KCH28KXLMZUW2YAytcAwYTQAorz8MTuB1i3KjUk3q59wc0w+4B9DQvrprVeXHOXAv16soQKN9nkKV/tbjQkM4Jg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=synaptics.com; dmarc=pass action=none header.from=synaptics.com; dkim=pass header.d=synaptics.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector2-Synaptics-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RMv2KCGB5LuSyCYNjvXkxUsl/D6L8sSQYG6wyWbXloI=; b=WEW1XpMrunXNHzfqtT6Wno000KtSkq0uBuWBwonTTHZiAP6kfBG+gGoXyOyIQsMENHFcxh+BjV7HkomDFZ7aIUFpUX0O/YKKpiuBdowKdojeIf+bZnLzTWOzhTNw6UfLA8NODX7dGqXYD6oH+2Fl/cYboTDFVxLPMKM+fLoCxz4= Authentication-Results: ti.com; dkim=none (message not signed) header.d=none;ti.com; dmarc=none action=none header.from=synaptics.com; Received: from DM6PR03MB4555.namprd03.prod.outlook.com (2603:10b6:5:102::17) by DM5PR03MB2683.namprd03.prod.outlook.com (2603:10b6:3:47::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.23; Fri, 9 Oct 2020 07:57:46 +0000 Received: from DM6PR03MB4555.namprd03.prod.outlook.com ([fe80::e494:740f:155:4a38]) by DM6PR03MB4555.namprd03.prod.outlook.com ([fe80::e494:740f:155:4a38%7]) with mapi id 15.20.3433.046; Fri, 9 Oct 2020 07:57:46 +0000 Date: Fri, 9 Oct 2020 15:54:36 +0800 From: Jisheng Zhang <Jisheng.Zhang@synaptics.com> To: Kishon Vijay Abraham I <kishon@ti.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Rob Herring <robh@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, Jingoo Han <jingoohan1@gmail.com>, Gustavo Pimentel <gustavo.pimentel@synopsys.com> Subject: [PATCH v7 1/2] PCI: dwc: Skip PCIE_MSI_INTR0* programming if MSI is disabled Message-ID: <20201009155436.27e67238@xhacker.debian> In-Reply-To: <20201009155311.22d3caa5@xhacker.debian> References: <20201009155311.22d3caa5@xhacker.debian> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: TY1PR01CA0164.jpnprd01.prod.outlook.com (2603:1096:402::16) To DM6PR03MB4555.namprd03.prod.outlook.com (2603:10b6:5:102::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from xhacker.debian (124.74.246.114) by TY1PR01CA0164.jpnprd01.prod.outlook.com (2603:1096:402::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.22 via Frontend Transport; Fri, 9 Oct 2020 07:57:43 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 467779a3-5b45-4920-ccac-08d86c290221 X-MS-TrafficTypeDiagnostic: DM5PR03MB2683: X-Microsoft-Antispam-PRVS: <DM5PR03MB268316E7B77C19741516C8DDED080@DM5PR03MB2683.namprd03.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:431; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Fs+fYZPXjxBDidMU9xY3tQIRkO5ghj62mxW1KpbdrfMEwKcwDhrxjz9evRx7p4/wW0FzzinMaC+MZQZ8TJqdxI0v6UvjKIIRP3hWO0bSEQhJhbTVqGImN5KaVBj+0YWOWkbevm7me7wIqwIMKCkITEJw8q2ROd2a6N0Wc3GGow7p/hfNe6SGYcLTv8QkOdvuP1rK2JJXe7FaXao4K5Ki0EnALzHJ9FJ1oABtUVHGcRoUk42kDXKu5XpZlEPQyUYXv5z8GVvQXLMomz5KsZxwS7rb0siL6ren9aNJaxbeDkigNzLY4rCFFeKhitfjg/B9PlmEbxtQyNGrtEikQKez0w== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR03MB4555.namprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(396003)(366004)(346002)(136003)(39850400004)(5660300002)(6666004)(956004)(8676002)(66946007)(7416002)(86362001)(83380400001)(4326008)(55016002)(8936002)(110136005)(2906002)(16526019)(316002)(4744005)(186003)(6506007)(66556008)(478600001)(1076003)(52116002)(9686003)(66476007)(26005)(7696005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: bRQHwFHJUGhttaeB4rfEczk5H18okEpBE6gSHZ/8Xhg/t8Lyr4/oYZAL1AV30y46WkAKhChJYolwk9JTsKwHM6WEGzbUT2BIRkg/XKTRIK05Ju+ip4ejEV/FKTpkaywG6gRDpt8gzGOXNNmoFqK6awPbBpeS/DZUFX4hwqUnSUETrur4H+Pmp/3M8EA3xwawXTFEqt9TbN48ORjr5ikaNEwAdWLaZx1lKWpz6vO1U4sh4cvnPNvBnEQEAEUp5N+gDkTt/ScEDKTi0JkO85HFgROTxc3rY59IrVXeVoeilwMFSYUVeEQhnni6W1Ddq1orzWwUvG0tIcHjINM34QoT0FCikgeAFu7lASmiRcV+8wrRV1TIXgUgxN+4+zcoDCh+sdiWu4lZcVSZyEW48rGi4w1K/xeXq+kUBZ38bj9Qc5yQQtlK7zvMLpqG8ML8vGaWq0dWy1KX/LdEOjRnZvl17+uoyqgr6OyyWvAq3SGhlDQrqqGsw570wRoC6wpqopxSYO+L3Hk87j4kjhZ16uIp9/CqVXklvHV8bNS9mSt0eM57dLI8AjULykSpsiUWKd8+YJdFHq+Tslp79zwGstpLMYJ216upXkrrQ1WZrbaBYdhE8S01GAX9r5Kai6/vXGAofx+p2p9CFCvj+3+93x7ROw== X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-Network-Message-Id: 467779a3-5b45-4920-ccac-08d86c290221 X-MS-Exchange-CrossTenant-AuthSource: DM6PR03MB4555.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2020 07:57:46.5169 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: nsW3jdtPzXFq40JiWNcgK1DxIOcGleTwFnyUlzwytYeo9Q03rhTrZmwnqz5C9JNryJ6RyrpKYsZLz2PpKRA/3w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2683 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201009_035748_358433_0DF5E5F6 X-CRM114-Status: GOOD ( 12.76 ) X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [40.107.236.65 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [40.107.236.65 listed in wl.mailspike.net] 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-pci@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org |
Series |
PCI: dwc: fix two MSI issues
|
expand
|
diff --git a/drivers/pci/controller/dwc/pcie-designware-host.c b/drivers/pci/controller/dwc/pcie-designware-host.c index 317ff512f8df..d3e9ea11ce9e 100644 --- a/drivers/pci/controller/dwc/pcie-designware-host.c +++ b/drivers/pci/controller/dwc/pcie-designware-host.c @@ -528,7 +528,7 @@ void dw_pcie_setup_rc(struct pcie_port *pp) dw_pcie_setup(pci); - if (!pp->ops->msi_host_init) { + if (pci_msi_enabled() && !pp->ops->msi_host_init) { num_ctrls = pp->num_vectors / MAX_MSI_IRQS_PER_CTRL; /* Initialize IRQ Status array */