Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: source-changes
Date: 01/30/2001 09:23:15
Module Name:	syssrc
Committed By:	itohy
Date:		Tue Jan 30 07:23:14 UTC 2001

Modified Files:
	syssrc/sys/dev/pci: pccbb.c

Log Message:
Fix problem where tsleep() is used not on the cardbus thread.
This change makes PCMCIA cards work again on my machine.

Unfortunately, some of the DELAY_MS() are called when the current
process is not the cardbus thread, that is, on interrupt contexts.
I confirmed these are actually used in interrupt context and replaced
them with delay()s.  However, I haven't confirmed other DELAY_MS()s
are always on the cardbus thread.

This shall be a temporary fix.  The driver needs being rewritten
not to use such delay()s, of course.


To generate a diff of this commit:
cvs rdiff -r1.55 -r1.56 syssrc/sys/dev/pci/pccbb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.