<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/hid, branch v3.12.18</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.12.18</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.12.18'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2014-03-31T12:22:23Z</updated>
<entry>
<title>HID: hidraw: fix warning destroying hidraw device files after parent</title>
<updated>2014-03-31T12:22:23Z</updated>
<author>
<name>Fernando Luis Vazquez Cao</name>
<email>fernando@oss.ntt.co.jp</email>
</author>
<published>2014-02-26T07:51:24Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=49ae3ce036a7bbaad86c36b1f8b1cfabe005cd05'/>
<id>urn:sha1:49ae3ce036a7bbaad86c36b1f8b1cfabe005cd05</id>
<content type='text'>
commit 47587fc098451c2100dc1fb618855fc2e2d937af upstream.

I noticed that after hot unplugging a Logitech unifying receiver
(drivers/hid/hid-logitech-dj.c) the kernel would occasionally spew a
stack trace similar to this:

usb 1-1.1.2: USB disconnect, device number 7
WARNING: CPU: 0 PID: 2865 at fs/sysfs/group.c:216 device_del+0x40/0x1b0()
sysfs group ffffffff8187fa20 not found for kobject 'hidraw0'
[...]
CPU: 0 PID: 2865 Comm: upowerd Tainted: G        W 3.14.0-rc4 #7
Hardware name: LENOVO 7783PN4/        , BIOS 9HKT43AUS 07/11/2011
 0000000000000009 ffffffff814cd684 ffff880427ccfdf8 ffffffff810616e7
 ffff88041ec61800 ffff880427ccfe48 ffff88041e444d80 ffff880426fab8e8
 ffff880429359960 ffffffff8106174c ffffffff81714b98 0000000000000028
Call Trace:
 [&lt;ffffffff814cd684&gt;] ? dump_stack+0x41/0x51
 [&lt;ffffffff810616e7&gt;] ? warn_slowpath_common+0x77/0x90
 [&lt;ffffffff8106174c&gt;] ? warn_slowpath_fmt+0x4c/0x50
 [&lt;ffffffff81374fd0&gt;] ? device_del+0x40/0x1b0
 [&lt;ffffffff8137516f&gt;] ? device_unregister+0x2f/0x50
 [&lt;ffffffff813751fa&gt;] ? device_destroy+0x3a/0x40
 [&lt;ffffffffa03ca245&gt;] ? drop_ref+0x55/0x120 [hid]
 [&lt;ffffffffa03ca3e6&gt;] ? hidraw_release+0x96/0xb0 [hid]
 [&lt;ffffffff811929da&gt;] ? __fput+0xca/0x210
 [&lt;ffffffff8107fe17&gt;] ? task_work_run+0x97/0xd0
 [&lt;ffffffff810139a9&gt;] ? do_notify_resume+0x69/0xa0
 [&lt;ffffffff814dbd22&gt;] ? int_signal+0x12/0x17
---[ end trace 63f4a46f6566d737 ]---

During device removal hid_disconnect() is called via hid_hw_stop() to
stop the device and free all its resources, including the sysfs
files. The problem is that if a user space process, such as upowerd,
holds a reference to a hidraw file the corresponding sysfs files will
be kept around (drop_ref() does not call device_destroy() if the open
counter is not 0) and it will be usb_disconnect() who, by calling
device_del() for the USB device, will indirectly remove the sysfs
files of the hidraw device (sysfs_remove_dir() is recursive these
days). Because of this, by the time user space releases the last
reference to the hidraw file and drop_ref() tries to destroy the
device the sysfs files are already gone and the kernel will print
the warning above.

Fix this by calling device_destroy() at USB disconnect time.

Signed-off-by: Fernando Luis Vazquez Cao &lt;fernando@oss.ntt.co.jp&gt;
Reviewed-by: David Herrmann &lt;dh.herrmann@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID:hid-lg4ff: Initialize device properties before we touch autocentering.</title>
<updated>2014-03-31T12:22:22Z</updated>
<author>
<name>Simon Wood</name>
<email>simon@mungewell.org</email>
</author>
<published>2013-11-06T19:30:43Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=9dd6503025b97a699c92da785eff35d66eb7358a'/>
<id>urn:sha1:9dd6503025b97a699c92da785eff35d66eb7358a</id>
<content type='text'>
commit 114a55cf9dd1576e7ac56189832cd4d7dc56c218 upstream.

Re-arrange code slightly to ensure that device properties are configured
before calling auto-center command.

Reported-by: Michal Malý &lt;madcatxster@prifuk.cz&gt;
Signed-off-by: Simon Wood &lt;simon@mungewell.org&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: kye: Fix missing break in kye_report_fixup()</title>
<updated>2013-12-20T15:49:06Z</updated>
<author>
<name>Ben Hutchings</name>
<email>ben@decadent.org.uk</email>
</author>
<published>2013-11-30T19:12:27Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=1c6d8565e19d345426179f693e46226cad5a5b60'/>
<id>urn:sha1:1c6d8565e19d345426179f693e46226cad5a5b60</id>
<content type='text'>
commit 0a5f99cfff2297f6c350b7f54878cbbf1b1253d5 upstream.

The change to support Genius Manticore Keyboard also changed behaviour
for Genius Gx Imperator Keyboard, as there is no break between the
cases.  This is presumably a mistake.

Reported by Coverity as CID 1134029.

