[patch] Fix for minor error in 2.4 /proc/isapnp output
From: Hilko Bengen
Date: Fri Feb 06 2004 - 10:02:02 EST
In isapnp_proc.c, the wrong registers from the PnP device are read to
determine the iomem area the device is configured to use. According to
the "Plug and Play ISA Specification Version 1.0a", only bits 23
through 8 of the start address can be retrieved from two one-byte
registers.
The attached patch makes isapnp_proc.c read the right registers.q
Please apply it to the 2.4 tree.
Greetings,
-Hilko
diff -uir orig/linux-2.4.24/drivers/pnp/isapnp_proc.c linux-2.4.24/drivers/pnp/isapnp_proc.c
--- orig/linux-2.4.24/drivers/pnp/isapnp_proc.c 2002-11-29 00:53:14.000000000 +0100
+++ linux-2.4.24/drivers/pnp/isapnp_proc.c 2004-02-06 14:56:45.000000000 +0100
@@ -649,7 +649,7 @@
if (next)
isapnp_printf(buffer, "\n");
for (i = next = 0; i < 4; i++) {
- tmp = isapnp_read_dword(ISAPNP_CFG_MEM + (i << 3));
+ tmp = isapnp_read_word(ISAPNP_CFG_MEM + (i << 3)) << 8;
if (!tmp)
continue;
if (!next) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/