On Wed, 19 Apr 2006 [EMAIL PROTECTED] wrote:

> > > Third is, as the card is physically powered off, we shutdown the 
> > > controller. So we thought up doing this.
> > 
> > I don't see how.  You can't do anything to the controller 
> > (shut it down, suspend it, anything) if it doesn't have power.
> 
> It should be very much possible to shutdown/stop the Controller before
> PCMCIA layer powers off the card.

Of course.  But above you said you were going to shut it down "as the card 
is physically powered off".  That implies shutting it down _after_, not 
_before_, the power is off.

>  If you see the CS_EVENT_PM_SUSPEND
> event of xxx_cs_event function of PCMCIA client driver, from the
> CS_EVENT_PM_SUSPEND, we can call an exported function which is actually
> defined in HCD. Inside that exported function we stop the controller.
> And PCMCIA powers off the card once  xxx_cs_event function returns. So
> we can stop the controller before PCMCIA powers off the card. And this
> is the way we can communicate to HCD from PCMCIA as PCMCIA doesnot have
> any mechanism. Otherwise HCD will not come to know about the event and
> it it is not marked as HALTED.
> 
>       Also, it is essential to start the controller when we do card
> resume, as none of its contents are preserved on power on. This again
> can be done by calling an exported function defined in HCD, as PCMCIA
> does not have any mechanism to communicate about the card resume to HCD.
> 
> Please see the comments in suspend and resume events in following code.

This is a lot of extra work to cover up a simple mistake in the PCMCIA 
driver.  Just fix the mistake; it shouldn't take more than a few lines of 
code.  And if you advance to the 2.6.17 kernel, you won't have change 
PCMCIA at all.

Alan Stern



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to