[PATCH] PCMCIA: prevent auto insert during resume.
rmk+lkml at arm.linux.org.uk
Fri Oct 26 12:02:06 EDT 2007
On Fri, Oct 26, 2007 at 05:47:06PM +0200, Rodolfo Giometti wrote:
> On Fri, Oct 26, 2007 at 04:11:41PM +0100, Russell King wrote:
> > On Fri, Oct 26, 2007 at 12:51:25PM +0200, Rodolfo Giometti wrote:
> > > If a socket has been ejected before sleeping, at resume time it
> > > shouldn't be awaked.
> > Conversely, if a card has been inserted into an empty slot prior to
> > resuming, it should be detected. Removing this check prevents that
> > happening, which sucks for at least embedded devices.
> You can use "pccardctl insert" to do it. :)
Not on a battery powered device with a graphical interface.
> On battery powered device I should prevent power lost, so if I power
> down a device I'd like it should remain off even after resume.
In which case you need to remember why it was powered down and act
> Why the system should power it on automagically? Just for detection?
When you bring the battery device out of resume, and you've inserted a
card, you want it to be detected. Your change means you have to wait
until the system has finished resuming before you plug the card in,
which practically is a pain in the butt and actually leads to user
"I plugged my wireless card in after I pressed the power button, why
wasn't it detected?"
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
More information about the linux-pcmcia