]> git.baikalelectronics.ru Git - uboot.git/commit
dm: pci: Check board information pointer in decode_regions()
authorBin Meng <bmeng.cn@gmail.com>
Tue, 27 Mar 2018 07:46:05 +0000 (00:46 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 30 Mar 2018 08:05:08 +0000 (16:05 +0800)
commitef672c2c1f6df6793c3f6a178f36a57e9fc66d8b
tree33be3e6580a2004575777bef1fdf9e6bce46a051
parentc370a355a3bc26f22796c00b0cbb7f1c85e8ac2e
dm: pci: Check board information pointer in decode_regions()

PCI enumeration may happen very early on an x86 board. The board
information pointer should have been checked in decode_regions()
as its space may not be allocated yet.

With this commit, Intel Galileo board boots again.

Fixes: 1734e69 ("pci: Fix decode regions for memory banks")
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/pci/pci-uclass.c