<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux-toradex.git/drivers/input, branch v2.6.36-rc8</title>
<subtitle>Linux kernel for Apalis and Colibri modules</subtitle>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/'/>
<entry>
<title>Input: wacom - fix pressure in Cintiq 21UX2</title>
<updated>2010-10-10T21:16:09+00:00</updated>
<author>
<name>Aristeu Rozanski</name>
<email>aris@redhat.com</email>
</author>
<published>2010-10-10T21:12:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ca047fedd89bbb4b79b61e0656a7b799e4e45e6d'/>
<id>ca047fedd89bbb4b79b61e0656a7b799e4e45e6d</id>
<content type='text'>
Currently the pressure range in Cintiq 21UX2 is limited to half of the
supported. This patch fixes the problem.

Signed-off-by: Aristeu Rozanski &lt;aris@redhat.com&gt;
Acked-by: Ping Cheng &lt;pingc@wacom.com&gt;
CC: stable@kernel.org
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently the pressure range in Cintiq 21UX2 is limited to half of the
supported. This patch fixes the problem.

Signed-off-by: Aristeu Rozanski &lt;aris@redhat.com&gt;
Acked-by: Ping Cheng &lt;pingc@wacom.com&gt;
CC: stable@kernel.org
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Input: wacom - fix runtime PM related deadlock</title>
<updated>2010-10-05T05:36:41+00:00</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2010-10-05T04:46:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=f6cd378372bff06093d72f978c0150eeed3ea201'/>
<id>f6cd378372bff06093d72f978c0150eeed3ea201</id>
<content type='text'>
When runtime PM is enabled by default for input devices, X hangs in
wacom open:
[&lt;ffffffff814a00ea&gt;] mutex_lock+0x1a/0x40
[&lt;ffffffffa02bc94b&gt;] wacom_resume+0x3b/0x90 [wacom]
[&lt;ffffffff81327a32&gt;] usb_resume_interface+0xd2/0x190
[&lt;ffffffff81327b5d&gt;] usb_resume_both+0x6d/0x110
[&lt;ffffffff81327c24&gt;] usb_runtime_resume+0x24/0x40
[&lt;ffffffff8130a2cf&gt;] __pm_runtime_resume+0x26f/0x450
[&lt;ffffffff8130a23a&gt;] __pm_runtime_resume+0x1da/0x450
[&lt;ffffffff8130a53a&gt;] pm_runtime_resume+0x2a/0x50
[&lt;ffffffff81328176&gt;] usb_autopm_get_interface+0x26/0x60
[&lt;ffffffffa02bc626&gt;] wacom_open+0x36/0x90 [wacom]

wacom_open() takes wacom-&gt;lock and calls usb_autopm_get_interface(),
which in turn calls wacom_resume() which tries to acquire the lock
again.

The fix is to call usb_autopm_get_interface() first, before we take
the lock.

Since we do not do usb_autopm_put_interface() until wacom_close()
is called runtime PM is effectively disabled for the driver, however
changing it now would risk regressions so the complete fix will
have to wait till the next merge window.

Reported-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
Acked-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When runtime PM is enabled by default for input devices, X hangs in
wacom open:
[&lt;ffffffff814a00ea&gt;] mutex_lock+0x1a/0x40
[&lt;ffffffffa02bc94b&gt;] wacom_resume+0x3b/0x90 [wacom]
[&lt;ffffffff81327a32&gt;] usb_resume_interface+0xd2/0x190
[&lt;ffffffff81327b5d&gt;] usb_resume_both+0x6d/0x110
[&lt;ffffffff81327c24&gt;] usb_runtime_resume+0x24/0x40
[&lt;ffffffff8130a2cf&gt;] __pm_runtime_resume+0x26f/0x450
[&lt;ffffffff8130a23a&gt;] __pm_runtime_resume+0x1da/0x450
[&lt;ffffffff8130a53a&gt;] pm_runtime_resume+0x2a/0x50
[&lt;ffffffff81328176&gt;] usb_autopm_get_interface+0x26/0x60
[&lt;ffffffffa02bc626&gt;] wacom_open+0x36/0x90 [wacom]

wacom_open() takes wacom-&gt;lock and calls usb_autopm_get_interface(),
which in turn calls wacom_resume() which tries to acquire the lock
again.

