<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/hid/hid-led.c, branch v6.12.80</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.12.80'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2022-04-21T08:28:49+00:00</updated>
<entry>
<title>HID: hid-led: fix maximum brightness for Dream Cheeky</title>
<updated>2022-04-21T08:28:49+00:00</updated>
<author>
<name>Jonathan Teh</name>
<email>jonathan.teh@outlook.com</email>
</author>
<published>2022-03-13T19:48:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=116c3f4a78ebe478d5ad5a038baf931e93e7d748'/>
<id>urn:sha1:116c3f4a78ebe478d5ad5a038baf931e93e7d748</id>
<content type='text'>
Increase maximum brightness for Dream Cheeky to 63. Emperically
determined based on testing in kernel 4.4 on this device:

Bus 003 Device 002: ID 1d34:0004 Dream Cheeky Webmail Notifier

Fixes: 6c7ad07e9e05 ("HID: migrate USB LED driver from usb misc to hid")
Signed-off-by: Jonathan Teh &lt;jonathan.teh@outlook.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 372</title>
<updated>2019-06-05T15:37:10+00:00</updated>
<author>
<name>Thomas Gleixner</name>
<email>tglx@linutronix.de</email>
</author>
<published>2019-05-31T08:09:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a10e763b87134a9a4ca3a38b5c4b533e75ec63a3'/>
<id>urn:sha1:a10e763b87134a9a4ca3a38b5c4b533e75ec63a3</id>
<content type='text'>
Based on 1 normalized pattern(s):

  this program is free software you can redistribute it and or modify
  it under the terms of the gnu general public license as published by
  the free software foundation version 2

extracted by the scancode license scanner the SPDX license identifier

  GPL-2.0-only

has been chosen to replace the boilerplate/reference in 135 file(s).

Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Reviewed-by: Allison Randal &lt;allison@lohutok.net&gt;
Cc: linux-spdx@vger.kernel.org
Link: https://lkml.kernel.org/r/20190531081036.435762997@linutronix.de
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>HID: hid-led: fix issue with transfer buffer not being dma capable</title>
<updated>2016-10-10T08:47:03+00:00</updated>
<author>
<name>Heiner Kallweit</name>
<email>hkallweit1@gmail.com</email>
</author>
<published>2016-10-03T19:21:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3d1355b3cfad53feba76a73b052c757a7de7f4de'/>
<id>urn:sha1:3d1355b3cfad53feba76a73b052c757a7de7f4de</id>
<content type='text'>
The hid-led driver works fine under 4.8.0, however with the next
kernel from today I get this:

------------[ cut here ]------------
WARNING: CPU: 0 PID: 2578 at drivers/usb/core/hcd.c:1584 usb_hcd_map_urb_for_dma+0x373/0x550 [usbcore]
transfer buffer not dma capable
Modules linked in: hid_led(+) usbhid vfat fat ir_sony_decoder iwlmvm led_class mac80211 snd_hda_codec_realtek snd_hda_codec_generic x86_pkg_temp_thermal iwlwifi crc32c_intel snd_hda_codec_hdmi i2c_i801 i2c_smbus snd_hda_intel cfg80211 snd_hda_codec snd_hda_core snd_pcm r8169 snd_timer mei_me mii snd mei ir_lirc_codec lirc_dev nuvoton_cir rc_core btusb btintel bluetooth rfkill usb_storage efivarfs ipv6 ehci_pci ehci_hcd xhci_pci xhci_hcd usbcore usb_common ext4 jbd2 mbcache ahci libahci libata
CPU: 0 PID: 2578 Comm: systemd-udevd Not tainted 4.8.0-rc8-next-20161003 #1
Hardware name: ZOTAC ZBOX-CI321NANO/ZBOX-CI321NANO, BIOS B246P105 06/01/2015
 ffffc90003dbb7e0 ffffffff81280425 ffffc90003dbb830 0000000000000000
 ffffc90003dbb820 ffffffff8105b086 0000063003dbb800 ffff88006f374480
 0000000000000000 0000000000000000 0000000000000001 ffff880079544000
