]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Correct low cell in ofnode_read_pci_addr()
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:55:46 +0000 (08:55 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 3 Oct 2019 13:10:11 +0000 (21:10 +0800)
commitb9039f1734e8019e7b7e0d4ab28711c79caa2a71
treeae16e247a479c933aeb3df8faba938e75d3a3317
parent9b8be893ac24e03b8fcbafe21c165ac2bc8a5f16
dm: core: Correct low cell in ofnode_read_pci_addr()

This reads the low cell of the PCI address from the wrong cell. Fix it.
Also fix the function that this code came from.

Fixes: 581947da26 (dm: core: Add operations on device tree references)
Fixes: 4ea5243a3a (fdt: fix fdtdec_get_pci_addr() for CONFIG_PHYS_64BIT)
Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/ofnode.c
lib/fdtdec.c