[PATCH 2/2] HID: wacom: Add angular resolution data to some ABS axes

2014-11-18 Thread Jason Gerecke
Provide the resolution of several angular axes (tilt, pen rotation, puck rotation) to userspace. Because these values are natively degree-based, we need to convert them to into units/radian as required by the input_absinfo struct. To ensure wraparound behaves properly for the rotation axes, the con

[PATCH 1/2] HID: wacom: Report ABS_TILT_{X,Y} as signed values

2014-11-18 Thread Jason Gerecke
Centers the ABS_TILT_{X,Y} axes so that a value of zero is reported when the pen is vertical. Combined with resolution information in the next patch, this makes it possible for userspace to calculate the pen angle without needing hardware-specific knowledge. The xf86-input-wacom driver was updated

Re: [PATCH 001/001] hid-sony.c: add sysfs provisioning

2014-11-18 Thread bri
On Tue, Nov 18, 2014 at 11:43:49PM +0100, Antonio Ospite wrote: > On Mon, 17 Nov 2014 21:01:44 -0500 > bri wrote: > If you can upload a shell script to the target system you may as well > upload a static binary; and if you can use a modified kernel you can > compile _for_ the target even if not _o

Re: [PATCH 001/001] hid-sony.c: add sysfs provisioning

2014-11-18 Thread Antonio Ospite
On Mon, 17 Nov 2014 21:01:44 -0500 bri wrote: > On Mon, Nov 17, 2014 at 01:35:18PM +0100, Antonio Ospite wrote: > > I had tried doing something similar in the past (the parsing was just a > > sscanf): http://thread.gmane.org/gmane.linux.bluez.kernel/5261 but then > > we deliberately decided again

Re: [PATCH 001/001] hid-sony.c: add sysfs provisioning

2014-11-18 Thread Antonio Ospite
On Tue, 18 Nov 2014 09:26:29 -0500 bri wrote: > On Mon, Nov 17, 2014 at 10:21:53PM -0500, Frank Praznik wrote: > > Hi Brian, > > > > On 11/17/2014 19:00, bri wrote: > > > > > >>Yeah, the device ID in the driver is only for tracking devices internally > > >>and setting sane default LED values. I

[PATCH 3/3] HID: wacom - Bamboo pen-only tablet does not support PAD

2014-11-18 Thread Ping Cheng
Bamboo models do not support HID_DG_CONTACTMAX. Plus, Bamboo pen-only has touch descriptor. This leads to some complications in the code. This patch also fixes duplicated PAD interfeaces for Intuos Pen models. Signed-off-by: Ping Cheng Reviewed-by: Benjamin Tissoires --- v2: updated with Benja

[PATCH 2/3] HID: wacom - Cleanup input_capabilities for Graphire 4 and Bamboo Fun

2014-11-18 Thread Ping Cheng
Graphire 4 only has two tablet buttons; Bamboo Fun touch ring is only for PAD. Signed-off-by: Ping Cheng Reviewed-by: Benjamin Tissoires --- drivers/hid/wacom_wac.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index 372d890..792569c

[PATCH 1/3] HID: wacom - return ENODEV for failed wacom_setup_pad_input_capabilities

2014-11-18 Thread Ping Cheng
ENODEV indicates no device is added. Hence, the associated pad input device is simply freed. Signed-off-by: Ping Cheng Reviewed-by: Benjamin Tissoires --- drivers/hid/wacom_wac.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wac

Re: [PATCH] HID: i2c-hid: print the correct data in dbg msg

2014-11-18 Thread Jiri Kosina
On Sun, 16 Nov 2014, Antonio Borneo wrote: > From: Jean-Baptiste Maneyrol > > Report is received in "buffer"; fix the following i2c_hid_dbg() > to dump data from the correct pointer. > > Signed-off-by: Jean-Baptiste Maneyrol > [Antonio Borneo: cleanup and rebase to v3.17] > Signed-off-by: Anto

Re: [PATCH v2] input: touchscreen: edt-ft5x06: fix driver autoprobing

2014-11-18 Thread Dmitry Torokhov
On Tue, Nov 18, 2014 at 02:03:40PM -0600, Felipe Balbi wrote: > On Tue, Nov 18, 2014 at 11:59:02AM -0800, Dmitry Torokhov wrote: > > On Tue, Nov 18, 2014 at 01:27:42PM -0600, Felipe Balbi wrote: > > > Because with OF we can pass more specific > > > compatible flags (such as edt-ft5306) instead > >

Re: [PATCH v2] input: touchscreen: edt-ft5x06: fix driver autoprobing

2014-11-18 Thread Felipe Balbi
On Tue, Nov 18, 2014 at 12:14:21PM -0800, Dmitry Torokhov wrote: > On Tue, Nov 18, 2014 at 02:03:40PM -0600, Felipe Balbi wrote: > > On Tue, Nov 18, 2014 at 11:59:02AM -0800, Dmitry Torokhov wrote: > > > On Tue, Nov 18, 2014 at 01:27:42PM -0600, Felipe Balbi wrote: > > > > Because with OF we can pa

Re: [PATCH v2] input: touchscreen: edt-ft5x06: fix driver autoprobing

