public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [Patch] ./drivers/pci/pci.c
@ 2010-03-09 12:22 FUJITA Kazutoshi
  2010-03-09 13:27 ` Wolfgang Denk
  0 siblings, 1 reply; 5+ messages in thread
From: FUJITA Kazutoshi @ 2010-03-09 12:22 UTC (permalink / raw)
  To: u-boot

hi,

it might be a small bug.


regards,


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);
 

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-03-21 16:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-09 12:22 [U-Boot] [Patch] ./drivers/pci/pci.c FUJITA Kazutoshi
2010-03-09 13:27 ` Wolfgang Denk
2010-03-09 14:28   ` FUJITA Kazutoshi
2010-03-09 17:48     ` Stefan Roese
2010-03-21 16:58     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox