]> git.neil.brown.name Git - history.git/commitdiff
Make yenta allocate IO resource windows in same range as in 2.4.x
authorLinus Torvalds <torvalds@home.osdl.org>
Thu, 23 Oct 2003 01:29:45 +0000 (18:29 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 23 Oct 2003 01:29:45 +0000 (18:29 -0700)
Apparently some laptops (Compaq EVO N620c for one) have something
hidden at IO port range 0x1000, and the 2.4.x default of allocating
IO starting at 0x4000 is safer.

drivers/pcmcia/yenta_socket.c
include/asm-i386/pci.h

index 0fde149e0d6dde680aa9b9b2977f8a7dd800cae0..27324a8561548650d8de98aed2ea5d71897dcd36 100644 (file)
@@ -509,6 +509,10 @@ static int yenta_sock_suspend(struct pcmcia_socket *sock)
 #define BRIDGE_IO_MAX 256
 #define BRIDGE_IO_MIN 32
 
+#ifndef PCIBIOS_MIN_CARDBUS_IO
+#define PCIBIOS_MIN_CARDBUS_IO PCIBIOS_MIN_IO
+#endif
+
 static void yenta_allocate_res(struct yenta_socket *socket, int nr, unsigned type)
 {
        struct pci_bus *bus;
@@ -551,7 +555,7 @@ static void yenta_allocate_res(struct yenta_socket *socket, int nr, unsigned typ
                align = 1024;
                size = BRIDGE_IO_MAX;
                min = BRIDGE_IO_MIN;
-               start = PCIBIOS_MIN_IO;
+               start = PCIBIOS_MIN_CARDBUS_IO;
                end = ~0U;
        } else {
                unsigned long avail = root->end - root->start;
index f9af605e42bf303999d7c1cef93b910a7888fb10..0fc93a7d3c07c4041af16fde9cd06dee1d1bbaa7 100644 (file)
@@ -20,6 +20,8 @@ extern unsigned long pci_mem_start;
 #define PCIBIOS_MIN_IO         0x1000
 #define PCIBIOS_MIN_MEM                (pci_mem_start)
 
+#define PCIBIOS_MIN_CARDBUS_IO 0x4000
+
 void pcibios_config_init(void);
 struct pci_bus * pcibios_scan_root(int bus);