From: Wolfgang Denk Date: Tue, 9 Mar 2010 13:27:25 +0000 (+0100) Subject: Fix PCI_BASE_ADDRESS_5 handling in pci_hose_config_device() X-Git-Tag: v2010.03-rc2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=252b404d954f91499a4477a3e1064eb237ce5a1c;p=kernel%2Fu-boot.git Fix PCI_BASE_ADDRESS_5 handling in pci_hose_config_device() Signed-off-by: FUJITA Kazutoshi Signed-off-by: Acked-by: Stefan Roese --- diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index d6d2d6e..cd64a87 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c @@ -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);