[U-Boot] [PATCH] pci: Properly configure prefetchable memory region

Thierry Reding thierry.reding at gmail.com
Fri Sep 20 15:50:50 CEST 2013


Forcibly set hose->pci_prefetch to NULL to make sure it will be setup.
This will help if for any reason callers didn't make sure themselves to
NULL the field.

Signed-off-by: Thierry Reding <treding at nvidia.com>
---
 drivers/pci/pci_auto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c
index c4ed8ba..86ba6b5 100644
--- a/drivers/pci/pci_auto.c
+++ b/drivers/pci/pci_auto.c
@@ -297,7 +297,7 @@ void pciauto_config_init(struct pci_controller *hose)
 {
 	int i;
 
-	hose->pci_io = hose->pci_mem = NULL;
+	hose->pci_io = hose->pci_mem = hose->pci_prefetch = NULL;
 
 	for (i = 0; i < hose->region_count; i++) {
 		switch(hose->regions[i].flags) {
-- 
1.8.4



More information about the U-Boot mailing list