Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/pcmcia



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@localhost
 Wasabi Systems, Inc.             http://www.wasabisystems.com/



Home | Main Index | Thread Index | Old Index