atabus@wdc can't attach

KIYOHARA Takashi <[email protected]> Thu, 26 Feb 2009 18:15:20 +0900 (JST)
Newsgroups gmane.os.netbsd.ports.hpcsh
Message-ID <[email protected]>
----Next_Part(Thu_Feb_26_18_15_21_2009_697)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi! all,


My hpcsh machine(PERSONA HPW-50PA) can't attach atabus@wdc at current
(20090221).  Maybe since this change.

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/pcmcia/wdc_pcmcia.c.diff?r1=1.112&r2=1.113&f=h


We will have to delay attaching until kthread runs.

Thanks,
--
kiyohara


----Next_Part(Thu_Feb_26_18_15_21_2009_697)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="hd64461pcmcia-attach-in-kthread.diff"

Index: hd64461pcmcia.c
===================================================================
RCS file: /cvsroot/src/sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c,v
retrieving revision 1.43
diff -u -r1.43 hd64461pcmcia.c
--- hd64461pcmcia.c	28 Apr 2008 20:23:22 -0000	1.43
+++ hd64461pcmcia.c	23 Feb 2009 17:49:39 -0000
@@ -269,14 +269,6 @@
 			       &sc->sc_event_thread,
 			       "%s", device_xname(self));
 	KASSERT(error == 0);
-
-#if !defined(HD64461PCMCIA_REORDER_ATTACH)
-	hd64461pcmcia_attach_channel(sc, CHANNEL_0);
-	hd64461pcmcia_attach_channel(sc, CHANNEL_1);
-#else
-	hd64461pcmcia_attach_channel(sc, CHANNEL_1);
-	hd64461pcmcia_attach_channel(sc, CHANNEL_0);
-#endif
 }
 
 STATIC void
@@ -286,6 +278,14 @@
 	struct hd64461pcmcia_event *pe;
 	int s;
 
+#if !defined(HD64461PCMCIA_REORDER_ATTACH)
+	hd64461pcmcia_attach_channel(sc, CHANNEL_0);
+	hd64461pcmcia_attach_channel(sc, CHANNEL_1);
+#else
+	hd64461pcmcia_attach_channel(sc, CHANNEL_1);
+	hd64461pcmcia_attach_channel(sc, CHANNEL_0);
+#endif
+
 	while (!sc->sc_shutdown) {
 		tsleep(sc, PWAIT, "CSC wait", 0);
 		s = splhigh();

----Next_Part(Thu_Feb_26_18_15_21_2009_697)----