Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp149569pxb; Wed, 25 Aug 2021 23:06:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPjuWZnaZCTJfcuzC09S80Oe4j9eXOtaYDCUMaANzxvMCdWHFrd2Z8oI4iXqCm6n/exlNN X-Received: by 2002:a17:906:a0da:: with SMTP id bh26mr2420194ejb.505.1629957988868; Wed, 25 Aug 2021 23:06:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629957988; cv=none; d=google.com; s=arc-20160816; b=NEdXajZ9qCD/zX6ENHa95m/yN0INXLOstH175UkmWzOEDhIh6d/ppq8xVhHvnEzR8a FT08Y5Yu+2oDEJ6qWa5iNVQRZK60hgFJH2xw1n7N70QHmuvj6cY2c+Agy9q89iiGR2KZ T9R6GDYO05Sx9c5U5NNfUSc6QSQp4Itwl0mqw0/02csNMeMwGT5i+VTHRDI7XaoZtIDx JNTgHB33PymFT4JD8lORwC/Luj5moOkGerlKJg2WhYMtY/prXsUmPKO/dXgrbGbwTqbt DtOcp3Ghq8/pTyPz81ST/caFUSAzoj5BONZ1GipITMAOmMwXN8vCo9gNPPhPq/T0JZ4t EMGw== 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=CWubK53gOwcaOqvTOzGSGWnzZP5IN4poCC+nkyqLR2k=; b=nbcq/ec/KC87rWLfEvmjFJTHCxmbKXA+yKWAGE4Y9p7AsI3VhjTqz65m+zUlVFWZNl eqIu3/SLxXHAlNmMDILEw1JFasgSJoD2udKS6mU81uHesd1nbCB+TZnFV5pPIwiueJ1f nnOk4LoIMTbKzlLvwMrtk3GZvi9KktjYrjQOXilLxUcTY6NkldlHkOM8j741HQL7SxTO wijRSWpyqUOf+NpMucLePpGE9zHiFZ6UpXjAVrZvzbDgGlSNBdWB58+gLSw70T/DDp3Z p7/wC4jwzLB1NztOB3MukoklO2FP0+xsBwNRAnMNgoXG518VKqh2s/ziReN93EprXpDp qV+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=Yqfa1Nui; 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 z10si1861778eje.713.2021.08.25.23.06.06; Wed, 25 Aug 2021 23:06:28 -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=Yqfa1Nui; 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 S238500AbhHZGFK (ORCPT + 99 others); Thu, 26 Aug 2021 02:05:10 -0400 Received: from out0.migadu.com ([94.23.1.103]:28175 "EHLO out0.migadu.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233351AbhHZGFJ (ORCPT ); Thu, 26 Aug 2021 02:05:09 -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=1629957861; 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=CWubK53gOwcaOqvTOzGSGWnzZP5IN4poCC+nkyqLR2k=; b=Yqfa1Nui+BoYsgi0zZQJuX46Rfze4yj/MUWmEJ+h7D4YtoWzUvvYTiv/wiWZOJDujXavJR z08JebmxPIotHPS1T4htxMM84vUKmCEytTkQQMHzu7niVPYTOUKA0aO8kKlLMvoMTXFaFn Rwqr+1l1LMNlHQwIGt8QWmc1i8R09sY= From: Yajun Deng To: catalin.marinas@arm.com, will@kernel.org, lorenzo.pieralisi@arm.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yajun Deng Subject: [PATCH linux-next v2] arm64: PCI: Introduce pcibios_free_irq() helper function Date: Thu, 26 Aug 2021 14:04:06 +0800 Message-Id: <20210826060406.12571-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 pcibios_alloc_irq() will be called in pci_device_probe(), but there hasn't pcibios_free_irq() in arm64 architecture correspond it. pcibios_free_irq() is an empty weak function in drivers/pci/pci-driver.c. So add pcibios_free_irq() for correspond it. This will be called in pci_device_remove(). ==================== v2: remove the change in pcibios_alloc_irq(), and modify the commit log. ==================== Signed-off-by: Yajun Deng --- arch/arm64/kernel/pci.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/kernel/pci.c b/arch/arm64/kernel/pci.c index 2276689b5411..6ffd92126f65 100644 --- a/arch/arm64/kernel/pci.c +++ b/arch/arm64/kernel/pci.c @@ -29,6 +29,13 @@ int pcibios_alloc_irq(struct pci_dev *dev) return 0; } + +void pcibios_free_irq(struct pci_dev *dev) +{ + if (!acpi_disabled) + acpi_pci_irq_disable(dev); +} + #endif /* -- 2.32.0