Call Trace:
 [&lt;ffffffff81280425&gt;] dump_stack+0x68/0x93
 [&lt;ffffffff8105b086&gt;] __warn+0xc6/0xe0
 [&lt;ffffffff8105b0ea&gt;] warn_slowpath_fmt+0x4a/0x50
 [&lt;ffffffffa0143a43&gt;] usb_hcd_map_urb_for_dma+0x373/0x550 [usbcore]
 [&lt;ffffffffa01441b6&gt;] usb_hcd_submit_urb+0x316/0x9c0 [usbcore]
 [&lt;ffffffff810bce80&gt;] ? rcu_read_lock_sched_held+0x40/0x80
 [&lt;ffffffff810e0043&gt;] ? module_assert_mutex_or_preempt+0x13/0x50
 [&lt;ffffffff810e0c07&gt;] ? __module_address+0x27/0xf0
 [&lt;ffffffffa01456e4&gt;] usb_submit_urb+0x2c4/0x520 [usbcore]
 [&lt;ffffffffa0145fea&gt;] usb_start_wait_urb+0x5a/0xe0 [usbcore]
 [&lt;ffffffffa014612c&gt;] usb_control_msg+0xbc/0xf0 [usbcore]
 [&lt;ffffffff810e0c07&gt;] ? __module_address+0x27/0xf0
 [&lt;ffffffffa079a724&gt;] usbhid_raw_request+0xa4/0x180 [usbhid]
 [&lt;ffffffffa07a93b1&gt;] hidled_recv+0x71/0xe0 [hid_led]
 [&lt;ffffffffa07a947d&gt;] thingm_init+0x2d/0x50 [hid_led]
 [&lt;ffffffffa07a969b&gt;] hidled_probe+0xcb/0x24a [hid_led]
 [&lt;ffffffff814d96f2&gt;] hid_device_probe+0xd2/0x150
 [&lt;ffffffff8146023d&gt;] driver_probe_device+0x1fd/0x2c0
 [&lt;ffffffff8146039a&gt;] __driver_attach+0x9a/0xa0
 [&lt;ffffffff81460300&gt;] ? driver_probe_device+0x2c0/0x2c0
 [&lt;ffffffff8145e25d&gt;] bus_for_each_dev+0x5d/0x90
 [&lt;ffffffff8145fa79&gt;] driver_attach+0x19/0x20
 [&lt;ffffffff8145f5ff&gt;] bus_add_driver+0x11f/0x220
 [&lt;ffffffffa07ac000&gt;] ? 0xffffffffa07ac000
 [&lt;ffffffff8146086b&gt;] driver_register+0x5b/0xd0
 [&lt;ffffffffa07ac000&gt;] ? 0xffffffffa07ac000
 [&lt;ffffffff814d83d1&gt;] __hid_register_driver+0x61/0xa0
 [&lt;ffffffffa07ac01e&gt;] hidled_driver_init+0x1e/0x20 [hid_led]
 [&lt;ffffffff81000408&gt;] do_one_initcall+0x38/0x150
 [&lt;ffffffff810bce80&gt;] ? rcu_read_lock_sched_held+0x40/0x80
 [&lt;ffffffff81194ca0&gt;] ? kmem_cache_alloc_trace+0x1d0/0x230
 [&lt;ffffffff811342f9&gt;] do_init_module+0x5a/0x1cb
 [&lt;ffffffff810e3862&gt;] load_module+0x1e42/0x2530
 [&lt;ffffffff810e0990&gt;] ? __symbol_put+0x50/0x50
 [&lt;ffffffff810dfc50&gt;] ? show_coresize+0x30/0x30
 [&lt;ffffffff811ad650&gt;] ? kernel_read_file+0x100/0x190
 [&lt;ffffffff811ad794&gt;] ? kernel_read_file_from_fd+0x44/0x70
 [&lt;ffffffff810e415a&gt;] SYSC_finit_module+0xba/0xc0
 [&lt;ffffffff810e4179&gt;] SyS_finit_module+0x9/0x10
 [&lt;ffffffff815e082a&gt;] entry_SYSCALL_64_fastpath+0x18/0xad
---[ end trace c9e6ea27003ecf9e ]---

Fix this by using a kmalloc'ed buffer when calling hid_hw_raw_request.

