[U-Boot] [Patch] ./drivers/pci/pci.c

FUJITA Kazutoshi fujita at soum.co.jp
Tue Mar 9 15:28:41 CET 2010


From: Wolfgang Denk <wd at denx.de>
Subject: Re: [U-Boot] [Patch] ./drivers/pci/pci.c
Date: Tue, 09 Mar 2010 14:27:25 +0100

> Please provide a useful commit message, and add your Signed-off-by:
> line.

sorry, how about this?

regards,


this patch fixes to deal with PCI_BASE_ADDRESS_5 which was forgotten
in pci_hose_config_device()

Signed-off-by: FUJITA Kazutoshi <fujita at soum.co.jp>


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


More information about the U-Boot mailing list