[PATCH 1/4] pci: Fix setting controller's last_busno

Stefan Roese sr at denx.de
Tue Jan 25 16:49:44 CET 2022


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 <pali at kernel.org>

Reviewed-by: Stefan Roese <sr at denx.de>

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 at denx.de


More information about the U-Boot mailing list