Date: Wed, 1 Dec 1999 13:48:01 -0500 (EST) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Warner Losh <imp@village.org> Cc: new-bus@freebsd.org Subject: Re: PCCARD eject freeze (was Re: your mail) Message-ID: <199912011848.NAA54963@khavrinen.lcs.mit.edu> In-Reply-To: <199912011828.LAA03231@harmony.village.org> References: <199912011828.LAA03231@harmony.village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 01 Dec 1999 11:28:10 -0700, Warner Losh <imp@village.org> said: > Suspend has a similar problem because it can come in while a > device is sleeping. The device driver gets informed about suspends (although some broken drivers don't pay attention). Every DEVICE_SUSPEND method should place that device in a quiescent state. Here's a state table: NP = Not Present P = Present I = Inactive B = Busy S = Suspended to-------------------------------------- from NP P I B S NP probe probe - - - P attach - attach - - I - - - open suspend B - - close - suspend S detach - resume resume - (In this table, `open' and `close' also include ifconfig or other analogous behavior for non-device-interface drivers. There are a few more gradations which might turn out to be useful as well, but I think this is the model.) -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-new-bus" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912011848.NAA54963>