Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2460943ybt; Tue, 16 Jun 2020 06:47:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6L0Cycl4paw6DL+xg2Huc6EzwAcYdgPDYuCeg1pPJt/Q4TysJnxdQhRz5i9hh9no4Skxr X-Received: by 2002:a17:906:784c:: with SMTP id p12mr2795748ejm.123.1592315263356; Tue, 16 Jun 2020 06:47:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592315263; cv=none; d=google.com; s=arc-20160816; b=Ib/HAvECIbZ5iH8SSNq0UO0FpfUSx5FLz+ryVBroWgPaF9X8yII9iA7+hD81IilUXm +rpiY8UaAovsjx7mKAgIsmW5oNBV+z6YtYxSTw1LbU9c2sZ6m+PgfIfJQZUt1oE//8fZ Ao95oNwz//0XC514aUkhW0XEwlG/+1sEtkYY3fFCPPbA/w4R5kpf62aVVVFrU1WqkR0m d058nUUxCgw/0QdaJAkDio7SK8sPXXVTaGF11ekf4776ynMYSViOBEbhCGyW28tSOzUI VivaH4AaXjXHjCCLGIZv64lXcYmAtXb+E4jcOsEdkjGZLmGw3iB6JFLzs5PufMLfyD0L 3y4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=eIo+HGK20axijQZBtO3IaHsxbNdFn4EANNOPWtaPaLA=; b=s97269vrfbVG1PfTiCKtX8O0w1NgcflU6Iq0iY0Tn49VURtMckWElmo0VFpV5DYl2a LxS4bwIkN9Y8sW7gOWwvM6H3lRnk1kPtG5V0ELjdxJuEQ5rtqpUc7Sr2KH3BWmEKKEQ8 0Cx0aWQAhp+YOCIcSE8GzKXh60PjjqOh/d+BqTRk5e7Xqoftpnhbg4bKibzpH5uaucpL +OQY8YY9UaA8wVLVkMmve+ebWO8rXHX2+h+Gz45a/CWXsJ2w0KhbIrPtkX80VxOs8lM4 KiXG0s5PRkX2XwLfcMzfGjStTHoSLzRWretJ/5jHxNB7SmczHXkOCFlKnAKbqHcVOoEK 3fFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ti3A4cIL; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si10642899ejm.90.2020.06.16.06.47.20; Tue, 16 Jun 2020 06:47:43 -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=@chromium.org header.s=google header.b=Ti3A4cIL; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729018AbgFPNoc (ORCPT + 99 others); Tue, 16 Jun 2020 09:44:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729014AbgFPNoO (ORCPT ); Tue, 16 Jun 2020 09:44:14 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 450FBC06174E for ; Tue, 16 Jun 2020 06:44:11 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id s13so15937510otd.7 for ; Tue, 16 Jun 2020 06:44:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=eIo+HGK20axijQZBtO3IaHsxbNdFn4EANNOPWtaPaLA=; b=Ti3A4cILAHIDDIxgVtqdZ2BML3TZ6f6OLZGrHLBL34GXJRffClZw072wL1Qo4irTRG LxLWRixU8D9pdjtFCIEaBQgDWc1eiSXdOQwy7qHCS4Tp4O7FvTR+d+9heh5J1AGxv8ZF +uVYoUwMaD5nA7wH+WGhp0SptSU3H8NTwJVag= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=eIo+HGK20axijQZBtO3IaHsxbNdFn4EANNOPWtaPaLA=; b=I6+hQBwFpGBVYBP0Rw3W70RSutZ46LKbpCuTEqVMWCmi4I6P5AzVlq2TkWU4WPyTGk bo1nHudjyAzYBsmlK/SOnhB20IMFGlvYTrv2wJoyo1BHIYCxOSZ8L6bOj1eXT5aCHVu2 0Bmc/IJgzLl9Oeag43VMtWkeDmupAXaBzHN0i4IpWCeVXvvm0gkngVfLsjJnNBTuRYol OwBeLHrkiYxHmyNjCm+gHkdTsYWzVqkqx7P3HR4qes1bAUkQ1K9BlXxScMauNl+PliBi Jb8PktXj36iI/xNCFDXH0k6ZDS6c60JCHTtmhAo7/RxCMKzrNPBhekfb0cyhMnyp02R0 bzkA== X-Gm-Message-State: AOAM532Q7uC2Ordkb3pt+qaUr7Dbx9o3iLfZSzwtotBMo1wU1zBF89pe 01jT6ZoJunIRhTiwLHO3htWUA2qsJO7nYfUJTSLWUQ== X-Received: by 2002:a9d:8b8:: with SMTP id 53mr1550777otf.356.1592315050316; Tue, 16 Jun 2020 06:44:10 -0700 (PDT) MIME-Version: 1.0 References: <20200612164632.25648-1-nsaenzjulienne@suse.de> <20200612164632.25648-5-nsaenzjulienne@suse.de> In-Reply-To: <20200612164632.25648-5-nsaenzjulienne@suse.de> From: Simon Glass Date: Tue, 16 Jun 2020 07:43:57 -0600 Message-ID: Subject: Re: [PATCH v4 4/5] dm: pci: Assign controller device node to root bridge To: Nicolas Saenz Julienne Cc: Matthias Brugger , U-Boot Mailing List , Bin Meng , Marek Vasut , lk , Marek Szyprowski , Sylwester Nawrocki , Mark Kettenis Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, 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. Make > sure the root bridge ofnode is assigned to the controller's platform > device node. > > This permits setups like this to work correctly: > > pcie { > compatible = "..."; > ... > dev { > reg = <0 0 0 0 0>; > ... > }; > }; > > Without this the dev node is assigned to the root bridge and the > actual device search starts one level lower than expected. > > Signed-off-by: Nicolas Saenz Julienne > --- > drivers/pci/pci-uclass.c | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) Can you update the tests to handle this case please? Regards, Simon