The fix is to call usb_autopm_get_interface() first, before we take
the lock.

Since we do not do usb_autopm_put_interface() until wacom_close()
is called runtime PM is effectively disabled for the driver, however
changing it now would risk regressions so the complete fix will
have to wait till the next merge window.

Reported-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
Acked-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Input: joydev - fix JSIOCSAXMAP ioctl</title>
<updated>2010-09-21T07:59:43+00:00</updated>
<author>
<name>Kenneth Waters</name>
<email>kwwaters@gmail.com</email>
</author>
<published>2010-09-21T07:58:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d2520a426dc3033c00077e923a553fc6c98c7564'/>
<id>d2520a426dc3033c00077e923a553fc6c98c7564</id>
<content type='text'>
Fixed JSIOCSAXMAP ioctl to update absmap, the map from hardware axis to
event axis in addition to abspam.  This fixes a regression introduced
by 999b874f.

Signed-off-by: Kenneth Waters &lt;kwwaters@gmail.com&gt;
Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixed JSIOCSAXMAP ioctl to update absmap, the map from hardware axis to
event axis in addition to abspam.  This fixes a regression introduced
by 999b874f.

Signed-off-by: Kenneth Waters &lt;kwwaters@gmail.com&gt;
Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Input: uinput - setup MT usage during device creation</title>
<updated>2010-09-19T23:29:57+00:00</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@euromail.se</email>
</author>
<published>2010-09-19T23:25:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=38e7afe96c7c0ad900824911c61fdb04078033dc'/>
<id>38e7afe96c7c0ad900824911c61fdb04078033dc</id>
<content type='text'>
The input devices created by uinput do not currently handle multitouch
properly. All events will appear as if they came from slot zero, and
the input event buffers are not adjusted. This patch creates the MT
slots during setup, and sets the number of events per packet based
on the MT usage.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The input devices created by uinput do not currently handle multitouch
properly. All events will appear as if they came from slot zero, and
the input event buffers are not adjusted. This patch creates the MT
slots during setup, and sets the number of events per packet based
on the MT usage.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Input: i8042 - fix device removal on unload</title>
<updated>2010-09-01T01:28:15+00:00</updated>
<author>
<name>Dmitry Torokhov</name>
<email>dmitry.torokhov@gmail.com</email>
</author>
<published>2010-09-01T00:27:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=af045b86662f17bf130239a65995c61a34f00a6b'/>
<id>af045b86662f17bf130239a65995c61a34f00a6b</id>
<content type='text'>
We need to call platform_device_unregister(i8042_platform_device)
before calling platform_driver_unregister() because i8042_remove()
resets i8042_platform_device to NULL. This leaves the platform device
instance behind and prevents driver reload.

Fixes https://bugzilla.kernel.org/show_bug.cgi?id=16613

Reported-by: Seryodkin Victor &lt;vvscore@gmail.com&gt;
Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need to call platform_device_unregister(i8042_platform_device)
before calling platform_driver_unregister() because i8042_remove()
resets i8042_platform_device to NULL. This leaves the platform device
instance behind and prevents driver reload.

Fixes https://bugzilla.kernel.org/show_bug.cgi?id=16613

Reported-by: Seryodkin Victor &lt;vvscore@gmail.com&gt;
Cc: stable@kernel.org
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Input: bcm5974 - adjust major/minor to scale</title>
<updated>2010-09-01T01:00:02+00:00</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@euromail.se</email>
</author>
<published>2010-09-01T00:27:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=57157becdd1d23e6c2b8661ffe6c78d7d605d121'/>
<id>57157becdd1d23e6c2b8661ffe6c78d7d605d121</id>
<content type='text'>
By visual inspection, the reported touch_major and touch_minor axes
are a factor of two too small. Presumably the device actually reports
the semi-major and semi-minor axes. Corrected with this patch.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
By visual inspection, the reported touch_major and touch_minor axes
are a factor of two too small. Presumably the device actually reports
the semi-major and semi-minor axes. Corrected with this patch.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Input: MT - initialize slots to unused</title>
<updated>2010-08-29T04:39:43+00:00</updated>
<author>
<name>Henrik Rydberg</name>
<email>rydberg@euromail.se</email>
</author>
<published>2010-08-29T04:33:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=ba4d695a90c9176fca8e45d6c872bbf4e8bed315'/>
<id>ba4d695a90c9176fca8e45d6c872bbf4e8bed315</id>
<content type='text'>
For MT slots, the ABS_MT_TRACKING_ID determines whether a slot is in use,
but currently leaves initialization up to the drivers. This patch sets the
slot state to unused upon creation.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
For MT slots, the ABS_MT_TRACKING_ID determines whether a slot is in use,
but currently leaves initialization up to the drivers. This patch sets the
slot state to unused upon creation.

