[PATCH] pcmcia: don't sleep when you aren't tired

Russell King rmk at arm.linux.org.uk
Mon Jul 7 00:42:22 BST 2003


On Fri, Jun 20, 2003 at 11:43:56PM +0200, Dominik Brodowski wrote:
> There seems to be no reason why ds.c should wait for 100ms before it
> unregisters the drivers etc. Also, check whether it's safe to sleep
> here...

I'm not so sure we want to make this change just yet.  Eventually, yes.
Net devices are currently undergoing something of a overhaul, sorting
out the lifetime of the "net_device" object.  I think this work needs
to be completed before we think about removing this timer.

I also think that we need to eliminate the timers in all the pcmcia
card drivers before this change; they likewise have a (shorter) timer
on ejection.

This is all part of a crude attempt at sequencing events to make stuff
occur in the right order.  ie:

- unplug device
- start 50ms timer to remove processing in card drivers
  (crude attempt to wait for card driver interrupt handlers to return.)
- start 100ms timer to delay notification to cardmgr
- card driver removes all references
- (50ms wait caused by difference in timers)
- card removal notification hits user space

Other than that, its something we should do.

-- 
Russell King (rmk at arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html




More information about the linux-pcmcia mailing list