]> git.baikalelectronics.ru Git - uboot.git/commit
pci: Fix register for determining type of IO base address
authorPali Rohár <pali@kernel.org>
Thu, 25 Nov 2021 10:30:58 +0000 (11:30 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 12 Jan 2022 19:21:24 +0000 (14:21 -0500)
commit7ac520760565241a0c75a7f3a67ccb4f61474e6a
treea26aa767a082028b66399adf816a4a23a0d84eff
parent2f25ddc904e6dc1330a56083c16eef4bb1269b20
pci: Fix register for determining type of IO base address

Function dm_pciauto_prescan_setup_bridge() configures base address
registers, therefore it should read type of IO from base address registers
(and not from limit address registers).

Note that base and limit address registers should have same type, so this
change is just usage correction and has no functional change on correctly
working hardware.

Fixes: 428cbd49832a ("pci: Fix configuring io/memory base and limit registers of PCI bridges")
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/pci/pci_auto.c