<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/hid, branch releng/14.4</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.4</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.4'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2025-10-02T16:41:17Z</updated>
<entry>
<title>hkbd: remove error detection in KDSKBSTATE ioctl</title>
<updated>2025-10-02T16:41:17Z</updated>
<author>
<name>ShengYi Hung</name>
<email>aokblast@FreeBSD.org</email>
</author>
<published>2025-08-21T17:59:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2acabc7318ac47401e078de28e7b89a38b356cb9'/>
<id>urn:sha1:2acabc7318ac47401e078de28e7b89a38b356cb9</id>
<content type='text'>
The KDSKBSTATE ioctl brings the LED up. However, some keyboards (like qemu
keyboard) may not have LED or failed to set the LED due to unexpected reason.
Therefore, removing the error check as ukbd(4) does allow the keyboard works
correctly with kbdcontrol(4).

Also move hw.hid.hkbd.no_leds sysctl out of HID_BUG thus users can
disable setting LEDs

PR:             288968
Reviewed by:    wulf
Tested by:      trashcan@ellael.org, marklmi26-fbsd@yahoo.com, trkellers@gmail.coom
Approved by:    lwsu (mentor), markj (mentor)
MFC after       1 week
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52101

(cherry picked from commit 1685192ea1faac28f2d4feede53e70b6a380500f)
(cherry picked from commit 6ea7e1f92882706cc8818a13e8bd55b7d2f48e27)
</content>
</entry>
<entry>
<title>Added identifiers for additional PS4 DualShock controller variants</title>
<updated>2025-07-29T22:12:43Z</updated>
<author>
<name>Kevin Reinholz</name>
<email>kreinholz@gmail.com</email>
</author>
<published>2025-05-14T01:09:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6296dd08ae52b01ed681381df6f6c8f60e724467'/>
<id>urn:sha1:6296dd08ae52b01ed681381df6f6c8f60e724467</id>
<content type='text'>
PR:		285215
MFC after:	1 week

(cherry picked from commit d4147ad1a2b9d6e7a862a63894da604c61721786)
</content>
</entry>
<entry>
<title>hidraw(4): Force switch to hidraw mode on HIDIOCGRDESC ioctl</title>
<updated>2025-04-30T07:32:23Z</updated>
<author>
<name>Vladimir Kondratyev</name>
<email>wulf@FreeBSD.org</email>
</author>
<published>2025-04-27T09:07:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2c23fc90e5669eba373c89865dc2209227dca3be'/>
<id>urn:sha1:2c23fc90e5669eba373c89865dc2209227dca3be</id>
<content type='text'>
To match documentation.

Reported by:	Ihor Dutchak &lt;ihor.youw@gmail.com&gt;
PR:		286155
MFC after:	3 days

(cherry picked from commit fe4bdd889b5d722faa3a66e2c7d9a248e527cdb2)
</content>
</entry>
<entry>
<title>hidraw(4): Return actual length of read data from HIDIOCG* ioctls</title>
<updated>2025-04-30T07:32:23Z</updated>
<author>
<name>Vladimir Kondratyev</name>
<email>wulf@FreeBSD.org</email>
</author>
<published>2025-04-27T09:07:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d04cc28f9759829a74db30d067be8a5c5e304c8d'/>
<id>urn:sha1:d04cc28f9759829a74db30d067be8a5c5e304c8d</id>
<content type='text'>
To match Linux.

MFC after:	3 days

(cherry picked from commit 8d4d08d571c64d8f040c2cd1d8f98844251a2238)
</content>
</entry>
<entry>
<title>hidraw(4): Return length of written data from HIDIOCS* ioctls</title>
<updated>2025-04-30T07:32:22Z</updated>
<author>
<name>Vladimir Kondratyev</name>
<email>wulf@FreeBSD.org</email>
</author>
<published>2025-04-27T09:07:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2880e12cc9022a7e1e129cd60ae43de34178c61e'/>
<id>urn:sha1:2880e12cc9022a7e1e129cd60ae43de34178c61e</id>
<content type='text'>
To match Linux.

MFC after:	3 days

