Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2479651ybt; Tue, 16 Jun 2020 07:13:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQxn3bwmUYsnHXYEJ7Vy8DTwQX0z2vEvtLfIxCvcduJk3k8Z/JWcKCOCGszubz6DhCekQ/ X-Received: by 2002:a17:906:ae85:: with SMTP id md5mr2940275ejb.213.1592316780669; Tue, 16 Jun 2020 07:13:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592316780; cv=none; d=google.com; s=arc-20160816; b=iMhAbXiQGo26F5OLJViRTfTf/6hgfYMZISqXiFgviNpf/SzaXrf7k6qhF0LBP8Be9d 1yB0ookcgLjj0vrPzczAj9Pqt6wNTkunZeMxFtB4Pvjhv5lmcpVqVn7B60dHphtbCJJx Coc8/eJUezpQH5NMb8joonW3KKZ3/mzllMSYjxtUWh8nv7S2gYx9+ScLD37eLjiySWwB RE6y2QKlsYON4W3B+k7aU/JvOW7XS8FaAMwaCeX7fRS2jrgrZNrxBel3PxD68FOj+KzI DFOkHFqXra+cile7i/0Nik9MoM7UmZXzUj5N5mcevEP9Mq0l1Ynj7LToRJHCIT2n6kuQ Y3sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=1+WARMKFue5DitSPBBFg0u3NBwxKIFvQENu7gkDUeF8=; b=AhskZkRBSLjMisfK9k/zpomCA7jz480tQr13dhjm8VkO2GAkWzXtyCICo8Fs4yXKqg IkIQKRDJBm0uRGLH5XsqiDRtS3oA3oy1Xf9OKIGHsAiL7/UcCIREBrn36hgIgQpeq+4H 8FjZaoWv8ARqJwZtyxJF7pPdR7GqapU04gVZEsmmIzReHoOTBqoPMEcAMZioVIPG/Ffd ufWzFWuTaDfulSaX8/bVV+vQyOrZ+RlLgNjtbMIFd/+qgbXXNnNZCaZvBX6MFbhFPzYE YwW04znJMWUUsaU+e0IeOt9FpbOxw3NPMhm/J0qy5OA/aIrQ5sIeUIdYEuOlulHFRI6b T8cA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si5380862edn.160.2020.06.16.07.12.37; Tue, 16 Jun 2020 07:13:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729109AbgFPOJ5 (ORCPT + 99 others); Tue, 16 Jun 2020 10:09:57 -0400 Received: from mx2.suse.de ([195.135.220.15]:42810 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728869AbgFPOJz (ORCPT ); Tue, 16 Jun 2020 10:09:55 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 5ACE0ABE4; Tue, 16 Jun 2020 14:09:57 +0000 (UTC) Message-ID: Subject: Re: [PATCH v4 4/5] dm: pci: Assign controller device node to root bridge From: Nicolas Saenz Julienne To: Simon Glass Cc: Matthias Brugger , U-Boot Mailing List , Bin Meng , Marek Vasut , lk , Marek Szyprowski , Sylwester Nawrocki , Mark Kettenis Date: Tue, 16 Jun 2020 16:09:49 +0200 In-Reply-To: References: <20200612164632.25648-1-nsaenzjulienne@suse.de> <20200612164632.25648-5-nsaenzjulienne@suse.de> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-hRzj0/dqG4z0PRQp4I9N" User-Agent: Evolution 3.36.3 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-hRzj0/dqG4z0PRQp4I9N Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2020-06-16 at 07:43 -0600, Simon Glass wrote: > Hi Nicolas, >=20 > On Fri, 12 Jun 2020 at 10:47, Nicolas Saenz Julienne > wrote: > > There is no distinction in DT between the PCI controller device and the > > root bridge, whereas such distinction exists from dm's perspective. Mak= e > > sure the root bridge ofnode is assigned to the controller's platform > > device node. > >=20 > > This permits setups like this to work correctly: > >=20 > > pcie { > > compatible =3D "..."; > > ... > > dev { > > reg =3D <0 0 0 0 0>; > > ... > > }; > > }; > >=20 > > Without this the dev node is assigned to the root bridge and the > > actual device search starts one level lower than expected. > >=20 > > Signed-off-by: Nicolas Saenz Julienne > > --- > > drivers/pci/pci-uclass.c | 15 ++++++++++++++- > > 1 file changed, 14 insertions(+), 1 deletion(-) >=20 > Can you update the tests to handle this case please? I'd be glad to, but I'm not familiar with the test FW in u-booy, coud give = me some pointers on where/how to test this? Regards, Nicolas --=-hRzj0/dqG4z0PRQp4I9N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEErOkkGDHCg2EbPcGjlfZmHno8x/4FAl7o0q0ACgkQlfZmHno8 x/6vIAgAinbtz9aWXY9OMZDE68tOQOYWeDK5wVp7zlk4hA1VI1QmdSWkZ0KV6f+r GV+XxzmIAvxhv/G50aP5kqKy7KxB7oWTHCI4usPn3614DBKkxTrpshmmb+QiTCIM ugTFiw34xaKlSh4MVsiUSp4R737RR5GoX+iajIsLNpITw875SPNn6GdzyL/KWm80 2ho2ptk0k+7o/2BXJpJ4BBcXgBBt74TZ7V/u4+LDbt1ZmRW5EGnxggl4W0vxed4n xULWrW1ipAI+7E/BDNibGEb8cVbaKBcrDg4hdKBKZWLkavJctCwoWfCXGiNOvPM6 u4lYBsRWWCjDXmjx+rU+UGiVQqDVSw== =cIdv -----END PGP SIGNATURE----- --=-hRzj0/dqG4z0PRQp4I9N--