Signed-off-by: Henrik Rydberg &lt;rydberg@euromail.se&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Input: wacom - fix mousewheel handling for old wacom tablets</title>
<updated>2010-08-29T04:39:04+00:00</updated>
<author>
<name>Mike Auty</name>
<email>ikelos@gentoo.org</email>
</author>
<published>2010-08-29T03:35:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=d9f66c1a46163c7c83411058516a69da547262f8'/>
<id>d9f66c1a46163c7c83411058516a69da547262f8</id>
<content type='text'>
This fixes a regression introduced in
3b57ca0f80c5c8994b5b1e3d3f904cfe727951f2.

The data[6] byte contains either 1 or -1 depending on the whether the
mouse wheel on older wacom tablets is moved down (1) or up (-1).  The
patch introduced in the above commit changed the cast from (signed char)
to (signed).  When cast as a signed integer and negated, the value of -1
(stored in the byte as 0xff) became -255 rather than 1.  This patch
reverts the cast to a (signed char) and also removes an unnecessary
(signed) cast, as all the values operated on are bitmasked.

Signed-off-by: Mike Auty &lt;ikelos@gentoo.org&gt;
Reviewed-by: Ping Cheng &lt;pingc@wacom.com&gt;
Cc; stable@kernel.org
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes a regression introduced in
3b57ca0f80c5c8994b5b1e3d3f904cfe727951f2.

The data[6] byte contains either 1 or -1 depending on the whether the
mouse wheel on older wacom tablets is moved down (1) or up (-1).  The
patch introduced in the above commit changed the cast from (signed char)
to (signed).  When cast as a signed integer and negated, the value of -1
(stored in the byte as 0xff) became -255 rather than 1.  This patch
reverts the cast to a (signed char) and also removes an unnecessary
(signed) cast, as all the values operated on are bitmasked.

Signed-off-by: Mike Auty &lt;ikelos@gentoo.org&gt;
Reviewed-by: Ping Cheng &lt;pingc@wacom.com&gt;
Cc; stable@kernel.org
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Input: pxa27x_keypad - remove input_free_device() in pxa27x_keypad_remove()</title>
<updated>2010-08-25T14:51:40+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2010-08-24T23:37:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=288933c02b440621d9c8e7bb5f232cfb7bdef7df'/>
<id>288933c02b440621d9c8e7bb5f232cfb7bdef7df</id>
<content type='text'>
No need to call input_free_device() after input_unregister_device().

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
No need to call input_free_device() after input_unregister_device().

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Input: mousedev - fix regression of inverting axes</title>
<updated>2010-08-25T14:50:44+00:00</updated>
<author>
<name>Christoph Fritz</name>
<email>chf.fritz@googlemail.com</email>
</author>
<published>2010-08-24T07:33:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.toradex.cn/cgit/linux-toradex.git/commit/?id=268ba5c05b82af575819bd719a2facb2a3169260'/>
<id>268ba5c05b82af575819bd719a2facb2a3169260</id>
<content type='text'>
Introduced by 987a6c0298260b7aa40702b349282554d6180e4b a swap in max/min
calculation gets fixed by this patch.

Reported-by: Bruno Prémont &lt;bonbons@linux-vserver.org&gt;
Signed-off-by: Christoph Fritz &lt;chf.fritz@googlemail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Introduced by 987a6c0298260b7aa40702b349282554d6180e4b a swap in max/min
calculation gets fixed by this patch.

Reported-by: Bruno Prémont &lt;bonbons@linux-vserver.org&gt;
Signed-off-by: Christoph Fritz &lt;chf.fritz@googlemail.com&gt;
Signed-off-by: Dmitry Torokhov &lt;dtor@mail.ru&gt;
</pre>
</div>
</content>
</entry>
</feed>
