Re: [PATCH v3 13/20] Input: bcm5974 - Drop pressure and width emulation

2012-09-12 Thread Dmitry Torokhov
On Sat, Sep 01, 2012 at 09:47:08PM +0200, Henrik Rydberg wrote: > The ABS_PRESSURE and ABS_WIDTH have special scales, and were initially > added solely for thumb and palm recognition in the synaptics driver. > This never really get used, however, and userspace quickly moved to > MT solutions instea

Re: linux-next: Tree for Sept 12 (kernel-panic after pressing any key at X login)

2012-09-12 Thread Henrik Rydberg
> > >> > this weeks linux-next seems to bring new and new issues, yay :-)! > > >> > > > >> > I have taken a photo, but can't say what can have caused. > > >> > The issue is reproducible... > > >> > Immediately, after pressing any key (when X-display-manager (lightdm) > > >> > and X-greeter are up)

Re: [PATCH v3 05/20] Input: Send events one packet at a time

2012-09-12 Thread Dmitry Torokhov
On Sat, Sep 01, 2012 at 09:47:00PM +0200, Henrik Rydberg wrote: > On heavy event loads, such as a multitouch driver, the irqsoff latency > can be as high as 250 us. By accumulating a frame worth of data > before passing it on, the latency can be dramatically reduced. As a > side effect, the speci

Re: linux-next: Tree for Sept 12 (kernel-panic after pressing any key at X login)

2012-09-12 Thread Dmitry Torokhov
On Thu, Sep 13, 2012 at 08:36:36AM +0200, Sedat Dilek wrote: > On Thu, Sep 13, 2012 at 8:04 AM, Minchan Kim wrote: > > On Thu, Sep 13, 2012 at 07:29:32AM +0200, Sedat Dilek wrote: > >> On Thu, Sep 13, 2012 at 5:18 AM, Sedat Dilek wrote: > >> > On Wed, Sep 12, 2012 at 10:46 AM, Stephen Rothwell >

Re: linux-next: Tree for Sept 12 (kernel-panic after pressing any key at X login)

2012-09-12 Thread Sedat Dilek
On Thu, Sep 13, 2012 at 8:04 AM, Minchan Kim wrote: > On Thu, Sep 13, 2012 at 07:29:32AM +0200, Sedat Dilek wrote: >> On Thu, Sep 13, 2012 at 5:18 AM, Sedat Dilek wrote: >> > On Wed, Sep 12, 2012 at 10:46 AM, Stephen Rothwell >> > wrote: >> >> Hi all, >> >> >> >> Changes since 201209011: >> >>

[PATCH 4/4] HID: lenovo-tpkbd: Remove unnecessary casts of void pointers

2012-09-12 Thread Axel Lin
container_of() never returns NULL, thus also remove the NULL checking for it. Signed-off-by: Axel Lin --- drivers/hid/hid-lenovo-tpkbd.c | 147 +--- 1 file changed, 33 insertions(+), 114 deletions(-) diff --git a/drivers/hid/hid-lenovo-tpkbd.c b/drivers/hid/

[PATCH 3/4] HID: prodikeys: Remove unnecessary casts of void pointers

2012-09-12 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/hid/hid-prodikeys.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/hid/hid-prodikeys.c b/drivers/hid/hid-prodikeys.c index b71b77a..ec8ca33 100644 --- a/drivers/hid/hid-prodikeys.c +++ b/drivers/hid/hid-prodikey

[PATCH 2/4] HID: lg4ff: Remove unnecessary casts of void pointers

2012-09-12 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/hid/hid-lg4ff.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-lg4ff.c b/drivers/hid/hid-lg4ff.c index f3390ee..da23c6b 100644 --- a/drivers/hid/hid-lg4ff.c +++ b/drivers/hid/hid-lg4ff.c @@ -360,7 +360,7 @@ static voi

[PATCH 1/4] HID: lg: Remove unnecessary casts of void pointers

