Re: irq mask swapping during suspend/resume

2014-09-29 Thread Thomas Gleixner
On Sun, 21 Sep 2014, Rafael J. Wysocki wrote: > So I'd rather put that into the struct wakeup_source pointed to by > the wakeup pointer in struct dev_pm_info. That would give us a mapping > between wakeup source objects and wakeup interrupts and which would make > a fair amount of sense in my view

Re: irq mask swapping during suspend/resume

2014-09-26 Thread Rafael J. Wysocki
On Friday, September 26, 2014 11:39:28 PM Rafael J. Wysocki wrote: > On Friday, September 26, 2014 09:58:39 AM Eric Caruso wrote: > > I was putting together a prototype for this, and ran into a design > > issue. It's not obvious how to get from the struct wakeup_source to > > places where we hold a

Re: irq mask swapping during suspend/resume

2014-09-26 Thread Rafael J. Wysocki
On Friday, September 26, 2014 09:58:39 AM Eric Caruso wrote: > I was putting together a prototype for this, and ran into a design > issue. It's not obvious how to get from the struct wakeup_source to > places where we hold all of the relevant device information or irq > information. If we were to w

Re: irq mask swapping during suspend/resume

2014-09-26 Thread Eric Caruso
I was putting together a prototype for this, and ran into a design issue. It's not obvious how to get from the struct wakeup_source to places where we hold all of the relevant device information or irq information. If we were to walk the list of wakeup source objects, where would we actually get th

Re: irq mask swapping during suspend/resume

2014-09-20 Thread Rafael J. Wysocki
On Thursday, September 18, 2014 01:32:06 PM Thomas Gleixner wrote: > On Wed, 17 Sep 2014, Dmitry Torokhov wrote: > > Hi Thomas, > > > > On Wednesday, September 17, 2014 12:05:42 PM Thomas Gleixner wrote: > > > On Tue, 16 Sep 2014, Eric Caruso wrote: > > > > We would like to be able to set differen

Re: irq mask swapping during suspend/resume

2014-09-18 Thread Thomas Gleixner
On Wed, 17 Sep 2014, Dmitry Torokhov wrote: > Hi Thomas, > > On Wednesday, September 17, 2014 12:05:42 PM Thomas Gleixner wrote: > > On Tue, 16 Sep 2014, Eric Caruso wrote: > > > We would like to be able to set different irq masks for triggers during > > > normal operation and for waking up the sy

Re: irq mask swapping during suspend/resume

2014-09-17 Thread Dmitry Torokhov
Hi Thomas, On Wednesday, September 17, 2014 12:05:42 PM Thomas Gleixner wrote: > On Tue, 16 Sep 2014, Eric Caruso wrote: > > We would like to be able to set different irq masks for triggers during > > normal operation and for waking up the system. For example, while a laptop > > is awake, closing

Re: irq mask swapping during suspend/resume

2014-09-17 Thread Thomas Gleixner
On Tue, 16 Sep 2014, Eric Caruso wrote: > We would like to be able to set different irq masks for triggers during > normal operation and for waking up the system. For example, while a laptop > is awake, closing the lid and opening the lid should both fire an > interrupt, but when the system is asle