Fixes: 4a2c94c9b6c0 ('HID: kye: Add report fixup for Genius Manticore Keyboard')
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>HID: kye: Add report fixup for Genius Manticore Keyboard</title>
<updated>2013-12-20T15:49:06Z</updated>
<author>
<name>Benjamin Tissoires</name>
<email>benjamin.tissoires@redhat.com</email>
</author>
<published>2013-11-20T14:49:41Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=4e1dc5e33de343976c870510a854b98bf1b4ead7'/>
<id>urn:sha1:4e1dc5e33de343976c870510a854b98bf1b4ead7</id>
<content type='text'>
commit 4a2c94c9b6c03af61b04993340bd9559e2277de4 upstream.

Genius Manticore Keyboard presents the same problem in its report
descriptors than Genius Gila Gaming Mouse and Genius Imperator Keyboard.
Use the same fixup.

Reported-and-tested-by: Adam Kulagowski &lt;fidor@fidor.org&gt;
Signed-off-by: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>HID: hid-elo: some systems cannot stomach work around</title>
<updated>2013-12-08T15:29:16Z</updated>
<author>
<name>Oliver Neukum</name>
<email>oneukum@suse.de</email>
</author>
<published>2013-09-25T07:42:55Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=30699c9661d6ecf0fb31804723f5d870865a617a'/>
<id>urn:sha1:30699c9661d6ecf0fb31804723f5d870865a617a</id>
<content type='text'>
commit 403cfb53fb450d53751fdc7ee0cd6652419612cf upstream.

Some systems although they have firmware class 'M', which usually
needs a work around to not crash, must not be subjected to the
work around because the work around crashes them. They cannot be
told apart by their own device descriptor, but as they are part
of compound devices, can be identified by looking at their siblings.

Signed-off-by: Oliver Neukum &lt;oneukum@suse.de&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>HID: lg: fix Report Descriptor for Logitech MOMO Force (Black)</title>
<updated>2013-12-08T15:29:16Z</updated>
<author>
<name>Simon Wood</name>
<email>simon@mungewell.org</email>
</author>
<published>2013-10-10T14:20:13Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=fef8c18a3f38d5446328997aaf7c8a56534df8c6'/>
<id>urn:sha1:fef8c18a3f38d5446328997aaf7c8a56534df8c6</id>
<content type='text'>
commit 348cbaa800f8161168b20f85f72abb541c145132 upstream.

By default the Logitech MOMO Force (Black) presents a combined accel/brake
axis ('Y'). This patch modifies the HID descriptor to present seperate
accel/brake axes ('Y' and 'Z').

Signed-off-by: Simon Wood &lt;simon@mungewell.org&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>HID: apple: option to swap the 'Option' ("Alt") and 'Command' ("Flag") keys.</title>
<updated>2013-12-04T19:06:42Z</updated>
<author>
<name>Nanno Langstraat</name>
<email>langstr@gmail.com</email>
</author>
<published>2013-10-14T14:07:15Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=742b3c84d9d7c028277fbdcc46c8cf4dbccce84f'/>
<id>urn:sha1:742b3c84d9d7c028277fbdcc46c8cf4dbccce84f</id>
<content type='text'>
commit 43c831468b3d26dbe8f2e061ccaf1abaf9cc1b8b upstream.

Use case: people who use both Apple and PC keyboards regularly, and desire to
keep&amp;use their PC muscle memory.

A particular use case: an Apple compact external keyboard connected to a PC
laptop. (This use case can't be covered well by X.org key remappings etc.)

Signed-off-by: Nanno Langstraat &lt;langstr@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>HID: enable Mayflash USB Gamecube Adapter</title>
<updated>2013-12-04T19:06:42Z</updated>
<author>
<name>Tristan Rice</name>
<email>rice@outerearth.net</email>
</author>
<published>2013-11-12T18:06:23Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=f0d8c7402c614060ab81863c4f06ac9265733668'/>
<id>urn:sha1:f0d8c7402c614060ab81863c4f06ac9265733668</id>
<content type='text'>
commit e17f5d7667c5414b8f12a93ef14aae0824bd2beb upstream.

This is a patch that adds the new Mayflash Gamecube Controller to USB adapter
(ID 1a34:f705 ACRUX) to the ACRUX driver (drivers/hid/hid-axff.c) with full
force feedback support.

Signed-off-by: Tristan Rice &lt;rice@outerearth.net&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>HID: add support for LEETGION Hellion Gaming Mouse</title>
<updated>2013-12-04T19:06:36Z</updated>
<author>
<name>Anders F. U. Kiær</name>
<email>ablacksheep@gmail.com</email>
</author>
<published>2013-10-21T21:42:22Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=d6c68f61ad98abad5c6ed2ab7b680c6dbd26f460'/>
<id>urn:sha1:d6c68f61ad98abad5c6ed2ab7b680c6dbd26f460</id>
<content type='text'>
commit f1a4914bd04911fbeaee23445112adae8977144a upstream.

Added id, bindings and comments for Holtek USB ID 04d9:a072
LEETGION Hellion Gaming mouse to use the same corrections of the report
descriptor as Holtek 04d9:a067. As the mouse exceed HID_MAX_USAGES at the
same offsets in the reported descriptor.
Tested on the hardware.

Signed-off-by: Anders F. U. Kiær &lt;ablacksheep@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>HID: roccat: add missing special driver declarations</title>
<updated>2013-12-04T19:06:36Z</updated>
<author>
<name>Stefan Achatz</name>
<email>erazor_de@users.sourceforge.net</email>
</author>
<published>2013-11-08T13:12:00Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=b8ac28148c663a3b5a5d3b6207b3cfd84fb08210'/>
<id>urn:sha1:b8ac28148c663a3b5a5d3b6207b3cfd84fb08210</id>
<content type='text'>
commit e078809df5611600965f4d3420c3256260fc3e3d upstream.

Forgot two special driver declarations and sorted the list.

Signed-off-by: Stefan Achatz &lt;erazor_de@users.sourceforge.net&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
</feed>