2012-09-12 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/hid/hid-lg.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/hid/hid-lg.c b/drivers/hid/hid-lg.c index e6eca2d..55ce2bf 100644 --- a/drivers/hid/hid-lg.c +++ b/drivers/hid/hid-lg.c @@ -108,7 +108,7 @@ static __u8 dfp_rde

Re: linux-next: Tree for Sept 12 (kernel-panic after pressing any key at X login)

2012-09-12 Thread Minchan Kim
On Thu, Sep 13, 2012 at 07:29:32AM +0200, Sedat Dilek wrote: > On Thu, Sep 13, 2012 at 5:18 AM, Sedat Dilek wrote: > > On Wed, Sep 12, 2012 at 10:46 AM, Stephen Rothwell > > wrote: > >> Hi all, > >> > >> Changes since 201209011: > >> > >> The pci tree lost its build failure. > >> > >> The mfd tr

Re: linux-next: Tree for Sept 12 (kernel-panic after pressing any key at X login)

2012-09-12 Thread Sedat Dilek
On Thu, Sep 13, 2012 at 5:18 AM, Sedat Dilek wrote: > On Wed, Sep 12, 2012 at 10:46 AM, Stephen Rothwell > wrote: >> Hi all, >> >> Changes since 201209011: >> >> The pci tree lost its build failure. >> >> The mfd tree gained a conflict against Linus' tree. >> >> The omap_dss2 tree lost its confl

[PATCH] HID: lenovo-tpkbd: Fix memory leak in tpkbd_remove_tp()

2012-09-12 Thread Axel Lin
We need to kfree names for led_mute and led_micmute in tpkbd_remove_tp(). Signed-off-by: Axel Lin --- drivers/hid/hid-lenovo-tpkbd.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hid/hid-lenovo-tpkbd.c b/drivers/hid/hid-lenovo-tpkbd.c index 77d2df0..60c4e1e 100644 --- a/driver

Re: [PATCH v3 03/20] Input: Make sure we follow all EV_KEY events

2012-09-12 Thread Dmitry Torokhov
On Sat, Sep 01, 2012 at 09:46:58PM +0200, Henrik Rydberg wrote: > For some EV_KEY types, sending a larger-than-one value causes the > input state to oscillate. This patch makes sure this cannot happen, > clearing up the autorepeat bypass logic in the process. > > Signed-off-by: Henrik Rydberg Ac

Re: [PATCH v3 02/20] Input: Improve the events-per-packet estimate

2012-09-12 Thread Dmitry Torokhov
On Sat, Sep 01, 2012 at 09:46:57PM +0200, Henrik Rydberg wrote: > The events-per-packet estimate has so far been used by MT devices > only. This patch adjusts the packet buffer size to also accomodate the > KEY and MSC events. Keyboards normally send one or two keys at a > time. MT devices normall

Re: [PATCH v3 01/20] Input: Break out MT data

