[PATCH] ISA PnP

From: Jaroslav Kysela (perex@suse.cz)
Date: Fri Sep 27 2002 - 06:16:04 EST


Hi all,

        the read port (RDP) of ISA PnP cards must be set only when card is
in the isolation phase. Bellow is a patch to follow the ISA PnP
specification. Please, apply.

                                                Jaroslav

You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================

ChangeSet@1.606, 2002-09-27 13:13:08+02:00, perex@pnote.perex-int.cz
  ISA PnP change
    Jens Thoms Toerring <Jens.Toerring@physik.fu-berlin.de>
      - RDP must be reset only in isolation phase

 isapnp.c | 18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff -Nru a/drivers/pnp/isapnp.c b/drivers/pnp/isapnp.c
--- a/drivers/pnp/isapnp.c Fri Sep 27 13:13:51 2002
+++ b/drivers/pnp/isapnp.c Fri Sep 27 13:13:51 2002
@@ -1048,11 +1048,19 @@
         isapnp_wait();
         isapnp_key();
         isapnp_wake(csn);
-#if 1 /* to avoid malfunction when the isapnptools package is used */
- isapnp_set_rdp();
- udelay(1000); /* delay 1000us */
- write_address(0x01);
- udelay(1000); /* delay 1000us */
+#if 1
+ /* to avoid malfunction when the isapnptools package is used */
+ /* we must set RDP to our value again */
+ /* it is possible to set RDP only in the isolation phase */
+ /* Jens Thoms Toerring <Jens.Toerring@physik.fu-berlin.de> */
+ isapnp_write_byte(0x02, 0x04); /* clear CSN of card */
+ mdelay(2); /* is this necessary? */
+ isapnp_wake(csn); /* bring card into sleep state */
+ isapnp_wake(0); /* bring card into isolation state */
+ isapnp_set_rdp(); /* reset the RDP port */
+ udelay(1000); /* delay 1000us */
+ isapnp_write_byte(0x06, csn); /* reset CSN to previous value */
+ udelay(250); /* is this necessary? */
 #endif
         if (logdev >= 0)
                 isapnp_device(logdev);

===================================================================

This BitKeeper patch contains the following changesets:
1.606
## Wrapped with gzip_uu ##

begin 664 bkpatch2383
M'XL(`&\]E#T``[55;6_;-A#^;/Z*`_(E:VN)I%[\LK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end

-----
Jaroslav Kysela <perex@suse.cz>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Sep 30 2002 - 22:00:30 EST