(cherry picked from commit 5ea0f1e63dbddc5452e2d85fcc03ba03a3d9cf84)
</content>
</entry>
<entry>
<title>hidraw(4): Add additional hidraw input/output report ioctls</title>
<updated>2025-04-30T07:32:22Z</updated>
<author>
<name>Vladimir Kondratyev</name>
<email>wulf@FreeBSD.org</email>
</author>
<published>2025-04-27T09:07:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7545c8c116b111e418f31eadfe6fba775a9e3dea'/>
<id>urn:sha1:7545c8c116b111e418f31eadfe6fba775a9e3dea</id>
<content type='text'>
to Linux hidraw compatibility API.

Respective Linux commit f43d3870cafa made by Dean Camera message is:

Currently the hidraw module can only read and write feature HID reports on
demand, via dedicated ioctls. Input reports are read from the device through
the read() interface, while output reports are written through the write
interface().

This is insufficient; it is desirable in many situations to be able to read and
write input and output reports through the control interface to cover
additional scenarios:

  - Reading an input report by its report ID, to get initial state
  - Writing an input report, to set initial input state in the device
  - Reading an output report by its report ID, to obtain current state
  - Writing an output report by its report ID, out of band

This patch adds these missing ioctl requests to read and write the remaining
HID report types. Note that not all HID backends will neccesarily support this
(e.g. while the USB link layer supports setting Input reports, others may not).

FreeBSD native uhid(4) compatible API already has similar ioctls.

MFC after:	3 days

(cherry picked from commit fd6690e2d5cd5b15fce2c74ab0cac77a83514f6a)
</content>
</entry>
<entry>
<title>hid: Correctly handle signed/unsigned quantities in kernel HID parser.</title>
<updated>2025-01-21T12:29:17Z</updated>
<author>
<name>Vladimir Kondratyev</name>
<email>wulf@FreeBSD.org</email>
</author>
<published>2024-12-22T03:16:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1dda3a6ed9c51adc908fee4db5917b1232fa932c'/>
<id>urn:sha1:1dda3a6ed9c51adc908fee4db5917b1232fa932c</id>
<content type='text'>
Wrong signedness of usage value results in inverted range check in hmt(4)
driver that allows out of bound array access leading to panic.

Reported by:	many
Sponsored by:	Future Crew, LLC
Obtained from:	NetBSD
NetBSD PR:	kern/53605
PR:		274014, 282592

(cherry picked from commit 38b67578fb4bbf568f7012ca3921a4d15cfe7c5d)
</content>
</entry>
<entry>
<title>hidraw(4): update hgd_actlen in HIDRAW_GET_REPORT ioctl</title>
<updated>2024-12-22T03:33:27Z</updated>
<author>
<name>Matthew Nygard Dodd</name>
<email>Matthew.Nygard.Dodd@gmail.com</email>
</author>
<published>2024-11-18T04:25:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c620dfb037e7cdcbc26f33edf8afa4764c3757ac'/>
<id>urn:sha1:c620dfb037e7cdcbc26f33edf8afa4764c3757ac</id>
<content type='text'>
HIDRAW_GET_REPORT ioctl is documented to update hgd_actlen on return
with the number of bytes copied.  It does not do this.

Reviewed by:	wulf
PR:		282790
MFC after:	1 week

(cherry picked from commit f4f46a2eef3be6d19c65a4ca4ee70f365dd5be4f)
</content>
</entry>
<entry>
<title>kern: Make fileops and filterops tables const where possible</title>
<updated>2024-12-03T01:03:42Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2024-11-25T22:39:31Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=48155c983c4ba7158e738bd1d4b3144751bd1d86'/>
<id>urn:sha1:48155c983c4ba7158e738bd1d4b3144751bd1d86</id>
<content type='text'>
No functional change intended.

MFC after:	1 week

(cherry picked from commit ef9ffb8594eee294334ced627755bf5b46b48f9f)
</content>
</entry>
<entry>
<title>hidbus: Use device_set_descf()</title>
<updated>2024-06-27T15:27:41Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2024-06-05T19:25:05Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=da334b4f5431599addb7bf88f5a7764b809422d0'/>
<id>urn:sha1:da334b4f5431599addb7bf88f5a7764b809422d0</id>
<content type='text'>
No functional change intended.

MFC after:	1 week

(cherry picked from commit 3f795763e45326489ab707c369b8daea495f6562)
</content>
</entry>
</feed>
