Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3378367pxv; Mon, 12 Jul 2021 16:11:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6mylj9HiB0QoXdp8Sb2JyFFJymAKOHPOCwiaploZJrqo9EU4YkAUcm2yAvc8tg2E1yUM9 X-Received: by 2002:a05:6402:10c7:: with SMTP id p7mr1582799edu.159.1626131482296; Mon, 12 Jul 2021 16:11:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626131482; cv=none; d=google.com; s=arc-20160816; b=hj04n+D1qnZ2UC4pWFommGnF2/EuupSwl1KLJJ33JKaLFYJsX/KS99H1jhiK7yjHo9 UjajP3vCh7nFqZR0icdX808MDot9l/fMlDhH0at6qTSV4ISGCH/HaxZdX81/qp+/sgfx z7sJQwgm9czREJcVEDVf6/WOA0zL4+ybAwzuS28EMmSkUqMtA3PsUvt3bwxqDif9i84/ RFYPgKoWNeKPhHLGuBldOzpprEKQ5Y+00pv3YCTR+lo4We8Fj8yVub81MsPi296hK0BS R75uW7D25PXWDysGCKnFqnU+Tp7advHkKvQct49WWU+HAbXqVHZMYpq+sBqmGzuqlozB uLJg== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ncUzG7oD+cRuBPSNikH54792RGrvr4Fe/3Hos8E3uks=; b=XwLdz+Z9qFmw2+9wne4o/B6CPNjSoqibJgm03UllK0Kf4kukdU1c3La/Ykup7/yxTp rbUyBMz1NBx7QL4049gR/b8S1LxZsLNMF/RvYv5RhnuDjNrobWQQjECocmqp5eIwRz/m cqqK0m1Y9fc7z8+vMPb/PAJyi2q75g7y9ctII1YaApWaMC7c0+WhIOrPpiBhSDD32y0E GUYX/9EcdBCMwwUiiV2NpoXeo6ZrmuT9p5m0sMK3mJOieUp46T3w9n8qzDPeN3fxIx4o btkEAjO0taweFQJElX32/6JFn3t4Pnedl4fuT6fPzuzcmq5kcy7DAGo1FAgNIMpMUrej t7pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=T9MbOaMr; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si18382615edt.358.2021.07.12.16.10.57; Mon, 12 Jul 2021 16:11:22 -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=@redhat.com header.s=mimecast20190719 header.b=T9MbOaMr; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232598AbhGLXM1 (ORCPT + 99 others); Mon, 12 Jul 2021 19:12:27 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:29144 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231953AbhGLXM0 (ORCPT ); Mon, 12 Jul 2021 19:12:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626131377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ncUzG7oD+cRuBPSNikH54792RGrvr4Fe/3Hos8E3uks=; b=T9MbOaMrqioeCIHaPOkM8huVydSrj35IMGIsqlromCU0R26vxO3Pj+Zgtya+m+rLGCg5dK Dm2DpaTOAdxV93+nBWPUDBGZjY8quEl4ZM8Xno6Ek8+wVNhx0vfUgXUq7P1tQyB1GKjm0j 1Q56vTrCKaG6aAn7EUI/EejZV+UBN7s= Received: from mail-oi1-f200.google.com (mail-oi1-f200.google.com [209.85.167.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-48-8hX3-pz5PKyUvV90FwmKkg-1; Mon, 12 Jul 2021 19:09:36 -0400 X-MC-Unique: 8hX3-pz5PKyUvV90FwmKkg-1 Received: by mail-oi1-f200.google.com with SMTP id w2-20020aca62020000b029024073490067so14067053oib.21 for ; Mon, 12 Jul 2021 16:09:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ncUzG7oD+cRuBPSNikH54792RGrvr4Fe/3Hos8E3uks=; b=U9YNytHMMbpbBeZK/y8vNhbMmC8lTzuC7uul3Tokhd4N6tnlirbilx7byBm7oFHqT+ q8DovIu37Wf5bGhBzR+HeJl5CLm+WQeo+CO8WRg75deE1s723biMuqDaNFvjDo4pbHr1 eXXtII/9jNl1zrbHb8l2gqoSBkQ7A6D5/xgH4DeeLK/FkyePmlvLesz8KZTiACr5r+EH /hhpfnbaSwKfIS8c0Im5f3rTu80KqdzFEK+JNnTj1gyu3OGBWCTmSfswPECADkukTNzu xYiZV5vmDChZvB6CV1iEkwlDjilf0M4XDm9SUgYLMk0owehjMxSns1OZTGg8AXTdBN4D dMlA== X-Gm-Message-State: AOAM5329VSN+c6oRDeBPHczqDip13xUZJ62n9bs9iK4j0bF9AfA8V45i Wv/sPBQuSz4kaU45mO02enCnO1x+TQYhdOeyB7+wxZTrvbGVJ6UwZJv6BdPC9DZNFX7vewYw/7p e13fExz/ZzkFXjPAVTn323QmK X-Received: by 2002:a54:438f:: with SMTP id u15mr12421722oiv.107.1626131375430; Mon, 12 Jul 2021 16:09:35 -0700 (PDT) X-Received: by 2002:a54:438f:: with SMTP id u15mr12421718oiv.107.1626131375310; Mon, 12 Jul 2021 16:09:35 -0700 (PDT) Received: from redhat.com ([198.99.80.109]) by smtp.gmail.com with ESMTPSA id r24sm1026885otg.14.2021.07.12.16.09.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jul 2021 16:09:35 -0700 (PDT) Date: Mon, 12 Jul 2021 17:09:34 -0600 From: Alex Williamson To: Amey Narkhede Cc: Bjorn Helgaas , Raphael Norwitz , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kw@linux.com, Shanker Donthineni , Sinan Kaya , Len Brown , "Rafael J . Wysocki" Subject: Re: [PATCH v10 6/8] PCI: Setup ACPI fwnode early and at the same time with OF Message-ID: <20210712170934.34666a1f.alex.williamson@redhat.com> In-Reply-To: <20210709123813.8700-7-ameynarkhede03@gmail.com> References: <20210709123813.8700-1-ameynarkhede03@gmail.com> <20210709123813.8700-7-ameynarkhede03@gmail.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Jul 2021 18:08:11 +0530 Amey Narkhede wrote: > From: Shanker Donthineni > > The pci_dev objects are created through two mechanisms 1) during PCI > bus scan and 2) from I/O Virtualization. The fwnode in pci_dev object > is being set at different places depends on the type of firmware used, > device creation mechanism, and acpi_pci_bridge_d3() WAR. > > The software features which have a dependency on ACPI fwnode properties > and need to be handled before device_add() will not work. One use case, > the software has to check the existence of _RST method to support ACPI > based reset method. > > This patch does the two changes in order to provide fwnode consistently. > - Set ACPI and OF fwnodes from pci_setup_device(). > - Remove pci_set_acpi_fwnode() in acpi_pci_bridge_d3(). > > After this patch, ACPI/OF firmware properties are visible at the same > time during the early stage of pci_dev setup. And also call sites should > be able to use firmware agnostic functions device_property_xxx() for the > early PCI quirks in the future. > > Signed-off-by: Shanker Donthineni > --- > drivers/pci/pci-acpi.c | 1 - > drivers/pci/probe.c | 7 ++++--- > 2 files changed, 4 insertions(+), 4 deletions(-) Looks ok to me. Reviewed-by: Alex Williamson