Re: [RFC PATCH] PM / Runtime: runtime: Add sysfs option for forcing runtime suspend

2015-09-10 Thread Oliver Neukum
On Wed, 2015-09-09 at 22:25 +0200, Rafael J. Wysocki wrote: > > > > > > I'd doubt that. Suppose you put the phone into your pocket while > > > the device isn't suspended. The continuous stream of spurious > events > > > will keep it awake. > > Why would they be regarded as spurious then? They

[PATCH] Input: elan_i2c - Expand maxmium product_id form 0xFF to 0xFFFF

2015-09-10 Thread duson
In order to support more projects in the feture, we expand the maxmium product_id value form 0xFF to 0x. Signed-off by: Duson Lin --- drivers/input/mouse/elan_i2c.h |2 +- drivers/input/mouse/elan_i2c_core.c |6 +++--- drivers/input/mouse/elan_i2c_i2c.c

RE: [PATCH v3 1/5] Input: goodix - reset device at init

2015-09-10 Thread Tirdea, Irina
> -Original Message- > From: Bastien Nocera [mailto:had...@hadess.net] > Sent: 09 September, 2015 20:03 > To: Tirdea, Irina; linux-input@vger.kernel.org > Cc: linux-ker...@vger.kernel.org; Rob Herring; Pawel Moll; Ian Campbell; > Kumar Gala; Purdila, Octavian; Dmitry Torokhov; Mark >

[PATCH] keyboard: adp5589-keys: Attach device to the gpio chip

2015-09-10 Thread Richard Röjfors
Currently the device struct is not attached to the gpio chip struct. This causes trouble if the GPIO pins are used in a device tree, because the device struct is heavily used during gpio chip lookup and matching. Signed-off-by: Richard Röjfors --- diff --git

Re: [PATCH 2/4] devicetree: bindings: Add header file with evdev type and abs/rel code defines

2015-09-10 Thread Rob Herring
On 09/09/2015 04:11 AM, Hans de Goede wrote: > This header provides evdev constants for linux,code, and linux,input-* > properties. > > Signed-off-by: Hans de Goede > --- > include/dt-bindings/input/evdev.h | 76 > +++ This looks fine,

Re: [PATCH 2/4] devicetree: bindings: Add header file with evdev type and abs/rel code defines

2015-09-10 Thread Dmitry Torokhov
On Thu, Sep 10, 2015 at 11:40 AM, Hans de Goede wrote: > Hi, > > > On 10-09-15 20:34, Dmitry Torokhov wrote: >> >> On Thu, Sep 10, 2015 at 10:25 AM, Rob Herring wrote: >>> >>> On 09/09/2015 04:11 AM, Hans de Goede wrote: This header provides evdev

Re: [PATCH 2/4] devicetree: bindings: Add header file with evdev type and abs/rel code defines

2015-09-10 Thread Dmitry Torokhov
On Thu, Sep 10, 2015 at 10:25 AM, Rob Herring wrote: > On 09/09/2015 04:11 AM, Hans de Goede wrote: >> This header provides evdev constants for linux,code, and linux,input-* >> properties. >> >> Signed-off-by: Hans de Goede >> --- >>

Re: [PATCH 2/4] devicetree: bindings: Add header file with evdev type and abs/rel code defines

2015-09-10 Thread Hans de Goede
Hi, On 10-09-15 20:34, Dmitry Torokhov wrote: On Thu, Sep 10, 2015 at 10:25 AM, Rob Herring wrote: On 09/09/2015 04:11 AM, Hans de Goede wrote: This header provides evdev constants for linux,code, and linux,input-* properties. Signed-off-by: Hans de Goede

Re: [PATCH 2/4] devicetree: bindings: Add header file with evdev type and abs/rel code defines

2015-09-10 Thread Hans de Goede
Hi, On 10-09-15 20:42, Dmitry Torokhov wrote: On Thu, Sep 10, 2015 at 11:40 AM, Hans de Goede wrote: Hi, On 10-09-15 20:34, Dmitry Torokhov wrote: On Thu, Sep 10, 2015 at 10:25 AM, Rob Herring wrote: On 09/09/2015 04:11 AM, Hans de Goede wrote:

Re: [PATCH 1/4] devicetree: bindings: Update gpio-keys-polled with support for abs/rel axis

