Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1465319pxb; Mon, 11 Oct 2021 06:38:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhEmsZV3iwQJtufCrTmLe7vIhRQoonNJoljUSWki4pRUAlu/Uhz7e/0Iix1BP1+ahHTtfA X-Received: by 2002:a17:906:1183:: with SMTP id n3mr21712044eja.203.1633959501625; Mon, 11 Oct 2021 06:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633959501; cv=none; d=google.com; s=arc-20160816; b=0UdAkskhYrcEF3O1HLhIirxF8yYPQbDnaMBo04tJ1u4mtoid50m9cLWqoB/2yPOvEQ F+eX3UpkxfJH5W9bRkjHiEhSDJ4Eu2KMCwM0rkqY9vmEFtdSbB4B96zncEtYmN1VFo23 UBulClvGWr/G5oiqyFatBijFMbAVJz2+Ft/jK7binW1y4N06o0HY8zhPNT5nebZ+8wMo vs6VS3JlMAKvnIBkfpZwP52gj5YrrIpa1xcgwYR4kGqTH6T0v/09uZZkcyaXNOj3zn66 LFb1k1ZAQZSQguCMGIqF2Dvfkw22WU8whmDvLKWUpxJWZ7YDXZKEowpfpum2Q3U8qf0q 2GCQ== 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=K0D9jeMjkrNUWhyrWCI5MDb9zP8TFiCV7OrwKx3l+FU=; b=wvUmSOL3kgwwKZxADyVReaPJrbnA4jQK631Ga6Z9O0FdGwBRCb1z2vwmrVC4qtMviw LhQHcBj0Ne/1XUy0y98du723oRO3c7wybYSQKLJsS6/2s1I0R4aM05MUvLurOqrairDt 5dYkZHn2QwjYnmm/M2VOMo/bWMZY7lhh5I8maXA+Gy4m7ZhTsc44iijtdKCaStfNh+JQ WGgqQXqUF0shocF8DDO1v6VmaLzWoV/FejEiU8aRAEmcXFf1CJ/+iYrS+zay6w8i5SR2 hvUsRdw6xMBYfQJcnUj6qMxmh1NCV7MpALB9wDpt3+8Mt8zRW2dCwy4alCaL10fh15lg FKaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GouTvkCe; 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 o24si13886821edz.594.2021.10.11.06.37.57; Mon, 11 Oct 2021 06:38:21 -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=GouTvkCe; 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 S236157AbhJKLLs (ORCPT + 99 others); Mon, 11 Oct 2021 07:11:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:59278 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235970AbhJKLLq (ORCPT ); Mon, 11 Oct 2021 07:11:46 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7952460EB4; Mon, 11 Oct 2021 11:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633950586; bh=aU/ORD9aTN28OfqMBJVt9VUK/rhaDiAzfDUP8h089Q0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GouTvkCeDkPzQvUYCbuKjINzgc5ybPb58t45woq27gFjR2efiF6CiDdzr3QUBXKQt vz/l1uEv5esSH6QiodIueAf2dUEu62OagO4oRWLTD68dZUs/l4TJ7VCb+7urslXc9u QaHwO5wnsfo7lNa2yH45RW1f+d461Do6FhHRYXnv7oL9GU/TcZfjpZ+Wh83oq5k+xe zXUo1MXLdgW8xfLJvYhvJ5t/Y5EE5i1HxdVnzIg6QHXo2HQQm++SiZyOP+xf+8GI0I WcHD7KXegeH6Nv+Tk09vOspkvzEJHPjyp+7tg6LXSmLKCImuEgOh3x9qKqIrlQXqp7 6i+5j6uZUnBIQ== Date: Mon, 11 Oct 2021 12:09:41 +0100 From: Will Deacon To: Lorenzo Pieralisi Cc: yajun.deng@linux.dev, catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH linux-next v2] arm64: PCI: Introduce pcibios_free_irq() helper function Message-ID: <20211011110940.GC4068@willie-the-truck> References: <20210921154731.GA2756@lpieralisi> <20210826060406.12571-1-yajun.deng@linux.dev> <20210922162201.GA24429@lpieralisi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210922162201.GA24429@lpieralisi> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 22, 2021 at 05:22:01PM +0100, Lorenzo Pieralisi wrote: > On Wed, Sep 22, 2021 at 02:49:13AM +0000, yajun.deng@linux.dev wrote: > > September 21, 2021 11:47 PM, "Lorenzo Pieralisi" wrote: > > > > > On Thu, Aug 26, 2021 at 02:04:06PM +0800, Yajun Deng wrote: > > > > > >> 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. > > > > > > "pcibios_alloc_irq() is a weak function called to allocate IRQs for > > > a device in pci_device_probe(); arm64 implements it with > > > ACPI specific code to enable IRQs for a device. > > > > > > When a device is removed (pci_device_remove()) the pcibios_free_irq() > > > counterpart is called. > > > > > > Current arm64 code does not implement a pcibios_free_irq() function, > > > and therefore, the weak empty stub is executed, which means that the > > > IRQ for a device are not properly disabled when a device is removed. > > > > > > Add an arm64 pcibios_free_irq() to undo the actions carried out in > > > pcibios_alloc_irq()." > > > > > > This is a stub commit log. Then you need to describe the bug you > > > are fixing (if any, or it is just code inspection ?) > > > > > It is just code inspection. > > Before merging it it must be tested, which would prove it is needed. Ok, I'll ignore this patch for now then. Please yell if you want me to pick it up. Will