Commit 862153f
committed
usb-device-hid: Fix protocol config in descriptor and set correct default.
Subclass in HID interface descriptor is a flag of boot protocol support.
Set it according to the interface protocol settings.
HID devices should come up in non-boot mode according to Device Class
Definition for Human Interface Devices (HID) v1.11 Appendix F.5. Set the
initial state of interface protocol to report protocol.
Signed-off-by: Hyx <hyx0329@outlook.com>1 parent f95568d commit 862153f
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| |||
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
151 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
152 | 161 | | |
153 | 162 | | |
154 | 163 | | |
| |||
0 commit comments