Signed-off-by: Heiner Kallweit &lt;hkallweit1@gmail.com&gt;
Reviewed-by: Benjamin Tissoires &lt;benjamin.tissoires@redhat.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: hid-led: fix Delcom support on big endian systems</title>
<updated>2016-07-08T10:36:03+00:00</updated>
<author>
<name>Heiner Kallweit</name>
<email>hkallweit1@gmail.com</email>
</author>
<published>2016-07-08T04:58:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f4c109b660fa1d0453a6dde75bef725304687832'/>
<id>urn:sha1:f4c109b660fa1d0453a6dde75bef725304687832</id>
<content type='text'>
Properly handle this __le16 value on big endian systems.

Signed-off-by: Heiner Kallweit &lt;hkallweit1@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: hid-led: add support for Greynut Luxafor</title>
<updated>2016-07-07T09:20:59+00:00</updated>
<author>
<name>Heiner Kallweit</name>
<email>hkallweit1@gmail.com</email>
</author>
<published>2016-07-04T19:47:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9d1e048cc8e1f9317b0bff611021aaf52e65f9d4'/>
<id>urn:sha1:9d1e048cc8e1f9317b0bff611021aaf52e65f9d4</id>
<content type='text'>
Add support for Greynut Luxafor. This device has two groups of three
independent LED's each.

Successfully tested with such a device.

Signed-off-by: Heiner Kallweit &lt;hkallweit1@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: hid-led: add support for Delcom Visual Signal Indicator G2</title>
<updated>2016-07-07T09:17:12+00:00</updated>
<author>
<name>Heiner Kallweit</name>
<email>hkallweit1@gmail.com</email>
</author>
<published>2016-07-04T19:45:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=de9086509e716e9797f401dd260d5b4bdd2244c7'/>
<id>urn:sha1:de9086509e716e9797f401dd260d5b4bdd2244c7</id>
<content type='text'>
Add support for the HID-compliant Delcom Visual Signal Indicator
generation 2 devices.

Successfully tested with part no 904000 from the family of these devices.

Signed-off-by: Heiner Kallweit &lt;hkallweit1@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: hid-led: remove report id from struct hidled_config</title>
<updated>2016-07-07T09:17:11+00:00</updated>
<author>
<name>Heiner Kallweit</name>
<email>hkallweit1@gmail.com</email>
</author>
<published>2016-07-03T15:33:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=34d9810b316b6de11a801a30339c070d1798a7b0'/>
<id>urn:sha1:34d9810b316b6de11a801a30339c070d1798a7b0</id>
<content type='text'>
Delcom uses the report id to submit command information. To be able to
use the hidled framework also for Delcom devices we have to remove the
report id from struct hidled_config.

Signed-off-by: Heiner Kallweit &lt;hkallweit1@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: hid-led: add support for ThingM blink(1)</title>
<updated>2016-06-23T06:47:41+00:00</updated>
<author>
<name>Heiner Kallweit</name>
<email>hkallweit1@gmail.com</email>
</author>
<published>2016-06-21T19:49:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=007414e8fbc8894f33a548874946b6edd2a2918e'/>
<id>urn:sha1:007414e8fbc8894f33a548874946b6edd2a2918e</id>
<content type='text'>
Add support for ThingM blink(1) and make the dedicated ThingM driver
obsolete.

Successfully tested with a blink(1) mk2.

Signed-off-by: Heiner Kallweit &lt;hkallweit1@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: hid-led: add support for reading from LED devices</title>
<updated>2016-06-23T06:47:40+00:00</updated>
<author>
<name>Heiner Kallweit</name>
<email>hkallweit1@gmail.com</email>
</author>
<published>2016-06-21T19:48:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4374573008df08a3a7a84cd827ed8f1ceee9901b'/>
<id>urn:sha1:4374573008df08a3a7a84cd827ed8f1ceee9901b</id>
<content type='text'>
Add support for reading data from LED devices.

Signed-off-by: Heiner Kallweit &lt;hkallweit1@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
<entry>
<title>HID: hid-led: add support for devices with multiple independent LEDs</title>
<updated>2016-06-23T06:47:40+00:00</updated>
<author>
<name>Heiner Kallweit</name>
<email>hkallweit1@gmail.com</email>
</author>
<published>2016-06-21T19:48:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5bc839367bce7a609986a446bd7288409f51f1bc'/>
<id>urn:sha1:5bc839367bce7a609986a446bd7288409f51f1bc</id>
<content type='text'>
Add generic support for devices with multiple independent LED's.

Signed-off-by: Heiner Kallweit &lt;hkallweit1@gmail.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
</feed>
