Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp279244pxb; Wed, 25 Aug 2021 03:07:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuO/EOmjGQJCibtVG0bgYQtmw4y2p5mbFdI9dWiGrNW/vZyfaYd4jQ5AEWuT0i1f2uppv0 X-Received: by 2002:a17:906:2305:: with SMTP id l5mr45909133eja.72.1629886032785; Wed, 25 Aug 2021 03:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629886032; cv=none; d=google.com; s=arc-20160816; b=JhQ9UZxw4HnG7WErjkY0h48tONKNv/koVnT3ZWP3FLfGHy3Zh0fPi/4N7UPgGycbK8 XymY+gPJLydOz4ensVAPhGRbuVicw5mH4jiR4y0eAlpVZc9Xwm0lGgcztwKiJyNQ1l3Z cRk0D0BjiKK7cXwMjIpoXOpbNGX2vHESf1JS+Orrqtyf2cQueIYceaL/E+Lvd1Dk9XIx tHzUsERJs00THr4PE7wI1wFiynqoCQtdogJ0Yc9U+nVMP2KF0NFQhGyTLF48W35aKgf3 ONjLUyOrCFOaO+3NGO1CDep5Jcz+CSqxwf5+XwYVkXEZ9tzo7WA6AIQWwWvUWFlLt4/N +unA== 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 :dkim-signature; bh=ZlHkro/6DMT6nlerlVskYFqIcJrF4m5vGX96cvJcyVg=; b=nLGbVoqa9ktGp+OHejmLmtJDjIHROYWBtH3T4zvE4RNh0NUMloub/zHCpQAZt5MDUd +WjJBBfuSh563qxlzN5rs+0EZxMx0XoUYOYyc7dSxIotC2fC1VIBj70jdbN8oyy+CMXZ b/+LmfnVkeldnIgCVzNibdYY1JmlQqkLLGJ/wCvCy6FQHC+VV5bliJ8Hb7Q3/hw9PPyn QvBghAyMGSWEVOY/q3EkIBZLJehO//xTy7/iJgCfkZNJZLLmDCazWbNCM+bgDKLlBP5g qU3CakQulXkREQADyip/QMbKJnPl3/8tdKhjwKvaUu+iZBOorQiajD93WlO0Xj9xskoH Jp5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DFnIqZ8e; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hk14si19396287ejb.220.2021.08.25.03.06.48; Wed, 25 Aug 2021 03:07: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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DFnIqZ8e; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237101AbhHYKFw (ORCPT + 99 others); Wed, 25 Aug 2021 06:05:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:60018 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235904AbhHYKFv (ORCPT ); Wed, 25 Aug 2021 06:05:51 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E4AAD61076; Wed, 25 Aug 2021 10:05:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629885905; bh=YwYi8a+J5g/Nx04R5c0CB3jA7B0h8kMs+HlDvPDVe0Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DFnIqZ8e8yIcCuy2Hva0GCFyaX6/EN7I7TK1ec81fOPW/82dy8Y4PZfzSxWhLYCe9 bjPIoaIoFgyFv7YcdzhrNorwjNHUbZOqQWqn27qH+0Qtvu0hCLiGNwH0lfmfo+knt1 i8xjNAVYbsXS3UsNFOwOY3gnLkvurGeV7ahN4r9rghXj5f8dD0dZAD1PN3lxsPyzIo fuvtdDdBhBfRQBNCS+2NfJK2mEY14E+75km1SzGtL+iypEnaMPL+sAgp3R76XF+14F nBWwv13r8x5ymKB9m4PURqayrmvu1Ko6sBxPRlYIBVFoZfSRz+uWKr91xt+TF3h5pI NRPmQod1w3HKg== Date: Wed, 25 Aug 2021 11:05:01 +0100 From: Will Deacon To: Yajun Deng Cc: catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, lorenzo.pieralisi@arm.com Subject: Re: [PATCH linux-next] arm64: PCI: Introduce pcibios_free_irq() helper function Message-ID: <20210825100500.GC24546@willie-the-truck> 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.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [+Lorenzo] 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. Please can you describe the problem you're solving? > 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 means we'll now fail device probe if we can't enable the GSI. Is that a problem? Will