Re: [PATCH] PCMCIA: prevent auto insert during resume.

From: Rodolfo Giometti
Date: Fri Oct 26 2007 - 11:44:40 EST


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. :)

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.

Why the system should power it on automagically? Just for detection?

Ciao,

Rodolfo

--

GNU/Linux Solutions e-mail: giometti@xxxxxxxxxxxx
Linux Device Driver giometti@xxxxxxxxx
Embedded Systems giometti@xxxxxxxx
UNIX programming phone: +39 349 2432127
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/