2015-09-10 Thread Rob Herring
On 09/09/2015 04:11 AM, Hans de Goede wrote: > The devicetree binding for gpio-keys-polled already allows specifying > what type of events (key / rel / abs) a button generates when pressed. > > But for rel / abs axis we also need to specify which value this specific > gpio represents. > > One

Re: [PATCH 2/4] devicetree: bindings: Add header file with evdev type and abs/rel code defines

2015-09-10 Thread Rob Herring
+Ian On 09/10/2015 01:50 PM, Hans de Goede wrote: > Hi, > > On 10-09-15 20:42, Dmitry Torokhov wrote: >> On Thu, Sep 10, 2015 at 11:40 AM, Hans de Goede >> wrote: >>> Hi, >>> >>> >>> On 10-09-15 20:34, Dmitry Torokhov wrote: On Thu, Sep 10, 2015 at 10:25 AM, Rob

Re: [Toshiba Satellite P855-S5102] SynPS/2 Synaptics TouchPad Dead

2015-09-10 Thread Dmitry Torokhov
On Wed, Sep 9, 2015 at 7:40 AM, jtd wrote: > [1.] > [Toshiba Satellite P855-S5102] SynPS/2 Synaptics TouchPad Dead > > [2.] > I expect a mouse. Although xinput reports the TouchPad, it is not > functional. I cannot see a mouse cursor or click things. Has it ever

[PATCH] Input: snvs_pwrkey - remove duplicated semicolon

2015-09-10 Thread Javier Martinez Canillas
Remove the unneded semicolon since it is clearly a typo error. Signed-off-by: Javier Martinez Canillas --- drivers/input/keyboard/snvs_pwrkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/snvs_pwrkey.c

Re: [PATCH 1/2] Input: at32psif: handle clk_enable return value

2015-09-10 Thread Fabio Estevam
On Fri, Sep 11, 2015 at 12:02 AM, WEN Pingbo wrote: > - clk_enable(psif->pclk); > + retval = clk_enable(psif->pclk); > + if (retval < 0) > + dev_err(>pdev->dev, > + "could not enable pclk, ret %d\n", retval); Shouldn't

[PATCH V2 1/2] Input: at32psif: handle clk_enable return value

2015-09-10 Thread WEN Pingbo
We should print the err if clk_enable failed. Signed-off-by: WEN Pingbo --- drivers/input/serio/at32psif.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/input/serio/at32psif.c b/drivers/input/serio/at32psif.c index 2e4ff5b..38862a8

[PATCH 2/2] Input: lpc32xx: handle clk_enable return value

2015-09-10 Thread WEN Pingbo
If clk_enable failed, return the err code Signed-off-by: WEN Pingbo --- drivers/input/touchscreen/lpc32xx_ts.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/lpc32xx_ts.c b/drivers/input/touchscreen/lpc32xx_ts.c index

Re: [PATCH v2] Input: edt-ft5x06 - Switch to newer gpio framework

2015-09-10 Thread Franklin S Cooper Jr.
ping On 08/31/2015 06:25 PM, Franklin S Cooper Jr wrote: > The current/old gpio framework used doesn't properly listen to > ACTIVE_LOW and ACTIVE_HIGH flags. The newer gpio framework takes into > account these flags when setting gpio values. > > Since the values being outputed were base on

[PATCH 1/2] Input: at32psif: handle clk_enable return value

2015-09-10 Thread WEN Pingbo
We should print the err if clk_enable failed. Signed-off-by: WEN Pingbo --- drivers/input/serio/at32psif.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/input/serio/at32psif.c b/drivers/input/serio/at32psif.c index 2e4ff5b..aebb996

[PATCH] Input: gpio_keys - handle the missing key press event in resume phase

2015-09-10 Thread Joseph Lo
The GPIO key press event might be missed in the resume phase, if the key had been released before the system had been resumed to the stage that it could capture the press event. So we simulate the wakeup key press event in case the key had been released by the time we got interrupt handler to run.

Re: [PATCH 1/2] Input: at32psif: handle clk_enable return value

2015-09-10 Thread Pingbo Wen
On Friday, September 11, 2015 11:10 AM, Fabio Estevam wrote: > On Fri, Sep 11, 2015 at 12:02 AM, WEN Pingbo wrote: > >> - clk_enable(psif->pclk); >> + retval = clk_enable(psif->pclk); >> + if (retval < 0) >> + dev_err(>pdev->dev, >> +