Regarding multifunction PC Card power management

kaustav.majumdar at wipro.com kaustav.majumdar at wipro.com
Tue Feb 21 04:00:47 EST 2006


Hi all,

I had noted from the Linux 2.6 PCMCIA mini Howto that

pccardctl suspend  <---->  echo -n 3 >
/sys/class/pcmcia-socket/pcmcia-socket*/device/power/state

where * is socket number 0 or like that.

and on doing so, we are getting the PM_SUSPEND event in the pcmcia
client driver and the card is powered off. So it is working absolutely
fine.

But I had found inside
/sys/class/pcmcia_socket/pcmcia_socket*/device/*-0 directory which I
think represents the function of the card, which is always 0 in case of
a single function card.

I had tried
echo -n 3 > /sys/class/pcmcia_socket/pcmcia_socket*/*-0/power/state

but had not got any event inside the PCMCIA client driver's event
handler, whereas I think we should get a PM_SUSPEND event in the event
handler.

As per as my understanding, if the
/sys/class/pcmcia_socket/pcmcia_socket*/*-0/ represents the function 0
of the card, then for a multifunction card we will have *-0/ and *-1/
directories, representing the function0 and function 1. And by "echo"ing
3 in the power/state of the function representing directories, we should
be able to suspend a specific function (function 0 or function 1) of the
card.

I want to validate my understanding. Thank you in advance for any
suggestion.

Thank you,
With Regards,
Kaustav Majumdar


The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com



More information about the linux-pcmcia mailing list