* [patch] Fix for minor error in 2.4 /proc/isapnp output
@ 2004-02-06 14:57 Hilko Bengen
0 siblings, 0 replies; only message in thread
From: Hilko Bengen @ 2004-02-06 14:57 UTC (permalink / raw)
To: marcelo.tosatti; +Cc: linux-kernel, perex
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) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-02-06 15:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-06 14:57 [patch] Fix for minor error in 2.4 /proc/isapnp output Hilko Bengen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox