<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/Documentation/hid, 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>2024-08-19T19:12:27+00:00</updated>
<entry>
<title>Documentation: hid: intel-ish-hid: Add vendor custom firmware loading</title>
<updated>2024-08-19T19:12:27+00:00</updated>
<author>
<name>Zhang Lixu</name>
<email>lixu.zhang@intel.com</email>
</author>
<published>2024-08-15T02:09:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=87de1615194eeb43b14cf5355ede3bd2115e0ff4'/>
<id>urn:sha1:87de1615194eeb43b14cf5355ede3bd2115e0ff4</id>
<content type='text'>
Add ISH firmware loading guidelines for vendor custom firmware.

Signed-off-by: Zhang Lixu &lt;lixu.zhang@intel.com&gt;
Acked-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.com&gt;
</content>
</entry>
<entry>
<title>HID: bpf: allow hid_device_event hooks to inject input reports on self</title>
<updated>2024-06-27T09:00:48+00:00</updated>
<author>
<name>Benjamin Tissoires</name>
<email>bentiss@kernel.org</email>
</author>
<published>2024-06-26T13:46:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9acbb7ba4589d4715141d4e14230a828ddc95f3d'/>
<id>urn:sha1:9acbb7ba4589d4715141d4e14230a828ddc95f3d</id>
<content type='text'>
This is the same logic than hid_hw_raw_request or hid_hw_output_report:
we can allow hid_bpf_try_input_report to be called from a hook on
hid_input_report if we ensure that the call can not be made twice in a
row.

There is one extra subtlety in which there is a lock in hid_input_report.
But given that we can detect if we are already in the hook, we can notify
hid_input_report to not take the lock. This is done by checking if
ctx_kern data is valid or null, and if it is equal to the dedicated
incoming data buffer.

In order to have more control on whether the lock needs to be taken or not
we introduce a new kfunc for it: hid_bpf_try_input_report()

Link: https://patch.msgid.link/20240626-hid_hw_req_bpf-v2-11-cfd60fb6c79f@kernel.org
Acked-by: Jiri Kosina &lt;jkosina@suse.com&gt;
Signed-off-by: Benjamin Tissoires &lt;bentiss@kernel.org&gt;
</content>
</entry>
<entry>
<title>Documentation: HID: add a small blurb on udev-hid-bpf</title>
<updated>2024-06-14T09:20:20+00:00</updated>
<author>
<name>Benjamin Tissoires</name>
<email>bentiss@kernel.org</email>
</author>
<published>2024-06-08T09:01:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5f42e19de53faf9e6d4455638f75b7c3a3f8d58f'/>
<id>urn:sha1:5f42e19de53faf9e6d4455638f75b7c3a3f8d58f</id>
<content type='text'>
This is the current decision we took: we don't provide automatic loading
of HID-BPF by the kernel directly, but rely on an external tool for it.

This tool is currently udev-hid-bpf, so let's make people aware of it.

Link: https://lore.kernel.org/r/20240608-hid_bpf_struct_ops-v3-11-6ac6ade58329@kernel.org
Signed-off-by: Benjamin Tissoires &lt;bentiss@kernel.org&gt;
</content>
</entry>
<entry>
<title>Documentation: HID: amend HID-BPF for struct_ops</title>
<updated>2024-06-14T09:20:20+00:00</updated>
<author>
<name>Benjamin Tissoires</name>
<email>bentiss@kernel.org</email>
</author>
<published>2024-06-08T09:01:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c5958697a5fa29d3ba9332205a88725afe9ed912'/>
<id>urn:sha1:c5958697a5fa29d3ba9332205a88725afe9ed912</id>
<content type='text'>
Now that we are using struct_ops, the docs need to be changed.

Link: https://lore.kernel.org/r/20240608-hid_bpf_struct_ops-v3-10-6ac6ade58329@kernel.org
Signed-off-by: Benjamin Tissoires &lt;bentiss@kernel.org&gt;
</content>
</entry>
<entry>
<title>Merge branch 'for-6.10/intel-ish' into for-linus</title>
<updated>2024-05-14T11:53:15+00:00</updated>
<author>
<name>Jiri Kosina</name>
<email>jkosina@suse.com</email>
</author>
<published>2024-05-14T11:53:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=611d9ca7ff58c0b0e3a25430a7ffe86bb201242f'/>
<id>urn:sha1:611d9ca7ff58c0b0e3a25430a7ffe86bb201242f</id>
<content type='text'>
- Implement loading firmware from host in intel-ish driver, needed
  to support Lunar Lake and later (Zhang Lixu)
</content>
</entry>
<entry>
<title>Documentation: hid: intel-ish-hid: add section for firmware loading</title>
<updated>2024-05-06T21:33:54+00:00</updated>
<author>
<name>Qianru Huang</name>
<email>qianru.huang@intel.com</email>
</author>
<published>2024-05-06T01:30:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f7ae3091a9e208ee94260382027d19456205dbe0'/>
<id>urn:sha1:f7ae3091a9e208ee94260382027d19456205dbe0</id>
<content type='text'>
Add a section to describe the ISH firmware loading process for Lunar Lake
and later generations.

Signed-off-by: Qianru Huang &lt;qianru.huang@intel.com&gt;
Signed-off-by: Zhang Lixu &lt;lixu.zhang@intel.com&gt;
Acked-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.com&gt;
</content>
</entry>
<entry>
<title>Documentation: hid: intel-ish-hid: remove section numbering</title>
<updated>2024-05-06T21:33:54+00:00</updated>
<author>
<name>Qianru Huang</name>
<email>qianru.huang@intel.com</email>
</author>
<published>2024-05-06T01:30:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=806a4c35d7970768915cdaee3ef0ca463a0b7fc5'/>
<id>urn:sha1:806a4c35d7970768915cdaee3ef0ca463a0b7fc5</id>
<content type='text'>
Remove section numbering from the Intel Integrated Sensor Hub (ISH)
documentation to simplify the structure, making it easier to maintain
and update in the future.

Suggested-by: Andy Shevchenko &lt;andriy.shevchenko@intel.com&gt;
Signed-off-by: Qianru Huang &lt;qianru.huang@intel.com&gt;
Signed-off-by: Zhang Lixu &lt;lixu.zhang@intel.com&gt;
Reviewed-by: Andy Shevchenko &lt;andriy.shevchenko@linux.intel.com&gt;
Acked-by: Srinivas Pandruvada &lt;srinivas.pandruvada@linux.intel.com&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.com&gt;
</content>
</entry>
<entry>
<title>HID: bpf: allow to inject HID event from BPF</title>
<updated>2024-04-10T14:38:11+00:00</updated>
<author>
<name>Benjamin Tissoires</name>
<email>bentiss@kernel.org</email>
</author>
<published>2024-03-15T14:44:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=9be50ac30a83896a753ab9f64e941763bb7900be'/>
<id>urn:sha1:9be50ac30a83896a753ab9f64e941763bb7900be</id>
<content type='text'>
It can be interesting to inject events from BPF as if the event were
to come from the device.
For example, some multitouch devices do not all the time send a proximity
out event, and we might want to send it for the physical device.

Compared to uhid, we can now inject events on any physical device, not
just uhid virtual ones.

Link: https://lore.kernel.org/r/20240315-b4-hid-bpf-new-funcs-v4-5-079c282469d3@kernel.org
Signed-off-by: Benjamin Tissoires &lt;bentiss@kernel.org&gt;
</content>
</entry>
<entry>
<title>HID: bpf: export hid_hw_output_report as a BPF kfunc</title>
<updated>2024-04-10T14:37:14+00:00</updated>
<author>
<name>Benjamin Tissoires</name>
<email>bentiss@kernel.org</email>
</author>
<published>2024-03-15T14:44:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=5599f80196612efde96dbe6ef18f6ecc0cb4ba19'/>
<id>urn:sha1:5599f80196612efde96dbe6ef18f6ecc0cb4ba19</id>
<content type='text'>
We currently only export hid_hw_raw_request() as a BPF kfunc.
However, some devices require an explicit write on the Output Report
instead of the use of the control channel.

So also export hid_hw_output_report to BPF

Link: https://lore.kernel.org/r/20240315-b4-hid-bpf-new-funcs-v4-2-079c282469d3@kernel.org
Signed-off-by: Benjamin Tissoires &lt;bentiss@kernel.org&gt;
</content>
</entry>
<entry>
<title>HID: Add introduction about HID for non-kernel programmers</title>
<updated>2023-08-07T11:24:36+00:00</updated>
<author>
<name>Marco Morandini</name>
<email>marco.morandini@polimi.it</email>
</author>
<published>2023-07-17T16:40:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=2326dee41c01c8d31574a62045fb1c5f242885f0'/>
<id>urn:sha1:2326dee41c01c8d31574a62045fb1c5f242885f0</id>
<content type='text'>
Add an introduction about HID meant for the casual programmer
that is trying either to fix his device or to understand
what is going wrong.

Signed-off-by: Marco Morandini &lt;marco.morandini@polimi.it&gt;
Co-authored-by: Peter Hutterer &lt;peter.hutterer@who-t.net&gt;
Signed-off-by: Jiri Kosina &lt;jkosina@suse.cz&gt;
</content>
</entry>
</feed>
