diff mbox

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

Message ID 1379685050-24999-1-git-send-email-treding@nvidia.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Thierry Reding Sept. 20, 2013, 1:50 p.m. UTC
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@nvidia.com>
---
 drivers/pci/pci_auto.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini Oct. 7, 2013, 8:04 p.m. UTC | #1
On Fri, Sep 20, 2013 at 03:50:50PM +0200, Thierry Reding wrote:

> 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@nvidia.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

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