[patches 1/8] pcmcia: yenta override to re-allocate resources
Dominik Brodowski
linux at dominikbrodowski.de
Tue Jan 11 11:58:22 EST 2005
From: Manfred Spraul
[PATCH] yenta: Add override_bios flag to ignore BIOS resource allocation
One bios assigns a small window for i/o access to yenta bridges. But
there are Cardbus cards that needs lots of i/o ports. yenta usually
honors the bios selected values, except if the bios choice is clearly
invalid. The patch allows an override from the command line.
Signed-Off-By: Manfred Spraul <manfred at colorfullife.com>
Signed-Off-By: Dominik Brodowski <linux at brodo.de>
---
drivers/pcmcia/yenta_socket.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletion(-)
Index: 2.6.10/drivers/pcmcia/yenta_socket.c
===================================================================
--- 2.6.10.orig/drivers/pcmcia/yenta_socket.c 2004-12-29 11:34:09.000000000 +0100
+++ 2.6.10/drivers/pcmcia/yenta_socket.c 2004-12-29 22:17:00.903678263 +0100
@@ -42,6 +42,10 @@
static int yenta_probe_cb_irq(struct yenta_socket *socket);
+static unsigned int override_bios;
+module_param(override_bios, uint, 0000);
+MODULE_PARM_DESC (override_bios, "yenta ignore bios resource allocation");
+
/*
* Generate easy-to-use ways of reading a cardbus sockets
* regular memory space ("cb_xxx"), configuration space
@@ -551,7 +555,7 @@
start = config_readl(socket, offset) & mask;
end = config_readl(socket, offset+4) | ~mask;
- if (start && end > start) {
+ if (start && end > start && !override_bios) {
res->start = start;
res->end = end;
if (request_resource(root, res) == 0)
More information about the linux-pcmcia
mailing list