Subject: Re: CVS commit: src/sys/dev/pcmcia
To: enami tsugutomo <enami@but-b.or.jp>
From: Allen Briggs <briggs@wasabisystems.com>
List: source-changes
Date: 10/22/2003 23:38:12
On Thu, Oct 23, 2003 at 12:21:06PM +0900, enami tsugutomo wrote:
> Then, keep the WDC_PCMCIA_ATTACH flag set after we exit from
> wdc_pcmcia_attach(), and in wdc_pcmcia_enable, clear WDC_PCMCIA_ATTACH
> flag instead of calling pcmcia_function_enable() if it is set.

I cringed at this at first, but I think this does do what we want.
I.e., avoid a nested/persistent enable state as well as an extra
power cycle.

It does need one tweak, though.  Since the card might be ejected before
we actually get into the wdc attachment, we need to check for this case
in wdc_pcmcia_detach().

I will test this and if it looks OK, I'll check this behavior in.

-allen

-- 
 Allen Briggs                     briggs@wasabisystems.com
 Wasabi Systems, Inc.             http://www.wasabisystems.com/