2014-11-18 Thread Felipe Balbi
On Tue, Nov 18, 2014 at 11:59:02AM -0800, Dmitry Torokhov wrote: > On Tue, Nov 18, 2014 at 01:27:42PM -0600, Felipe Balbi wrote: > > Because with OF we can pass more specific > > compatible flags (such as edt-ft5306) instead > > of generic edt-ft5x06, when i2c-core's > > of_i2c_register_devices() t

Re: [PATCH v2] input: touchscreen: edt-ft5x06: fix driver autoprobing

2014-11-18 Thread Dmitry Torokhov
On Tue, Nov 18, 2014 at 01:27:42PM -0600, Felipe Balbi wrote: > Because with OF we can pass more specific > compatible flags (such as edt-ft5306) instead > of generic edt-ft5x06, when i2c-core's > of_i2c_register_devices() tries to request_module(), > it'll request it with a non-existent specific m

Re: [PATCH v2] input: touchscreen: edt-ft5x06: fix driver autoprobing

2014-11-18 Thread Felipe Balbi
On Tue, Nov 18, 2014 at 01:27:42PM -0600, Felipe Balbi wrote: > Because with OF we can pass more specific > compatible flags (such as edt-ft5306) instead > of generic edt-ft5x06, when i2c-core's > of_i2c_register_devices() tries to request_module(), > it'll request it with a non-existent specific m

[PATCH v2] input: touchscreen: edt-ft5x06: fix driver autoprobing

2014-11-18 Thread Felipe Balbi
Because with OF we can pass more specific compatible flags (such as edt-ft5306) instead of generic edt-ft5x06, when i2c-core's of_i2c_register_devices() tries to request_module(), it'll request it with a non-existent specific module alias. In order to have this driver autoprobing again, we just ne

Re: [PATCH 06/10] input: touchscreen: edt-ft5x06: fix driver autoprobing

2014-11-18 Thread Felipe Balbi
Hi, On Tue, Nov 18, 2014 at 01:09:22PM -0600, Felipe Balbi wrote: > On Tue, Nov 18, 2014 at 10:38:47AM -0800, Dmitry Torokhov wrote: > > Hi Felipe, > > > > On Tue, Nov 18, 2014 at 12:07:04PM -0600, Felipe Balbi wrote: > > > i2c devices match against struct i2c_device_id > > > even for CONFIG_OF c

Re: [PATCH 06/10] input: touchscreen: edt-ft5x06: fix driver autoprobing

2014-11-18 Thread Felipe Balbi
On Tue, Nov 18, 2014 at 10:38:47AM -0800, Dmitry Torokhov wrote: > Hi Felipe, > > On Tue, Nov 18, 2014 at 12:07:04PM -0600, Felipe Balbi wrote: > > i2c devices match against struct i2c_device_id > > even for CONFIG_OF case, so adding a struct of_device_id > > doesn't change anything. As a result,

Re: [PATCH 06/10] input: touchscreen: edt-ft5x06: fix driver autoprobing

2014-11-18 Thread Dmitry Torokhov
Hi Felipe, On Tue, Nov 18, 2014 at 12:07:04PM -0600, Felipe Balbi wrote: > i2c devices match against struct i2c_device_id > even for CONFIG_OF case, so adding a struct of_device_id > doesn't change anything. As a result, currently, edt-ft5x06 > will not autoprobe if built as a module. Why doe sno

[PATCH 06/10] input: touchscreen: edt-ft5x06: fix driver autoprobing

2014-11-18 Thread Felipe Balbi
i2c devices match against struct i2c_device_id even for CONFIG_OF case, so adding a struct of_device_id doesn't change anything. As a result, currently, edt-ft5x06 will not autoprobe if built as a module. To fix the issue and still maintain backwards compatibility with all DTS files currently in t

Re: [PATCH v4 3/6] mfd: ti_am335x_tscadc: Remove unwanted reg_se_cache save

2014-11-18 Thread Dmitry Torokhov
On Tue, Nov 18, 2014 at 02:30:05PM +, Lee Jones wrote: > On Fri, 14 Nov 2014, Vignesh R wrote: > > > In one shot mode, sequencer automatically disables all enabled steps at > > the end of each cycle. (both ADC steps and TSC steps) Hence these steps > > need not be saved in reg_se_cache for cle

Re: [PATCH v4 3/6] mfd: ti_am335x_tscadc: Remove unwanted reg_se_cache save

2014-11-18 Thread Lee Jones
On Fri, 14 Nov 2014, Vignesh R wrote: > In one shot mode, sequencer automatically disables all enabled steps at > the end of each cycle. (both ADC steps and TSC steps) Hence these steps > need not be saved in reg_se_cache for clearing these steps at a later > stage. > Also, when ADC wakes up Seque

Re: [PATCH 001/001] hid-sony.c: add sysfs provisioning

2014-11-18 Thread bri
On Mon, Nov 17, 2014 at 10:21:53PM -0500, Frank Praznik wrote: > Hi Brian, > > On 11/17/2014 19:00, bri wrote: > > > >>Yeah, the device ID in the driver is only for tracking devices internally > >>and setting sane default LED values. It has no meaning outside of the > >>module. Like Antonio said