-----Original Message----- From: Dominik Brodowski [mailto:linux@xxxxxxxxxxxxxxxxxxxx] Sent: Tuesday, April 18, 2006 8:08 PM To: Alan Stern Cc: Kaustav Majumdar (WT01 - Semiconductors & Consumer Electronics); linux-pm@xxxxxxxxxxxxxx; linux-usb-devel@xxxxxxxxxxxxxxxxxxxxx Subject: Re: [linux-pm] Behavior of PCMCIA based HCD in the event of SUSPEND > On Tue, Apr 18, 2006 at 09:45:50AM -0400, Alan Stern wrote: >> On Tue, 18 Apr 2006 kaustav.majumdar@xxxxxxxxx wrote: >>> Also the PCMCIA subsystem's behavior is to power off the socket >>> irrespective of whether the PCMCIA client driver has successfully >>> handled the SUSPEND event or not. >> >> I don't know how the PCMCIA subsystem works. If it behaves the way you >> described then it is broken and should be fixed. > > At least with latest 2.6.17-rc1, if the PCMCIA driver returns an error in > its suspend function, this error is passed to the PM layer which should > stop > the suspend-to-?-path. If you're calling "pccardctl suspend", the PCMCIA > layer itself checks for this error AFAICS. Actually we are developing the driver using 2.6.15.4 kernel. What I had written is based upon the ds.c code in that kernel. May be later it was fixed. > Dominik