Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2773758lqp; Mon, 25 Mar 2024 08:52:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDx+nMljT86l+4RPFubylhf8oKrE9Wq0NvUPTk+Pj2518eQVKsEYikCMLMpVUgYIJXw28N5qiqdSK4AEYvos6rUk9Fdu3yjeb+E1Q3Cg== X-Google-Smtp-Source: AGHT+IE2qss9ChkBL5IIkC9wfsWGdKMYS0/+H0TPsImUPl0lgshiReM0SB3tkhlCNYn3J6AeYZNv X-Received: by 2002:a17:902:bb89:b0:1e0:3118:18a with SMTP id m9-20020a170902bb8900b001e03118018amr241032pls.59.1711381949703; Mon, 25 Mar 2024 08:52:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711381949; cv=pass; d=google.com; s=arc-20160816; b=n7EOWO0ZXBjIbc/uOqZh7pAnKu/20afRobMIl8WNDvDR5ZJmQmA4xNOg3TvNf/5DYl SuaxM0FbYEJdcwJklW5o4Onco13XEEiPAv1o0kQTCBDqIy8FybFoLuYTXJyCVWHMdi1s R5CqqFgo9JEHSlbgFWHyMbaQ9OK5EuZYhWATinD9SW4lS6jF7kDX9YJZhrkKTOq7lqnv eOLTXhKjnkHBfhIHjLdgVQ0hlv32bYSg8DStYDFdX4HFr7koPTfXjdMFWX3ebTjQ0+JJ RShGp38o6rSZerlJhNXsIRy6t8BWHtORjt3ygXI/6GvpvjEJuilBTl11guGOVvTNud8a yGsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=MTjYXP1QoWLL3/o/f33iHobjqR8VNBA+750kYFVTl+4=; fh=PXKk0h5tOYrfvLOsca+I8y9oqIXj3i9JJuE9vl6NMgM=; b=ddMSWfinZY+zb/e+AN29QrT2XtVr72gEqQ1vXKNoqmScCP+GTXDWwGZaHNW5bz+g+U WVvPPgzpODQWVZRVuI6AuYpG+LlnnwMwHf+mBUZ3vMx78/MQb9o32uAWl9V77K4W0JKA +Wg20QuS6v467Ap/uQzHJESTH5tA/kezeAEdE+U3aRZzPlt8aSxhBtrQ9zYCWNm4+7tK iVzIaP+vW6BlYSuKl5Lzf2XJkVZI6lS8GqD9Duz3YOY1ozW2T32L0wee1oE52cza4AQL NXWGKsL/lmajzIxWGVU3S6HRoJinKDOs+oDsfb0WFa5l7BczIqmwpDO6LGmfrCpx/dsi s4lg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PXPlWR3l; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b1-20020a170903228100b001e0be2362fbsi2319319plh.232.2024.03.25.08.52.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 08:52:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PXPlWR3l; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116494-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116494-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 458A2B25A8F for ; Mon, 25 Mar 2024 12:40:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AC96F19067B; Mon, 25 Mar 2024 07:32:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PXPlWR3l" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE3841802B0; Mon, 25 Mar 2024 07:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711350596; cv=none; b=dQHQ985nSLaUa5iBiwwlICeZmrJDDgMTzJsBy+uGreJrEJPOyf0FkJdvup9bQGwdHF/PR4ZZIVhFpWIR+6T4YhJTZ4NOOJ/aSNTOTJms/XEFI47OB8tNCiQSdZL2sUI0u1ef9UFoYypmSxO1XQhhgTAFmf8uKvnpmTyDFq35NbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711350596; c=relaxed/simple; bh=qSM8UI68diJYCTmxDhZKHtM68q8xdcsJNET3Jh1Y9tA=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gspkx7uy9wOh/rV/OaFwIpOEoGYyyi0Ip+IWcuvMztAtm5SmKpAkuFngX9CUlJfa8ZnEVAq3WJX+sZwMr7J/zIXyVtRP5ntp/U8FihAbFkq/NrmqcMRDd3iogqWGat0nR//qaAqSD4AZYbOCrea36ecIkPGQypK4PBoohx7tgY8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PXPlWR3l; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06703C433F1; Mon, 25 Mar 2024 07:09:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711350596; bh=qSM8UI68diJYCTmxDhZKHtM68q8xdcsJNET3Jh1Y9tA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PXPlWR3l2bCkGqFhz0TnZ5XE/dF9ZifPfSQJCi6pHyk+Po+lBiGAc0/1m76zkVPFZ 81fcF/5r74fNif+6TWh/NTBVfPuzFK3+cJ6zB770Ah+fHhCp3rMkRT4Skqr5ZNVA9N HbdtZeOngvFMXE1O+UsLLVHH8YfA2Z2rpYNVNsOoBP7h/NQprtRtV/TR+1a/J8nqMc fRg9UF+OUrKcwhrgfE4B0lk6jdCnomvYhZmBYj7UX/fchapCXdxAweDSroJfvyutM3 DNq4DTMkPn3vQmDt99qF72vlxR2ZtLxX8/jb1kWKBwZd74oHJ0/WZGRWshmtVj8kbU SjNf+DWLvOFeg== From: Damien Le Moal To: linux-pci@vger.kernel.org, Bjorn Helgaas , Manivannan Sadhasivami , linux-scsi@vger.kernel.org, "Martin K . Petersen" , Jaroslav Kysela , linux-sound@vger.kernel.org, Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-serial@vger.kernel.org, Hans de Goede , platform-driver-x86@vger.kernel.org, ntb@lists.linux.dev, Lee Jones , David Airlie , amd-gfx@lists.freedesktop.org, Jason Gunthorpe , linux-rdma@vger.kernel.org, "David S . Miller" , Eric Dumazet , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/28] PCI: portdrv: Use PCI_IRQ_INTX Date: Mon, 25 Mar 2024 16:09:13 +0900 Message-ID: <20240325070944.3600338-3-dlemoal@kernel.org> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240325070944.3600338-1-dlemoal@kernel.org> References: <20240325070944.3600338-1-dlemoal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In the PCI Express Port Bus Driver, use the macro PCI_IRQ_INTX instead of the now deprecated PCI_IRQ_LEGACY macro. Signed-off-by: Damien Le Moal --- drivers/pci/pcie/portdrv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/pci/pcie/portdrv.c b/drivers/pci/pcie/portdrv.c index 14a4b89a3b83..bb65dfe43409 100644 --- a/drivers/pci/pcie/portdrv.c +++ b/drivers/pci/pcie/portdrv.c @@ -187,15 +187,15 @@ static int pcie_init_service_irqs(struct pci_dev *dev, int *irqs, int mask) * interrupt. */ if ((mask & PCIE_PORT_SERVICE_PME) && pcie_pme_no_msi()) - goto legacy_irq; + goto intx_irq; /* Try to use MSI-X or MSI if supported */ if (pcie_port_enable_irq_vec(dev, irqs, mask) == 0) return 0; -legacy_irq: - /* fall back to legacy IRQ */ - ret = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_LEGACY); +intx_irq: + /* fall back to INTX IRQ */ + ret = pci_alloc_irq_vectors(dev, 1, 1, PCI_IRQ_INTX); if (ret < 0) return -ENODEV; -- 2.44.0