[U-Boot] [PATCH 02/30] dm: pci: Break out the common region display code

Stephen Warren swarren at wwwdotorg.org
Wed Feb 17 01:19:23 CET 2016


On 02/14/2016 07:16 PM, Simon Glass wrote:
> Each region is displayed in almost the same way. Break out this common code
> into its own function.

> diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c

> +	if (hose->pci_mem)
> +		pciauto_show_region("Memory", hose->pci_mem);
> +	if (hose->pci_prefetch)
> +		pciauto_show_region("Prefetchable Mem", hose->pci_mem);

That parameter should be hose->pci_prefetch

> +	if (hose->pci_io)
> +		pciauto_show_region("I/O", hose->pci_io);

With that fixed, the "dhcp" failure I mentioned earlier is fixed (the 
system in question uses PCIe Ethernet).


More information about the U-Boot mailing list