[PATCH] input:keyboard: add Cypress button driver for Intel Platform

2015-09-21 Thread Qipeng Zha
This driver is to support Cypress CY8CMBR3XXX family controller, which is used as button input for Intel platforms. Signed-off-by: Qipeng Zha --- drivers/input/keyboard/Kconfig| 7 + drivers/input/keyboard/Makefile | 1 +

RE: [PATCH v2] elan_i2c - Don't require known iap version

2015-09-21 Thread DusonLin
Hi Dmitry, Sure, not only 0x0E but also others, I will send you a patch. Thank you, Duson -Original Message- From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] Sent: Tuesday, September 22, 2015 12:21 AM To: Daniel Drake Cc: DusonLin; João Paulo Rechi Vita;

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

2015-09-21 Thread Pavel Machek
> > >> In fact, then, what you need seems to be the feature discussed by Alan > > >> and me some time ago allowing remote wakeup do be disabled for runtime > > >> PM from user space as that in combination with autosuspend should > > >> address your use case. > > > > > > I'd doubt that. Suppose you

Re: [PATCH v3] Input: uinput - add new UINPUT_DEV_SETUP and UI_ABS_SETUP ioctl

2015-09-21 Thread David Herrmann
Hi Dmitry Any comment on this? Thanks David On Tue, Aug 25, 2015 at 5:12 PM, Benjamin Tissoires wrote: > This adds two new ioctls, UINPUT_DEV_SETUP and UI_ABS_SETUP, that > replaces the old device setup method (by write()'ing "struct > uinput_user_dev" to the

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

2015-09-21 Thread Pavel Machek
On Wed 2015-09-09 11:20:25, Alan Stern wrote: > On Wed, 9 Sep 2015, Rafael J. Wysocki wrote: > > > > The best example and actually the very specific problem we want to > > > solve is handling touchscreens on a phone / tablet. When the screen is > > > turned off, it is ideal to suspend the

Re: [PATCH 00/38] Fixes related to incorrect usage of unsigned types

2015-09-21 Thread David Howells
Andrzej Hajda wrote: > Semantic patch finds comparisons of types: > unsigned < 0 > unsigned >= 0 > The former is always false, the latter is always true. > Such comparisons are useless, so theoretically they could be > safely removed, but their presence quite often

[PATCH 29/38] Input: touchscreen: atmel: remove invalid check

2015-09-21 Thread Andrzej Hajda
byte_offset is unsigned. The problem has been detected using proposed semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 Signed-off-by: Andrzej Hajda ---

Re: [PATCH 1/6] Input: edt-ft5x06 - switch to newer gpio framework

2015-09-21 Thread Dmitry Torokhov
On Sat, Sep 12, 2015 at 10:45:46AM -0700, Dmitry Torokhov wrote: > From: Franklin S Cooper Jr > > 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.

Re: [PATCH] Input: Use for_each_set_bit where appropriate

2015-09-21 Thread Dmitry Torokhov
On Mon, Sep 21, 2015 at 10:30:51AM -0400, Stephen Chandler Paul wrote: > On Sat, 2015-09-19 at 11:26 -0700, Dmitry Torokhov wrote: > > On Thu, Sep 17, 2015 at 04:02:47PM -0400, Stephen Chandler Paul > > wrote: > > > Hi! The currently upstream version of this patch actually breaks > > > uinput, and

Re: [PATCH v2] elan_i2c - Don't require known iap version

2015-09-21 Thread Daniel Drake
On Sat, Sep 19, 2015 at 11:10 AM, Dmitry Torokhov wrote: > I do not like the fact that the fact that the version of IAP is unknown > is not known to the driver until we try to flash the firmware. I'd > rather we check it upfront and warn user. > > How about the version

[PATCH 03/17] input: tegra-kbc: drop use of IRQF_NO_SUSPEND flag

2015-09-21 Thread Sudeep Holla
The driver handles wakeup irq correctly using device_init_wakeup and enable_irq_wake. There's no need to use IRQF_NO_SUSPEND while registering the interrupt. This patch removes the use of IRQF_NO_SUSPEND flag. Cc: Laxman Dewangan Cc: Stephen Warren

Re: [PATCH v2] elan_i2c - Don't require known iap version

2015-09-21 Thread Dmitry Torokhov
On Mon, Sep 21, 2015 at 09:17:40AM -0700, Dmitry Torokhov wrote: > On Mon, Sep 21, 2015 at 08:28:17AM -0600, Daniel Drake wrote: > > On Sat, Sep 19, 2015 at 11:10 AM, Dmitry Torokhov > > wrote: > > > I do not like the fact that the fact that the version of IAP is

Re: [PATCH 3/4] input: Add new sun4i-keypad driver

2015-09-21 Thread Dmitry Torokhov
Hi Yassin, On Wed, Sep 16, 2015 at 12:05:56AM +1000, yassinjaf...@gmail.com wrote: > From: Yassin Jaffer > > Allwinnner SUN4i Keypad controller is used to interface a SoC > with a matrix-typekeypad device. > The keypad controller supports multiple row and column lines. >

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

2015-09-21 Thread Dmitry Torokhov
On Mon, Sep 21, 2015 at 01:32:38PM -0400, Alan Stern wrote: > On Mon, 21 Sep 2015, Dmitry Torokhov wrote: > > > > It sounds like you are suggesting there should be a general mechanism > > > for userspace to tell the kernel (or the input core) to ignore all > > > events from a particular input

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

2015-09-21 Thread Alan Stern
On Mon, 21 Sep 2015, Dmitry Torokhov wrote: > > It sounds like you are suggesting there should be a general mechanism > > for userspace to tell the kernel (or the input core) to ignore all > > events from a particular input device -- or even from all input devices > > -- thereby allowing those

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

2015-09-21 Thread Dmitry Torokhov
On Mon, Sep 21, 2015 at 10:38:46AM -0400, Alan Stern wrote: > On Mon, 21 Sep 2015, Pavel Machek wrote: > > > > > In fact, then, what you need seems to be the feature discussed by Alan > > > > and me some time ago allowing remote wakeup do be disabled for runtime > > > > PM from user space as that

Re: [PATCH] Input: elan_i2c - Add ic type 0x03

2015-09-21 Thread Dmitry Torokhov
On Mon, Sep 21, 2015 at 10:14:13AM +0800, duson wrote: > The 0x03 is valid 3000 serial ic type too. > > Signed-off-by: Duson Lin Applied, thank you. > --- > drivers/input/mouse/elan_i2c_core.c |1 + > 1 file changed, 1 insertion(+) > > diff --git

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

2015-09-21 Thread Dmitry Torokhov
On Mon, Sep 21, 2015 at 12:34:56PM -0400, Alan Stern wrote: > On Mon, 21 Sep 2015, Dmitry Torokhov wrote: > > > On Mon, Sep 21, 2015 at 10:38:46AM -0400, Alan Stern wrote: > > > On Mon, 21 Sep 2015, Pavel Machek wrote: > > > > > > > > > In fact, then, what you need seems to be the feature

Re: [PATCH 29/38] Input: touchscreen: atmel: remove invalid check

2015-09-21 Thread Dmitry Torokhov
Hi Andrzej, On Mon, Sep 21, 2015 at 03:34:01PM +0200, Andrzej Hajda wrote: > byte_offset is unsigned. > > The problem has been detected using proposed semantic patch > scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1]. > > [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576 >

Re: [PATCH v2] elan_i2c - Don't require known iap version

2015-09-21 Thread Dmitry Torokhov
On Mon, Sep 21, 2015 at 08:28:17AM -0600, Daniel Drake wrote: > On Sat, Sep 19, 2015 at 11:10 AM, Dmitry Torokhov > wrote: > > I do not like the fact that the fact that the version of IAP is unknown > > is not known to the driver until we try to flash the firmware. I'd

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

2015-09-21 Thread Dmitry Torokhov
On Thu, Sep 10, 2015 at 09:55:47PM +0800, duson wrote: > 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 Applied, thank you. > --- > drivers/input/mouse/elan_i2c.h |2 +-

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

2015-09-21 Thread Alan Stern
On Mon, 21 Sep 2015, Dmitry Torokhov wrote: > On Mon, Sep 21, 2015 at 10:38:46AM -0400, Alan Stern wrote: > > On Mon, 21 Sep 2015, Pavel Machek wrote: > > > > > > > In fact, then, what you need seems to be the feature discussed by Alan > > > > > and me some time ago allowing remote wakeup do be

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

2015-09-21 Thread Alan Stern
On Mon, 21 Sep 2015, Pavel Machek wrote: > > > In fact, then, what you need seems to be the feature discussed by Alan > > > and me some time ago allowing remote wakeup do be disabled for runtime > > > PM from user space as that in combination with autosuspend should > > > address your use case. >

Re: [PATCH] Input: Use for_each_set_bit where appropriate

2015-09-21 Thread Stephen Chandler Paul
On Sat, 2015-09-19 at 11:26 -0700, Dmitry Torokhov wrote: > On Thu, Sep 17, 2015 at 04:02:47PM -0400, Stephen Chandler Paul > wrote: > > Hi! The currently upstream version of this patch actually breaks > > uinput, and causes the kernel to panic when attempting to run it > > under > > qemu using

[PATCHv2] Add support for SiS i2c touch driver

2015-09-21 Thread Yuger
Hi, This patch is to add support for SiS i2c touch panel. Thanks a lot. v2: Fixed coding style and changed to threaded IRQ. Signed-off-by: Yuger --- drivers/input/touchscreen/Kconfig | 2 +- drivers/input/touchscreen/sis_i2c.c | 646 +++-

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

2015-09-21 Thread Pavel Machek
On Mon 2015-09-21 10:38:46, Alan Stern wrote: > On Mon, 21 Sep 2015, Pavel Machek wrote: > > > > > In fact, then, what you need seems to be the feature discussed by Alan > > > > and me some time ago allowing remote wakeup do be disabled for runtime > > > > PM from user space as that in

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

2015-09-21 Thread Alan Stern
On Mon, 21 Sep 2015, Dmitry Torokhov wrote: > > What happens if the "inhibit" control is turned on and the driver puts > > the device into runtime suspend, but then an I/O request arrives? > > > > If the I/O request originated from userspace, it means the > > user is violating the terms

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

2015-09-21 Thread Dmitry Torokhov
On Mon, Sep 21, 2015 at 04:02:01PM -0400, Alan Stern wrote: > On Mon, 21 Sep 2015, Dmitry Torokhov wrote: > > > > What happens if the "inhibit" control is turned on and the driver puts > > > the device into runtime suspend, but then an I/O request arrives? > > > > > > If the I/O request