Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp468985pxb; Wed, 25 Aug 2021 07:28:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqX25Ar43M07j5f6yNjDGMzs6iPzPRaYrI+rMrRPpsSOKvgNqNrId1Q5QRKm9SawfkNAUS X-Received: by 2002:a5e:a81a:: with SMTP id c26mr35895908ioa.15.1629901692569; Wed, 25 Aug 2021 07:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629901692; cv=none; d=google.com; s=arc-20160816; b=lToY2X9eE57Tof/oeZ5QvorrxwK0Ds+Rq7uG6Wc5cLKtfC4oIoignSppMIOBDNrmQL 8RP1DGNKoGUzwR/1gyV3UwlsUSTbX3INgLkB+eqwS+80uOT8xrBL9OxZlJAv8CVsqxUd IHF787Pu/ieaYuHlvl6KAWpFDsoUJCbWWiChgVEHABDdC2nflFahgwKeEeQMbIPNaNk0 Mj9u6/jXX164WdN3TaQHRpQLlFzL2r8UO7a5IJxP3ZCszuIL/LGg5S1FLurOQs0BllqI WrlWuqFDIbf02W0O/20210CVB11k0FHkhxr5WbNUyodprZbkUeYA9dnfyDwEsaVfnGs8 WiUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=ByznweRWX9QyPzwZebpAo0kuJTcWVfcIpTiiJG17KDU=; b=tahCu6//lB8oELazgJyq6BgbReqZespKDr0iOPfTREUkD9gBchX1sGm6Oh8aHxzKrx W5rgW78NcpWm7prQy/EhP7mcSjcDVA5C8o87ys9CfopyRvTT7Ymf36xIgwscSFKqNGlK MQoi2ULFrwlZUcLYwo4H8k2LSdK/qWAxbsFB9GPep/lKvFH6IETl4fS/IXj/dDwsF8Ry d12OJGgU+bUYN9z1ATcD6i1cWlkOq95vwB8uBqUa7daYoPM0wT6gSOiT8cCetkGvrXRG pt54r2dOyjqxQssX6u5OeQy5Fu5yRblECH0HdeQ8yGDcKPTfleB3KBq06KM2Z2p+gWcR /n3w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c18si22553035iod.38.2021.08.25.07.27.59; Wed, 25 Aug 2021 07:28:12 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241235AbhHYNb3 (ORCPT + 99 others); Wed, 25 Aug 2021 09:31:29 -0400 Received: from foss.arm.com ([217.140.110.172]:51158 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241211AbhHYNb2 (ORCPT ); Wed, 25 Aug 2021 09:31:28 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 067C2106F; Wed, 25 Aug 2021 06:30:43 -0700 (PDT) Received: from e123427-lin.cambridge.arm.com (unknown [10.57.43.179]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 469F13F5A1; Wed, 25 Aug 2021 06:30:41 -0700 (PDT) Date: Wed, 25 Aug 2021 14:30:35 +0100 From: Lorenzo Pieralisi To: Yajun Deng Cc: catalin.marinas@arm.com, will@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH linux-next] arm64: PCI: Introduce pcibios_free_irq() helper function Message-ID: <20210825133035.GA20522@e123427-lin.cambridge.arm.com> References: <20210825071612.21543-1-yajun.deng@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210825071612.21543-1-yajun.deng@linux.dev> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 25, 2021 at 03:16:12PM +0800, Yajun Deng wrote: > Introduce pcibios_free_irq() to free irq in pci_device_probe() and > pci_device_remove() that in drivers/pci/pci-driver.c. Add a rationale - it is just code inspection or you are fixing a bug ? > 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); This is an unrelated change and it is potentially introducing regressions. I need to page in the reasons why on arm64 we had to resort to pcibios_alloc_irq() (probe ordering IIRC) - in the meanwhile this function stays as it is. > return 0; > } > + > +void pcibios_free_irq(struct pci_dev *dev) > +{ > + if (!acpi_disabled) > + acpi_pci_irq_disable(dev); > + > +} Adding pcibios_free_irq() makes sense and I believe it is a genuine "fix". Please add any information in the commit log that explains the run-time condition you are fixing. Thanks, Lorenzo