]> git.baikalelectronics.ru Git - uboot.git/commit
pci: coreboot: Don't read regions when booting
authorSimon Glass <sjg@chromium.org>
Thu, 4 May 2023 22:55:01 +0000 (16:55 -0600)
committerBin Meng <bmeng@tinylab.org>
Thu, 11 May 2023 02:25:29 +0000 (10:25 +0800)
commit21e3384aee0332966ad3a31eecd6764df11ccbd9
tree3f6906b349265f1ec8564b1fb3d68ec695e4eddc
parent711382b6ce8b74657c88bc858791646ab15e4cd2
pci: coreboot: Don't read regions when booting

When U-Boot is the second-stage bootloader, PCI is already set up. We
cannot read the regions from the device tree. There is no point anyway,
since PCI devices have already been allocated according to the regions
and it is not safe for U-Boot to make any changes.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Fixes: 2165728c3e11 ("pci: Handle failed calloc in decode_regions()")
Tested-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci-uclass.c