2012-09-12 Thread Dmitry Torokhov
On Sat, Sep 01, 2012 at 09:46:56PM +0200, Henrik Rydberg wrote: > Move all MT-related things to a separate place. This saves some > bytes for non-mt input devices, and prepares for new MT features. > > Signed-off-by: Henrik Rydberg ... > @@ -1287,10 +1284,8 @@ struct input_dev { > > int r

Re: [PATCH 1/1] Input: joydev - fix axes values sent in initial js_event

2012-09-12 Thread Dmitry Torokhov
On Wed, Sep 05, 2012 at 10:09:57PM +0200, Vojtěch Boček wrote: > Hi, > > 2012/9/5 Dmitry Torokhov > > So what guarantees that joystick events will arrive in time, before > > joydev_generate_startup_event() is called? It looks like your solution > > is racy... > > > > I wonder if we should not gen

Re: [PATCH] input: gpio_keys_polled: fix dt pdata->nbuttons

2012-09-12 Thread Dmitry Torokhov
On Wed, Sep 12, 2012 at 06:27:23PM -0300, Alexandre Pereira da Silva wrote: > pdata->nbuttons should be updated by the dt code. > > Signed-off-by: Alexandre Pereira da Silva Applied, thank you Alexandre. > --- > drivers/input/keyboard/gpio_keys_polled.c |1 + > 1 file changed, 1 insertion

Re: Synaptics Touchpad incorrectly detected as PS/2 mouse on clausoft MNW737 (aka meenee, aka PX1)

2012-09-12 Thread Dmitry Torokhov
On Wednesday, September 12, 2012 09:05:22 PM Ed Spittles wrote: > The tpconfig tool is unable to adjust zthreshold or disable tap > to click. tpconfig reports this: > > # tpconfig -D1 -z0 > Probing mouse port [/dev/psaux]. > Grabbing mouse port [/dev/psaux]. > Trying Synaptics detection. > [query

[PATCH 2/2] HID: hid-sensor-hub: Fix sensor_hub_probe error handling

2012-09-12 Thread Axel Lin
Fix below issues in sensor_hub_probe error handling: 1. In the case of goto err_close, hid_hw_stop(hdev) is called twice. Fix it. 2. If fails to allocate MFD device name, we also need to free all successfully allocated names in previous iterations. Signed-off-by: Axel Lin --- drivers/hid/hid-

[PATCH 1/2] HID: hid-sensor-hub: Clear HID_CLAIMED_INPUT bit earlier

2012-09-12 Thread Axel Lin
Clear HID_CLAIMED_INPUT bit of hdev->claimed, this prevents calling hidinput_disconnect() in hid_disconnect(), which is called by hid_hw_stop(). We need to clear HID_CLAIMED_INPUT bit earlier rather than in sensor_hub_remove() because we also call hid_hw_stop() in sensor_hub_probe error handling.

[PATCH] input: gpio_keys_polled: fix dt pdata->nbuttons

2012-09-12 Thread Alexandre Pereira da Silva
pdata->nbuttons should be updated by the dt code. Signed-off-by: Alexandre Pereira da Silva --- drivers/input/keyboard/gpio_keys_polled.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/keyboard/gpio_keys_polled.c b/drivers/input/keyboard/gpio_keys_polled.c index 7908952..f

Re: Modifying keycodes or scancodes of keyboard devices

2012-09-12 Thread Bruno Prémont
Hallo Mathias, On Tue, 11 September 2012 "Mathias Laurenz Baumann" wrote: > I want to write a kernel module that hooks in somewhere between the > keyboard driver and whatever > uses the resulting key events (e.g. evdev or xkb). You can usually just tell the kernel to map scancodes to differen

Re: Synaptics Touchpad incorrectly detected as PS/2 mouse on clausoft MNW737 (aka meenee, aka PX1)

2012-09-12 Thread Ed Spittles
Hi all, (This is a move upstream for a bug reported on Ubuntu's Launchpad tracker (https://bugs.launchpad.net/ubuntu/+source/linux/+bug/755518), please bear with me.) A laptop sold with Ubuntu linux in 2010 has an misdetected touchpad. We're told by the manufacturer that it's a Synap

Re: [PATCH 1/4] Input: cyttsp4 - bus driver for Cypress TMA4XX touchscreen devices

2012-09-12 Thread Henrik Rydberg
Hi Ferruh, > Before finalizing the work, we want to learn if introducing new files > for new driver is acceptable and our effort is inline with your request, > can you please comment on it? New files are certainly alright when they are warranted, but of course it depends on the details. We will k

Re: [PATCH 1/4] Input: cyttsp4 - bus driver for Cypress TMA4XX touchscreen devices

2012-09-12 Thread Ferruh Yigit
On 08/27/2012 08:46 AM, Ferruh Yigit wrote: On 08/24/2012 08:34 PM, Henrik Rydberg wrote: Hi Ferruh, As Javier mentioned, there is already a framework for the Cypress devices in the kernel. Please make sure your patches build on what is already there. Until then, I have nothing further to add.