Power Cycling cards

Russell King rmk+pcmcia at arm.linux.org.uk
Thu Feb 21 11:28:30 EST 2008


On Thu, Feb 21, 2008 at 10:54:12AM -0500, David H. Lynch Jr. wrote:
> The proscribed means to "reset"  pico cards is to cycle the power.
> Nothing else is guaranteed to work.   When power is cycled the card itself
> goes through a fairly detailed process and selects the correct firmware
> from its flash and loads it.

Sounds very non-standard, so it's going to be very hit and miss whether
it's going to work.

For some PCMCIA interfaces, particularly on hand held devices, this is
impossible.  The best you can do is to tell the PCMCIA layer to eject
them and then insert them.  If the socket supports power control, power
will be removed when "ejected" and reapplied when "inserted".  If the
socket doesn't support power control, power will remain on.

> Alright my question is from a linux driver how to I cycle the power on
> a PCMCIA/CardBus card ?

Bear in mind that "ejecting" a card includes unbinding the drivers from
the card, so you can't do it from your driver.

> I have searched other drivers but could nto find anything that seemed to
> have  a similar need.

That's because you seem to have non-standard requirements.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:



More information about the linux-pcmcia mailing list