]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/sh/drivers/pci/pci-auto.c
Merge branches 'release' and 'gpe-ack' into release
[linux-2.6-omap-h63xx.git] / arch / sh / drivers / pci / pci-auto.c
index ecf16344f94a7347ea389e6dca256d6045787012..ea404704ace83b03682bd478f63f5f03f5eaac3b 100644 (file)
@@ -214,6 +214,12 @@ retry:
                        continue;
                }
 
+               if (bar_value < *lower_limit || (bar_value + bar_size) >= *upper_limit) {
+                       DBG(" unavailable -- skipping, value %x size %x\n",
+                                       bar_value, bar_size);
+                       continue;
+               }
+
 #ifdef CONFIG_PCI_AUTO_UPDATE_RESOURCES
                /* Write it out and update our limit */
                early_write_config_dword(hose, top_bus, current_bus, pci_devfn,
@@ -510,10 +516,8 @@ pciauto_bus_scan(struct pci_channel *hose, int top_bus, int current_bus)
                                         PCI_COMMAND, cmdstat | PCI_COMMAND_IO |
                                         PCI_COMMAND_MEMORY |
                                         PCI_COMMAND_MASTER);
-#if !defined(CONFIG_SH_HS7751RVOIP) && !defined(CONFIG_SH_RTS7751R2D)
                early_write_config_byte(hose, top_bus, current_bus, pci_devfn,
                                        PCI_LATENCY_TIMER, 0x80);
-#endif
 
                /* Allocate PCI I/O and/or memory space */
                pciauto_setup_bars(hose, top_bus, current_bus, pci_devfn, PCI_BASE_ADDRESS_5);