Re: [RFC v5] usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode

2014-11-11 Thread Kishon Vijay Abraham I
Hi Felipe, On Monday 10 November 2014 08:56 PM, Felipe Balbi wrote: > Hi, > > On Tue, Nov 04, 2014 at 03:30:54PM +0530, Kiran Kumar Raparthy wrote: >> @@ -1469,6 +1484,7 @@ static int ab8500_usb_probe(struct platform_device >> *pdev) >> >> abx500_usb_link_status_update(ab); >> >> +u

Re: [RFC v5] usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode

2014-11-10 Thread Kiran Raparthy
Hi Felipe, On 10 November 2014 20:56, Felipe Balbi wrote: > Hi, > > On Tue, Nov 04, 2014 at 03:30:54PM +0530, Kiran Kumar Raparthy wrote: >> @@ -1469,6 +1484,7 @@ static int ab8500_usb_probe(struct platform_device >> *pdev) >> >> abx500_usb_link_status_update(ab); >> >> + usb_phy_wsour

Re: [RFC v5] usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode

2014-11-10 Thread Felipe Balbi
Hi, On Tue, Nov 04, 2014 at 03:30:54PM +0530, Kiran Kumar Raparthy wrote: > @@ -1469,6 +1484,7 @@ static int ab8500_usb_probe(struct platform_device > *pdev) > > abx500_usb_link_status_update(ab); > > + usb_phy_wsource_init(&ab->phy); instead of adding this to all drivers, you can

Re: [RFC v5] usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode

2014-11-05 Thread Felipe Balbi
On Thu, Nov 06, 2014 at 10:04:01AM +0530, Kiran Raparthy wrote: > Hi Felipe, > > On 6 November 2014 01:10, Felipe Balbi wrote: > > On Tue, Nov 04, 2014 at 03:30:54PM +0530, Kiran Kumar Raparthy wrote: > >> From: Todd Poynor > >> > >> usb: phy: Hold wakeupsource when USB is enumerated in peripher

Re: [RFC v5] usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode

2014-11-05 Thread Kiran Raparthy
Hi Felipe, On 6 November 2014 01:10, Felipe Balbi wrote: > On Tue, Nov 04, 2014 at 03:30:54PM +0530, Kiran Kumar Raparthy wrote: >> From: Todd Poynor >> >> usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode >> >> Some systems require a mechanism to prevent system to enter into

Re: [RFC v5] usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode

2014-11-05 Thread Felipe Balbi
On Tue, Nov 04, 2014 at 03:30:54PM +0530, Kiran Kumar Raparthy wrote: > From: Todd Poynor > > usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode > > Some systems require a mechanism to prevent system to enter into suspend > state when USB is connected and enumerated in periphe

[RFC v5] usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode

2014-11-04 Thread Kiran Kumar Raparthy
From: Todd Poynor usb: phy: Hold wakeupsource when USB is enumerated in peripheral mode Some systems require a mechanism to prevent system to enter into suspend state when USB is connected and enumerated in peripheral mode. This patch provides an interface to hold a wakeupsource to prevent susp