Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7A226C433EF for ; Tue, 25 Jan 2022 15:49:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 86540837C7; Tue, 25 Jan 2022 16:49:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1643125793; bh=1r7nn0PlX1LFDKylD/LbaMt9165nTOZXj4Q590s96gk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=VJxfHayX2aTIFUn0WMbz2Xm2fwM7hQ3qY/bi3maZkMhuwsrsvRdchZHNQiDsXcSyt 0+5bWV9kSyLJpg7jvpj12WWCJyX7wLPcjG1qbpPf0ktxfucV4hCYcCA366ugVrxCh9 TGfm+GyU+LwnCfNvbDgiBivhPynylrg6Liy0Lj4peQGeGgi806O1GBqJS9aLSD09XB nuFvkOg84krifhk0HNnzlfsnkyRkF2JYHv1GUf0qWAa2DwxyF1U4TkUI4CiEhdg/pe RoSnnw5gScJ8vvrgsgP/4DipyLPETuH+TEFQSD6SZ2iJSeEkxN+t4twqyWIf9+kVaa okSDNZM4PYs2w== Received: by phobos.denx.de (Postfix, from userid 109) id C8511837C7; Tue, 25 Jan 2022 16:49:51 +0100 (CET) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:1::465:204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 95D5C83217 for ; Tue, 25 Jan 2022 16:49:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp102.mailbox.org (unknown [91.198.250.119]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4Jjrrs1rRFz9sjw; Tue, 25 Jan 2022 16:49:49 +0100 (CET) Message-ID: <2800549a-5e8a-9976-0e4e-0b2be124f3fa@denx.de> Date: Tue, 25 Jan 2022 16:49:44 +0100 MIME-Version: 1.0 Subject: Re: [PATCH 1/4] pci: Fix setting controller's last_busno Content-Language: en-US To: =?UTF-8?Q?Pali_Roh=c3=a1r?= , Bin Meng , Simon Glass , =?UTF-8?Q?Marek_Beh=c3=ban?= Cc: u-boot@lists.denx.de References: <20220117153840.31173-1-pali@kernel.org> <20220117153840.31173-2-pali@kernel.org> From: Stefan Roese In-Reply-To: <20220117153840.31173-2-pali@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On 1/17/22 16:38, Pali Rohár wrote: > Initially it is set to dev_seq but update to the last bus number is > missing. Fix it. > > Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan > --- > drivers/pci/pci-uclass.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c > index 8c4d75bdb685..374b22601818 100644 > --- a/drivers/pci/pci-uclass.c > +++ b/drivers/pci/pci-uclass.c > @@ -562,6 +562,8 @@ int pci_auto_config_devices(struct udevice *bus) > if (pplat->class == (PCI_CLASS_DISPLAY_VGA << 8)) > set_vga_bridge_bits(dev); > } > + if (hose->last_busno < sub_bus) > + hose->last_busno = sub_bus; > debug("%s: done\n", __func__); > > return log_msg_ret("sub", sub_bus); Viele Grüße, Stefan Roese -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr@denx.de