Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Bastien Nocera
On Tue, 2014-07-15 at 18:32 -0700, Patrik Fimml wrote: (Re-sending with correct mailing list addresses.) Hi, When the lid of a laptop is closed, certain devices can no longer provide interesting input or will even produce bogus input, such as: snip It's somewhat difficult to get the

Re: [RFC] edt-ft5x06 - cannot see IRQ Qfrom device after DT probe

2014-07-16 Thread Simon Budig
On 15/07/14 19:43, Markus Niebel wrote: - when adding an int-gpios node to devicetree and parsing this gpio the gpio will be configured as input - IRQ can be seen by CPU Question: - shall we add an int-gpio property to enable gpio pin config as input or Shouldn't it be possible to

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Alan Stern
On Tue, 15 Jul 2014, Patrik Fimml wrote: (Re-sending with correct mailing list addresses.) Hi, When the lid of a laptop is closed, certain devices can no longer provide interesting input or will even produce bogus input, such as: - input devices: touchscreen, touchpad, keyboard Just

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Dmitry Torokhov
Hi Alan, On Wed, Jul 16, 2014 at 7:17 AM, Alan Stern st...@rowland.harvard.edu wrote: On Tue, 15 Jul 2014, Patrik Fimml wrote: (Re-sending with correct mailing list addresses.) Hi, When the lid of a laptop is closed, certain devices can no longer provide interesting input or will even

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Benson Leung
On Wed, Jul 16, 2014 at 7:17 AM, Alan Stern st...@rowland.harvard.edu wrote: Various workarounds cover some of these cases, and we have some ugly hacks in ChromeOS to make things work. It would be nice if a userspace power management daemon could listen to the lid-close event, and then have a

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Alan Stern
On Wed, 16 Jul 2014, Dmitry Torokhov wrote: The general design of Linux's runtime PM is that the PM core tells drivers when their devices are no longer being used, and it's up to the driver to select an appropriate low-power state. That philosophy doesn't fit well with the problem you

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Kevin Cernekee
On Wed, Jul 16, 2014 at 11:08 AM, Alan Stern st...@rowland.harvard.edu wrote: I am not so much concerned about userspace, but about reusing of as much of existing PM framework in the drivers. Right now it is very hard to correctly track dependencies between general open/close, system

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Oliver Neukum
On Wed, 2014-07-16 at 14:08 -0400, Alan Stern wrote: I am not so much concerned about userspace, but about reusing of as much of existing PM framework in the drivers. Right now it is very hard to correctly track dependencies between general open/close, system suspend/resume, and various

[PATCH] HID: rmi: check that report ids exist in the report_id_hash before accessing their size

2014-07-16 Thread Andrew Duggan
It is possible that the hid-rmi driver could get loaded onto a device which does not have the expected report ids. This should not happen because it would indicate that the hid-rmi driver is not compatible with that device. However, if it does happen it should return an error from probe instead

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Rafael J. Wysocki
On Tuesday, July 15, 2014 06:32:06 PM Patrik Fimml wrote: (Re-sending with correct mailing list addresses.) Hi, When the lid of a laptop is closed, certain devices can no longer provide interesting input or will even produce bogus input, such as: - input devices: touchscreen, touchpad,

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Bastien Nocera
On Thu, 2014-07-17 at 01:11 +0200, Rafael J. Wysocki wrote: On Tuesday, July 15, 2014 06:32:06 PM Patrik Fimml wrote: (Re-sending with correct mailing list addresses.) Hi, When the lid of a laptop is closed, certain devices can no longer provide interesting input or will even

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Rafael J. Wysocki
On Thursday, July 17, 2014 01:13:42 AM Bastien Nocera wrote: On Thu, 2014-07-17 at 01:11 +0200, Rafael J. Wysocki wrote: On Tuesday, July 15, 2014 06:32:06 PM Patrik Fimml wrote: (Re-sending with correct mailing list addresses.) Hi, When the lid of a laptop is closed, certain

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Patrik Fimml
On Thu, Jul 17, 2014 at 01:11:31AM +0200, Rafael J. Wysocki wrote: Let me try to understand the scenario in the first place. To start with, a number of devices is in use (that is, open, there are applications listening/talking to them etc). Now, an event happens, such as a laptop lid close

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Bastien Nocera
On Thu, 2014-07-17 at 01:33 +0200, Rafael J. Wysocki wrote: On Thursday, July 17, 2014 01:13:42 AM Bastien Nocera wrote: On Thu, 2014-07-17 at 01:11 +0200, Rafael J. Wysocki wrote: On Tuesday, July 15, 2014 06:32:06 PM Patrik Fimml wrote: (Re-sending with correct mailing list addresses.)

Re: Power-managing devices that are not of interest at some point in time

2014-07-16 Thread Dmitry Torokhov
On Wed, Jul 16, 2014 at 4:23 PM, Bastien Nocera had...@hadess.net wrote: On Thu, 2014-07-17 at 01:33 +0200, Rafael J. Wysocki wrote: On Thursday, July 17, 2014 01:13:42 AM Bastien Nocera wrote: On Thu, 2014-07-17 at 01:11 +0200, Rafael J. Wysocki wrote: On Tuesday, July 15, 2014 06:32:06 PM

Re: [PATCH] drivers: Let several drivers depends on HAS_IOMEM for 'devm_ioremap_resource'

2014-07-16 Thread Chen Gang
On 07/15/2014 10:38 PM, Chen Gang wrote: On 07/15/2014 09:11 AM, Chen Gang wrote: On 07/15/2014 08:53 AM, Guenter Roeck wrote: On 07/14/2014 05:34 PM, Chen Gang wrote: On 07/14/2014 05:22 PM, Chen Gang wrote: 在 2014年7月14日,下午4:57,Richard Weinberger rich...@nod.at 写道: Am 14.07.2014

Re: [PATCH] drivers: Let several drivers depends on HAS_IOMEM for 'devm_ioremap_resource'

2014-07-16 Thread Guenter Roeck
On 07/16/2014 06:27 PM, Chen Gang wrote: On 07/15/2014 10:38 PM, Chen Gang wrote: On 07/15/2014 09:11 AM, Chen Gang wrote: On 07/15/2014 08:53 AM, Guenter Roeck wrote: On 07/14/2014 05:34 PM, Chen Gang wrote: On 07/14/2014 05:22 PM, Chen Gang wrote: 在 2014年7月14日,下午4:57,Richard