From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CBEA4C12002 for ; Wed, 14 Jul 2021 20:09:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9B063613D1 for ; Wed, 14 Jul 2021 20:09:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9B063613D1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Owner; bh=AcV/hwosQY5HlWTY8NxO6QYZfPh2OZYJ7wYlGFACjPc=; b=2+PbXpDGDCRcwI lBhaL9z6Qtxe39YuINQA5qo/ytVV1+vZsNunCLt5p8qHOtYY2wqoCTBL+yZEJk2ApRi3Rt3PTRgE4 py6HljmL9lHUtQpLFgtPYJ+vIyfW7LEdDlEo95fQ8VD5hEuUiB4qM/1+vgQWQaqsZYZU0YMHnjnmY 6O19Xg7oQQVyK3ennwAFXuKaRAUqBMehyzWY1EPa2ujoZox11GOQeohk75zdX44yJ6pDco6OzZru7 8wOa0VmdjUVBbpre4Rs2mNFvv8T1GmlHXCchfk/PXo/8v5zeNiPeUZfDJiZD8i2XItUxgWC7JSHot lVqsCxE37m0sT5utLD2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3lAa-00EqcN-Dm; Wed, 14 Jul 2021 20:07:49 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m3kj4-00EcFx-63 for linux-arm-kernel@lists.infradead.org; Wed, 14 Jul 2021 19:39:23 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 907CB613DA; Wed, 14 Jul 2021 19:39:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626291561; bh=3Rr6koHIQmRr8tLClangiNtlx32anz5IDP9dT1csPoQ=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=V3FiFKJYUhSvfEpC0i6gYvAdyUppbBHOrArHPVvPnGeBNubloc5ZEQjvXeYFWJSGD KVV3Pxi/440isDrzgF2Am6UFS+28spBz0q54e/J9+QHjX3OZQSN82f+mx8zT1LU8S4 HLgGU6DFKDvPxYKCN8RnOHgp96MMi6P0ydHVQNvzJnegrJbPjEdQ44Ysvk5/wf5CKj 61bk+ucv25UBWofdmPkgkITl83Kw7UeUBoQOupyhkJ9Y7cOgakr1jm6bHc7LJk8bHS PjmX90K6V7EGh2HjDdDjC9l5sreEdnLFh2zjz6fOxoxM7Wo9cOVpGpaRHrAnVrX4ah 9E+dx9dafiB8Q== Date: Wed, 14 Jul 2021 14:39:20 -0500 From: Bjorn Helgaas To: Boqun Feng Cc: Bjorn Helgaas , Arnd Bergmann , Marc Zyngier , Catalin Marinas , Will Deacon , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Wei Liu , Dexuan Cui , Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-pci@vger.kernel.org, Sunil Muthuswamy , Mike Rapoport Subject: Re: [RFC v4 2/7] PCI: Allow msi domain set-up at host probing time Message-ID: <20210714193920.GA1868875@bjorn-Precision-5520> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210714102737.198432-3-boqun.feng@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210714_123922_293287_072C07A3 X-CRM114-Status: GOOD ( 20.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Capitalize "MSI" in subject and commit log. On Wed, Jul 14, 2021 at 06:27:32PM +0800, Boqun Feng wrote: > For GENERIC_MSI_IRQ_DOMAIN drivers, we can set up the msi domain via > dev_set_msi_domain() at probing time, and drivers can use this more > generic way to set up the msi domain for the host bridge. This doesn't tell me what this patch *does* or why we need it. > This is the preparation for ARM64 Hyper-V PCI support. > > Originally-by: Arnd Bergmann > Signed-off-by: Boqun Feng > --- > drivers/pci/probe.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c > index 60c50d4f156f..539b5139e376 100644 > --- a/drivers/pci/probe.c > +++ b/drivers/pci/probe.c > @@ -829,11 +829,14 @@ static struct irq_domain *pci_host_bridge_msi_domain(struct pci_bus *bus) > { > struct irq_domain *d; > > + /* Default set by host bridge driver */ > + d = dev_get_msi_domain(bus->bridge); Add blank line here between executable code and the following comment. > /* > * Any firmware interface that can resolve the msi_domain > * should be called from here. > */ > - d = pci_host_bridge_of_msi_domain(bus); > + if (!d) > + d = pci_host_bridge_of_msi_domain(bus); > if (!d) > d = pci_host_bridge_acpi_msi_domain(bus); > > -- > 2.30.2 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel