Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp186556pxb; Wed, 25 Aug 2021 00:18:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQAU1O6CPXWwKBzyxjNNHA3yif9600SFleH5HNaF8ZdvfiioLvZ0aEIFvkwTTX0m9W2TTI X-Received: by 2002:a05:6638:29a:: with SMTP id c26mr38284574jaq.58.1629875936607; Wed, 25 Aug 2021 00:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629875936; cv=none; d=google.com; s=arc-20160816; b=duMIPbQFOhLRl3h0jbGNjcVlmOD58PYWTtWFbubkC477AhOTQ6MWdw+N2t6A3cJPEt P8cEaGtW7+90Ph0DMDPpvPY+oU+7gtkULJnxfkklFXBG/DfGFUHSIi3wMRQjr8E80wJn HebOvaP/Yam3vTou/zHvfQXAOVe+u/v3Vzr4ZpTqu6tQpR+0jGGQsJtTUddXRUoX0Bk3 SLXl4i76kqR4Hz0w8jcwslTPdJZTBAgScS2P66NpbWyiwi+k06ISpWFCf1ITjhZwfT/u ncrcRWWynGw9VFnDxtpj0i+WBLtiCdQO8D2Qlsk9ZzFDPLD1DfJZ6zRMv0nGSYhif1cj t+tg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=qZDfge9JkGpMNd2PzfnbUn2iPJxkyxvkteeaxzl9liY=; b=Hao40IgjDkgfackP9AETCIjsCex43SSbuPj64lcsKGYkUTfm2oVi9m02t+MdOCF+Ee YHdBDEN1p9SvtzApylXWfdiGqTK4XIGQEEPAYsxQmh9U0eyP0og31gGEPyrZEheSThjV 0WAGuHMYRLXdnrCiRlAYuawUononGUvhwB033VoGSeMNlX3g6PCZRRGHRQfENIg103Ib Kx2PnHNdtrF8VE+mC4ubsMQAne/EPEj0AlbogHSI9zanGBXKwP/ZHZ5bSfdSCk6pq/yU xMy+yTp8WVLDbvN51z5eOK1RFfoTRW1eTr1cYOxoOy1E64S+hyImpcKfH0rbWYTjQj+/ RhRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=wUBKVMzK; 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=linux.dev Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si12384526ioo.36.2021.08.25.00.18.45; Wed, 25 Aug 2021 00:18:56 -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=@linux.dev header.s=key1 header.b=wUBKVMzK; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239116AbhHYHRP (ORCPT + 99 others); Wed, 25 Aug 2021 03:17:15 -0400 Received: from out1.migadu.com ([91.121.223.63]:50786 "EHLO out1.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238606AbhHYHRO (ORCPT ); Wed, 25 Aug 2021 03:17:14 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1629875787; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=qZDfge9JkGpMNd2PzfnbUn2iPJxkyxvkteeaxzl9liY=; b=wUBKVMzKbWsBvVeKNeV9rNn1HZJiRAbQwALHx0mYcGZqwg+PtP7vJYmHlD2xzN2VM/gNDS yBlJprBT82rSi2HZDkbpQPhvsloZslacMy+PrV71rTnDMj7dKDKp0AWH4g0JTF/b6OpD7d 6t5wewA94U1B9wkiqqRMERR04+y+5Jg= From: Yajun Deng To: catalin.marinas@arm.com, will@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yajun Deng Subject: [PATCH linux-next] arm64: PCI: Introduce pcibios_free_irq() helper function Date: Wed, 25 Aug 2021 15:16:12 +0800 Message-Id: <20210825071612.21543-1-yajun.deng@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Migadu-Auth-User: yajun.deng@linux.dev Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce pcibios_free_irq() to free irq in pci_device_probe() and pci_device_remove() that in drivers/pci/pci-driver.c. Signed-off-by: Yajun Deng --- arch/arm64/kernel/pci.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c index 1006ed2d7c60..40da5aff4548 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -25,10 +25,18 @@ int pcibios_alloc_irq(struct pci_dev *dev) { if (!acpi_disabled) - acpi_pci_irq_enable(dev); + return acpi_pci_irq_enable(dev); return 0; } + +void pcibios_free_irq(struct pci_dev *dev) +{ + if (!acpi_disabled) + acpi_pci_irq_disable(dev); + +} + #endif /* -- 2.32.0