]> git.sur5r.net Git - u-boot/commitdiff
Fix PCI_BASE_ADDRESS_5 handling in pci_hose_config_device()
authorWolfgang Denk <wd@denx.de>
Tue, 9 Mar 2010 13:27:25 +0000 (14:27 +0100)
committerWolfgang Denk <wd@denx.de>
Sun, 21 Mar 2010 16:58:07 +0000 (17:58 +0100)
Signed-off-by: FUJITA Kazutoshi <fujita@soum.co.jp>
Signed-off-by: <wd@denx.de>
Acked-by: Stefan Roese <sr@denx.de>
drivers/pci/pci.c

index d6d2d6e4ad63f42bcfcab9ab3d94c76ecccbc3dc..cd64a87fc6d9b200ed805ae1e6f5a7e014180435 100644 (file)
@@ -388,7 +388,7 @@ int pci_hose_config_device(struct pci_controller *hose,
 
        pci_hose_write_config_dword (hose, dev, PCI_COMMAND, 0);
 
-       for (bar = PCI_BASE_ADDRESS_0; bar < PCI_BASE_ADDRESS_5; bar += 4) {
+       for (bar = PCI_BASE_ADDRESS_0; bar <= PCI_BASE_ADDRESS_5; bar += 4) {
                pci_hose_write_config_dword (hose, dev, bar, 0xffffffff);
                pci_hose_read_config_dword (hose, dev, bar, &bar_response);