> -----Original Message----- > From: David Brownell [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 01, 2006 7:28 AM > To: linux-usb-devel@lists.sourceforge.net > Cc: Rasmit Ranjan (WT01 - Semiconductors & Consumer Electronics) > Subject: Re: [linux-usb-devel] RWE and RWC bits of OHCI > control register > > On Monday 29 May 2006 7:12 am, [EMAIL PROTECTED] wrote: > > > According to OHCI specification RWC bit is to indicate whether the > > controller supports remote wakeup or not and this bit is set by the > > system firmware at the time of POST. But this bit is set in > > ohci_bus_resume depending on hcd->can_wakeup flag. > > Uhm, that flag has been removed. And I don't see any code in > the current version of that routine to set RWC ... or even to > test the driver model flag which replaced that root hub flag.
Sorry, I forgot to mention the kernel version. It is 2.6.15.4. RWC bit is set in ohci_bus_resume. > > > > But I don't find > > where this can_wakeup flag is initialised. > > Platform setup code, or sometimes the bus glue. See <linux/pm.h>... In ohci_run function can_wakeup is assigned 1 if RWC is set. Why is actually can_wakeup used? Is it set if RWC is set or for something else ? > > > > According to OHCI specification if RWE bit is set and RD bit of > > interrupt register is set then only a remote wakeup is > signaled to the > > host system. Does this mean that if both the bits are set then the > > system can resume by remote wakeup? > > Or if I put it alternativly, if my bus is suspended selectively and > > RWE bit is not set then does RD interrupt can wakeup the bus ? > > Right now the OHCI driver is coded to expect that remote > wakeup requires both RWE and RD, although there's a patch > pending in that area (associated with driving the root hub > primarily by IRQ). > I tried remote wake up without setting RWE bit. Its working properly. > - Dave > ------------------------------------------------------- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642 _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel