aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/setup-bus.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c
index 090217afb4e1..d5897c32f669 100644
--- a/drivers/pci/setup-bus.c
+++ b/drivers/pci/setup-bus.c
@@ -914,6 +914,14 @@ static void pci_bus_size_cardbus(struct pci_bus *bus,
914 if (realloc_head) 914 if (realloc_head)
915 add_to_list(realloc_head, bridge, b_res+1, pci_cardbus_io_size, 0 /* dont care */); 915 add_to_list(realloc_head, bridge, b_res+1, pci_cardbus_io_size, 0 /* dont care */);
916 916
917 /* MEM1 must not be pref mmio */
918 pci_read_config_word(bridge, PCI_CB_BRIDGE_CONTROL, &ctrl);
919 if (ctrl & PCI_CB_BRIDGE_CTL_PREFETCH_MEM1) {
920 ctrl &= ~PCI_CB_BRIDGE_CTL_PREFETCH_MEM1;
921 pci_write_config_word(bridge, PCI_CB_BRIDGE_CONTROL, ctrl);
922 pci_read_config_word(bridge, PCI_CB_BRIDGE_CONTROL, &ctrl);
923 }
924
917 /* 925 /*
918 * Check whether prefetchable memory is supported 926 * Check whether prefetchable memory is supported
919 * by this bridge. 927 * by this bridge.