public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* Behavior of PCMCIA based HCD in the event of SUSPEND
@ 2006-04-17  6:30 kaustav.majumdar
  2006-04-17 14:15 ` [linux-pm] " Alan Stern
  2006-04-18  5:47 ` [linux-usb-devel] " David Brownell
  0 siblings, 2 replies; 3+ messages in thread
From: kaustav.majumdar @ 2006-04-17  6:30 UTC (permalink / raw)
  To: linux-usb-devel, linux-pm

Hi all,

I have the following queries regarding the power management on a PCMCIA
based USB host controller driver.

1. The SUSPEND event in the PCMCIA client driver is handled in the
following way:

In the PCMCIA layer, on a SUSPEND event, the socket layer powers off the
card. As the USB framework behavior is not allowed to suspend if lower
nodes are not already suspended, we assume that the correct behavior for
the above case should be to shut down the Host Controller.
I want to confirm whether the assumed behavior is ok or should the
behavior be something else?


2. And if the correct behavior is what we had assumed, then to implement
that we call usb_remove_hcd from the PCMCIA client driver. Is this the
correct way to do so? 
The reason for the question is it can happen that after suspending the
card, before resume card may be manually removed. In that case, there is
a possibility of usb_remove_hcd being called twice consecutively which
can cause error.
Please suggest if any better way of implementing the above.

Looking forward to you replies and thanks in advance

Thank you,
With Regards,
Kaustav Majumdar


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-18  5:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-17  6:30 Behavior of PCMCIA based HCD in the event of SUSPEND kaustav.majumdar
2006-04-17 14:15 ` [linux-pm] " Alan Stern
2006-04-18  5:47 ` [linux-usb-devel] " David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox