Re: [PATCH HID] selftests/hid: fix kfunc inclusions with newer bpftool

2024-11-29 Thread Benjamin Tissoires
On Thu, 28 Nov 2024 14:27:16 +0100, Benjamin Tissoires wrote: > bpftool now embeds the kfuncs definitions directly in the generated > vmlinux.h > > This is great, but because the selftests dir might be compiled with > HID_BPF disabled, we have no guarantees to be able to compil

Re: [PATCH] selftests: hid: fix typo and exit code

2024-11-28 Thread Benjamin Tissoires
e Cheers, -- Benjamin Tissoires

[PATCH HID] selftests/hid: fix kfunc inclusions with newer bpftool

2024-11-28 Thread Benjamin Tissoires
`__not_used` hack, the newly defined kfuncs do not match the ones from vmlinux.h and things go wrong. Prevent vmlinux.h to define its kfuncs and also add the missing `__weak` symbols for our custom kfuncs definitions Signed-off-by: Benjamin Tissoires --- This was noticed while bumping the CI to fedora

Re: [PATCH] selftest/hid: increase timeout to 10 min

2024-10-30 Thread Benjamin Tissoires
On Oct 29 2024, Shuah Khan wrote: > On 10/29/24 03:07, Yun Lu wrote: > > If running hid testcases with command "./run_kselftest.sh -c hid", > > NIT - When inestead of "If" > > the following tests will take longer than the kselftest framework > > timeout (now 200 seconds) to run and thus got termin

Re: [PATCH v2] selftest: hid: add the missing tests directory

2024-10-16 Thread Benjamin Tissoires
. > > v2: add the error message > > Fixes: ffb85d5c9e80 ("selftests: hid: import hid-tools hid-core tests") > Cc: sta...@vger.kernel.org > Signed-off-by: Yun Lu Acked-by: Benjamin Tissoires Shuah, I guess you'll want to take this one through your tree given tha

Re: [PATCH HID v3 0/9] HID: bpf: add a new hook to control hid-generic

2024-10-04 Thread Benjamin Tissoires
On Tue, 01 Oct 2024 16:30:04 +0200, Benjamin Tissoires wrote: > This is a slight change from the fundamentals of HID-BPF. > In theory, HID-BPF is abstract to the kernel itself, and makes > only changes at the HID level (through report descriptors or > events emitted to/fro

[PATCH HID v3 6/9] selftests/hid: cleanup C tests by adding a common struct uhid_device

2024-10-01 Thread Benjamin Tissoires
Allows to have an abstract class uhid_device which handles all of the uhid part without having to mess up with individual fds. struct attach_prog_args is now never used in hid_bpf.c, so drop it as well Signed-off-by: Benjamin Tissoires --- no changes in v3 no changes in v2 --- tools/testing

[PATCH HID v3 8/9] HID: add per device quirk to force bind to hid-generic

2024-10-01 Thread Benjamin Tissoires
which would unwind everything that is done there. Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 changes in v2: - rely on hdev->quirks for that instead of a new struct for hid_driver --- drivers/hid/hid-core.c| 5 +++-- drivers/hid/hid-generic.c | 3 +++

[PATCH HID v3 7/9] selftests/hid: allow to parametrize bus/vid/pid/rdesc on the test device

2024-10-01 Thread Benjamin Tissoires
This will be useful to introduce variants in tests to test the interactions between HID-BPF and some kernel modules. Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 no changes in v2 --- tools/testing/selftests/hid/hid_bpf.c| 2 +- tools/testing

[PATCH HID v3 5/9] selftests/hid: add dependency on hid_common.h

2024-10-01 Thread Benjamin Tissoires
Allows to recompile the C tests when that file changes Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 no changes in v2 --- tools/testing/selftests/hid/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/hid

[PATCH HID v3 1/9] HID: bpf: move HID-BPF report descriptor fixup earlier

2024-10-01 Thread Benjamin Tissoires
by the new pointer and the new unsigned int we need. In terms of code allocation, when not using HID-BPF, we are back to kernel v6.2 in hid_open_report(). These multiple kmemdup() calls will be fixed in a later commit. Signed-off-by: Benjamin Tissoires --- changes in v3: - consider ->bpf_rdes

[PATCH HID v3 4/9] HID: bpf: allow write access to quirks field in struct hid_device

2024-10-01 Thread Benjamin Tissoires
This allows to give more control from BPF during report descriptor fixup. We already reset the quirks before calling ->probe(), so now we reset it once before calling hid_bpf_rdesc_fixup(). Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 new in

[PATCH HID v3 3/9] HID: core: remove one more kmemdup on .probe()

2024-10-01 Thread Benjamin Tissoires
y: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 new in v2 --- drivers/hid/hid-core.c | 28 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c index 6053e7cdc0c1..b0a22e173502 1006

[PATCH HID v3 2/9] HID: core: save one kmemdup during .probe()

2024-10-01 Thread Benjamin Tissoires
Turns out the first kmemdup is only required for the .report_fixup() driver callback. There is no need to do two kmemdup() in a row in case .report_fixup() is not present. Reviewed-by: Peter Hutterer Signed-off-by: Benjamin Tissoires --- no changes in v3 new in v2 --- drivers/hid/hid-core.c

Re: [PATCH] selftest: hid: add missing run-hid-tools-tests.sh

2024-09-30 Thread Benjamin Tissoires
ls-tests.sh script to the TEST_FILES in the Makefile. > I assume we probably also want: Cc: sta...@vger.kernel.org > Signed-off-by: Yun Lu Not sure about the timing regarding our next PR to Linus, so in any cases: Acked-by: Benjamin Tissoires Cheers, Benjamin > --- > tools/testi

Re: (subset) [PATCH HID v2 00/11] HID: bpf: add a new hook to control hid-generic

2024-09-13 Thread Benjamin Tissoires
On Sep 13 2024, Benjamin Tissoires wrote: > On Sep 13 2024, Benjamin Tissoires wrote: > > On Tue, 10 Sep 2024 23:43:36 +0900, Benjamin Tissoires wrote: > > > This is a slight change from the fundamentals of HID-BPF. > > > In theory, HID-BPF is abstract to the kernel i

Re: (subset) [PATCH HID v2 00/11] HID: bpf: add a new hook to control hid-generic

2024-09-13 Thread Benjamin Tissoires
On Sep 13 2024, Benjamin Tissoires wrote: > On Tue, 10 Sep 2024 23:43:36 +0900, Benjamin Tissoires wrote: > > This is a slight change from the fundamentals of HID-BPF. > > In theory, HID-BPF is abstract to the kernel itself, and makes > > only changes at the HID level (throu

Re: (subset) [PATCH HID v2 00/11] HID: bpf: add a new hook to control hid-generic

2024-09-13 Thread Benjamin Tissoires
On Tue, 10 Sep 2024 23:43:36 +0900, Benjamin Tissoires wrote: > This is a slight change from the fundamentals of HID-BPF. > In theory, HID-BPF is abstract to the kernel itself, and makes > only changes at the HID level (through report descriptors or > events emitted to/fro

[PATCH HID v2 11/11] selftests/hid: add test to disable hid-input

2024-09-10 Thread Benjamin Tissoires
Add a test for the newly enabled feature to control the connect_mask of hid-generic. Signed-off-by: Benjamin Tissoires --- changes in v2: - amended for the new API --- tools/testing/selftests/hid/hid_bpf.c | 60 +- tools/testing/selftests/hid/progs/hid.c

[PATCH HID v2 10/11] HID: add quirk to prevent hid-input to be used

2024-09-10 Thread Benjamin Tissoires
m can load a BPF program that instructs hid-generic to rebind on the device with hidraw only and then open the hidraw node itself. When the application is closed, the BPF program is unloaded and the normal driver takes back the control of the device. Signed-off-by: Benjamin Tissoires --- changes

[PATCH HID v2 09/11] selftests/hid: add test for assigning a given device to hid-generic

2024-09-10 Thread Benjamin Tissoires
We use a well known VID/PID on a driver that doesn't need to talk to the device, ensures we created the device against the target driver, then load our program and ensure we have unbound to this driver and use hid-generic instead. Signed-off-by: Benjamin Tissoires --- changes in v2: - am

[PATCH HID v2 08/11] HID: add per device quirk to force bind to hid-generic

2024-09-10 Thread Benjamin Tissoires
which would unwind everything that is done there. Signed-off-by: Benjamin Tissoires --- changes in v2: - rely on hdev->quirks for that instead of a new struct for hid_driver --- drivers/hid/hid-core.c| 5 +++-- drivers/hid/hid-generic.c | 3 +++ include/linux/hid.h | 2 ++ 3 files ch

[PATCH HID v2 07/11] selftests/hid: allow to parametrize bus/vid/pid/rdesc on the test device

2024-09-10 Thread Benjamin Tissoires
This will be useful to introduce variants in tests to test the interactions between HID-BPF and some kernel modules. Signed-off-by: Benjamin Tissoires --- no changes in v2 --- tools/testing/selftests/hid/hid_bpf.c| 2 +- tools/testing/selftests/hid/hid_common.h | 46

[PATCH HID v2 06/11] selftests/hid: cleanup C tests by adding a common struct uhid_device

2024-09-10 Thread Benjamin Tissoires
Allows to have an abstract class uhid_device which handles all of the uhid part without having to mess up with individual fds. struct attach_prog_args is now never used in hid_bpf.c, so drop it as well Signed-off-by: Benjamin Tissoires --- no changes in v2 --- tools/testing/selftests/hid

[PATCH HID v2 05/11] selftests/hid: add dependency on hid_common.h

2024-09-10 Thread Benjamin Tissoires
Allows to recompile the C tests when that file changes Signed-off-by: Benjamin Tissoires --- no changes in v2 --- tools/testing/selftests/hid/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/hid/Makefile b/tools/testing/selftests/hid

[PATCH HID v2 04/11] HID: bpf: allow write access to quirks field in struct hid_device

2024-09-10 Thread Benjamin Tissoires
This allows to give more control from BPF during report descriptor fixup. We already reset the quirks before calling ->probe(), so now we reset it once before calling hid_bpf_rdesc_fixup(). Signed-off-by: Benjamin Tissoires --- new in v2 --- drivers/hid/bpf/hid_bpf_struct_ops.c |

[PATCH HID v2 03/11] HID: core: remove one more kmemdup on .probe()

2024-09-10 Thread Benjamin Tissoires
That last kmemdup while opening the report descriptor was required to have a common kfree() on it. Move that kmemdup in the only special case it's required (if there is a .report_fixup()), and add a more elaborated check before freeing hdev->rdesc, to avoid a double free. Signed-off-by:

[PATCH HID v2 02/11] HID: core: save one kmemdup during .probe()

2024-09-10 Thread Benjamin Tissoires
Turns out the first kmemdup is only required for the .report_fixup() driver callback. There is no need to do two kmemdup() in a raw in case .report_fixup() is not present. Signed-off-by: Benjamin Tissoires --- new in v2 --- drivers/hid/hid-core.c | 18 +++--- 1 file changed, 11

[PATCH HID v2 01/11] HID: bpf: move HID-BPF report descriptor fixup earlier

2024-09-10 Thread Benjamin Tissoires
int we need. In terms of code allocation, when not using HID-BPF, we are back to kernel v6.2 in hid_open_report(). These multiple kmemdup() calls will be fixed in a later commit. Signed-off-by: Benjamin Tissoires --- new in v2 --- drivers/hid/bpf/hid_bpf_dispatch.c | 8 ++-- drivers/hid/

[PATCH HID v2 00/11] HID: bpf: add a new hook to control hid-generic

2024-09-10 Thread Benjamin Tissoires
[0] https://gitlab.freedesktop.org/libinput/libinput/-/issues/1014 Signed-off-by: Benjamin Tissoires --- Changes in v2: - Refactored the API to not use a new hook but hid_bpf_rdesc_fixup instead - Some cleanups in hid-core.c probe() device to not kmemdup multiple time the report descriptor w

Re: [RESEND 00/25] Rid W=1 warnings from HID

2021-04-08 Thread Benjamin Tissoires
On Thu, Apr 8, 2021 at 9:06 AM Lee Jones wrote: > > On Wed, 07 Apr 2021, Benjamin Tissoires wrote: > > > On Tue, Apr 6, 2021 at 10:56 AM Lee Jones wrote: > > > > > > On Fri, 26 Mar 2021, Lee Jones wrote: > > > > > > > This set is part of a l

Re: [PATCH 06/25] HID: usbhid: Repair a formatting issue in a struct description

2021-04-07 Thread Benjamin Tissoires
On Fri, Mar 26, 2021 at 3:35 PM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/hid/usbhid/usbkbd.c:66: warning: bad line: should be > on > > Cc: Jiri Kosina > Cc: Benjamin Tissoires > Cc: message to > Cc:

Re: [RESEND 00/25] Rid W=1 warnings from HID

2021-04-07 Thread Benjamin Tissoires
On Tue, Apr 6, 2021 at 10:56 AM Lee Jones wrote: > > On Fri, 26 Mar 2021, Lee Jones wrote: > > > This set is part of a larger effort attempting to clean-up W=1 > > kernel builds, which are currently overwhelmingly riddled with > > niggly little warnings. > > > > Lee Jones (25): > > HID: intel-is

Re: [PATCH 0/4] Stylus-on-touchscreen device support

2021-03-08 Thread Benjamin Tissoires
Hi Jiri, On Mon, Mar 8, 2021 at 11:15 AM Jiri Kosina wrote: > > On Wed, 17 Feb 2021, наб wrote: > > > This patchset adds support for stylus-on-touchscreen devices as found on > > the OneMix 3 Pro and Dell Inspiron 15 7000 2-in-1 (7591), among others; > > with it, they properly behave like a drawi

Re: [PATCH 1/2] HID: logitech-dj: add support for the new lightspeed receiver iteration

2021-03-01 Thread Benjamin Tissoires
On Sat, Jan 23, 2021 at 7:03 PM Filipe Laíns wrote: > > From: Filipe Laíns > > Tested with the G Pro X Superlight. libratbag sees the device, as > expected, and input events are passing trough. > > https://github.com/libratbag/libratbag/pull/1122 > > The receiver has a quirk where the moused inte

Re: [PATCH v2 4/4] HID: i2c-hid: acpi: Drop redundant ACPI_PTR()

2021-03-01 Thread Benjamin Tissoires
driver. > > Signed-off-by: Andy Shevchenko Thanks a lot for the series. This indeed cleans things up. For the series: Acked-by: Benjamin Tissoires Jiri, I wonder where we want to land this one. This is not strictly bug fixes, but we could definitively sneak this one in 5.12-rc1. Well, I

Re: [PATCH 3/5] HID: core: Export some report item parsing functions.

2021-03-01 Thread Benjamin Tissoires
On Mon, Mar 1, 2021 at 3:18 PM Andy Shevchenko wrote: > > On Sun, Feb 28, 2021 at 3:30 AM Ronald Tschalär wrote: > > > > These are useful to drivers that need to scan or parse reports > > themselves. > > ... > > > - while ((start = fetch_item(start, end, &item)) != NULL) > > + while (

Re: [PATCH 00/11] HID: playstation: revert LED class exposure

2021-02-18 Thread Benjamin Tissoires
On Wed, Feb 17, 2021 at 6:32 PM Benjamin Tissoires wrote: > > [sending those patches on behalf of Roderick] > > There is a current thread on LED LKML which basically means that > we have to revert the LED class exposure until things are settled. > > I am sending here the full

Re: [PATCH][next] HID: playstation: fix array size comparison (off-by-one)

2021-02-17 Thread Benjamin Tissoires
On Mon, Feb 15, 2021 at 5:39 PM Colin King wrote: > > From: Colin Ian King > > The comparison of value with the array size ps_gamepad_hat_mapping > appears to be off-by-one. Fix this by using >= rather than > for the > size comparison. > > Addresses-Coverity: ("Out-of-bounds read") > Fixes: bc2e1

[PATCH 10/11] HID: playstation: add microphone mute support for DualSense.

2021-02-17 Thread Benjamin Tissoires
and schedules an output report to mute/unmute the audio stream as well as toggle the mute LED. Signed-off-by: Roderick Colenbrander Reviewed-by: Barnabás Pőcze Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-playstation.c | 44 +++ 1 file changed, 44

[PATCH 09/11] HID: playstation: add initial DualSense lightbar support.

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander Provide initial support for the DualSense lightbar and configure it with a default PlayStation blue color. Signed-off-by: Roderick Colenbrander Reviewed-by: Barnabás Pőcze Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-playstation.c | 65

[PATCH 11/11] HID: playstation: add DualSense player LED support.

2021-02-17 Thread Benjamin Tissoires
original patches minus use of LED framework APIs: - HID: playstation: add DualSense player LEDs support. - HID: playstation: DualSense set LEDs to default player id. Signed-off-by: Roderick Colenbrander Reviewed-by: Barnabás Pőcze Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-playstation.c

[PATCH 08/11] HID: playstation: fix unused variable in ps_battery_get_property.

2021-02-17 Thread Benjamin Tissoires
From: Roderick Colenbrander The ret variable in ps_battery_get_property is set in an error path, but never actually returned. Change the function to return ret. Reported-by: kernel test robot Signed-off-by: Roderick Colenbrander Signed-off-by: Benjamin Tissoires --- drivers/hid/hid

[PATCH 07/11] HID: playstation: report DualSense hardware and firmware version.

2021-02-17 Thread Benjamin Tissoires
: Barnabás Pőcze Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-playstation.c | 81 +++ 1 file changed, 81 insertions(+) diff --git a/drivers/hid/hid-playstation.c b/drivers/hid/hid-playstation.c index 64193fdeaa0d..84f484fce1ee 100644 --- a/drivers/hid/hid

[PATCH 03/11] Revert "HID: playstation: DualSense set LEDs to default player id."

2021-02-17 Thread Benjamin Tissoires
a big deal, they are still not pushed to Linus. Signed-off-by: Roderick Colenbrander Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-playstation.c | 70 +-- 1 file changed, 1 insertion(+), 69 deletions(-) diff --git a/drivers/hid/hid-playstation.c b/drive

[PATCH 02/11] Revert "HID: playstation: report DualSense hardware and firmware version."

2021-02-17 Thread Benjamin Tissoires
th the new version, we also revert all patches on top of the LED ones. This is not a big deal, they are still not pushed to Linus. Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-playstation.c | 81 --- 1 file changed, 81 deletions(-) diff --git a/drive

[PATCH 06/11] Revert "HID: playstation: add DualSense lightbar support"

2021-02-17 Thread Benjamin Tissoires
, they are still not pushed to Linus. Signed-off-by: Roderick Colenbrander Signed-off-by: Benjamin Tissoires --- drivers/hid/Kconfig | 1 - drivers/hid/hid-playstation.c | 118 -- 2 files changed, 119 deletions(-) diff --git a/drivers/hid/Kconfig b/d

[PATCH 04/11] Revert "HID: playstation: add DualSense player LEDs support."

2021-02-17 Thread Benjamin Tissoires
deal, they are still not pushed to Linus. Signed-off-by: Roderick Colenbrander Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-playstation.c | 60 +-- 1 file changed, 1 insertion(+), 59 deletions(-) diff --git a/drivers/hid/hid-playstation.c b/drive

[PATCH 05/11] Revert "HID: playstation: add microphone mute support for DualSense."

2021-02-17 Thread Benjamin Tissoires
not a big deal, they are still not pushed to Linus. Signed-off-by: Roderick Colenbrander Signed-off-by: Benjamin Tissoires --- drivers/hid/Kconfig | 2 - drivers/hid/hid-playstation.c | 99 --- 2 files changed, 101 deletions(-) diff --git a/drivers/hid

[PATCH 01/11] Revert "HID: playstation: fix unused variable in ps_battery_get_property."

2021-02-17 Thread Benjamin Tissoires
th the new version, we also revert all patches on top of the LED ones. This is not a big deal, they are still not pushed to Linus. Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-playstation.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid-playstation.c

[PATCH 00/11] HID: playstation: revert LED class exposure

2021-02-17 Thread Benjamin Tissoires
ker()` to match was was in linux-next - removed an extra new line to match the current linux-next tree. Cheers, Benjamin Benjamin Tissoires (2): Revert "HID: playstation: fix unused variable in ps_battery_get_property." Revert "HID: playstation: report DualSense hardware and fi

Re: [PATCH] Input: elantech - add LEN2146 to SMBus blacklist for ThinkPad L13 Gen2

2021-02-08 Thread Benjamin Tissoires
Hi Nikolai, On Mon, Feb 8, 2021 at 9:01 AM Nikolai Kostrigin wrote: > > ThinkPad L13 Gen2 has both touchpad and trackpoint. > PNP: LEN2146 PNP0f13 > With the default protocol (elantech-smbus) trackpoint is not operating, > while touchpad does. Changing to elantech renders both operational. > > Si

Re: [PATCH] HID: multitouch: Apply MT_QUIRK_CONFIDENCE quirk for multi-input devices

2021-01-26 Thread Benjamin Tissoires
On Mon, Jan 18, 2021 at 2:45 PM Kai-Heng Feng wrote: > > Palm ejection stops working on some Elan and Synaptics touchpad after > commit 40d5bb87377a ("HID: multitouch: enable multi-input as a quirk for > some devices"). > > The commit changes the mt_class from MT_CLS_WIN_8 to > MT_CLS_WIN_8_FORCE_

Re: [PATCH v9 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2021-01-18 Thread Benjamin Tissoires
On Fri, Jan 15, 2021 at 6:07 PM Douglas Anderson wrote: > > > The goal of this series is to support the Goodix GT7375P touchscreen. > This touchscreen is special because it has power sequencing > requirements that necessitate driving a reset GPIO. > > To do this, we totally rejigger the way i2c-hi

Re: [PATCH] HID: multitouch: Apply MT_QUIRK_CONFIDENCE quirk for multi-input devices

2021-01-18 Thread Benjamin Tissoires
Hi, On Mon, Jan 18, 2021 at 2:45 PM Kai-Heng Feng wrote: > > Palm ejection stops working on some Elan and Synaptics touchpad after > commit 40d5bb87377a ("HID: multitouch: enable multi-input as a quirk for > some devices"). > > The commit changes the mt_class from MT_CLS_WIN_8 to > MT_CLS_WIN_8_F

Re: [PATCH v8 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2021-01-15 Thread Benjamin Tissoires
Hi, On Wed, Jan 13, 2021 at 8:35 PM Benjamin Tissoires wrote: On Wed, Jan 13, 2021 at 5:05 PM Doug Anderson wrote: > > Hi, > > On Wed, Jan 13, 2021 at 7:09 AM Benjamin Tissoires > wrote: > > > > > I wanted to apply the series yesterday, but for these kinds of

Re: [PATCH 4/5] input: touchscreen: surface3_spi: Remove set but unused variable 'timestamp'

2021-01-14 Thread Benjamin Tissoires
> set but not used [-Wunused-but-set-variable] > > Cc: Dmitry Torokhov > Cc: Henrik Rydberg > Cc: Benjamin Tissoires > Cc: linux-in...@vger.kernel.org > Signed-off-by: Lee Jones Reviewed-by: Benjamin Tissoires Thanks for the cleanup :) Cheers, Benjamin > --- >

Re: [PATCH] HID: hid-input: avoid splitting keyboard, system and consumer controls

2021-01-14 Thread Benjamin Tissoires
Hi Dmitry, On Thu, Jan 14, 2021 at 7:24 AM Dmitry Torokhov wrote: > > A typical USB keyboard usually splits its keys into several reports: > > - one for the basic alphanumeric keys, modifier keys, F keys, six pack > keys and keypad. This report's application is normally listed as > GenericDes

Re: [PATCH v8 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2021-01-13 Thread Benjamin Tissoires
On Wed, Jan 13, 2021 at 5:05 PM Doug Anderson wrote: > > Hi, > > On Wed, Jan 13, 2021 at 7:09 AM Benjamin Tissoires > wrote: > > > > > I wanted to apply the series yesterday, but for these kinds of changes > > > I like giving it a spin on actual hardware.

Re: [PATCH v8 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2021-01-13 Thread Benjamin Tissoires
On Fri, Jan 8, 2021 at 6:52 PM Benjamin Tissoires wrote: > > Hi Doug, > > On Wed, Jan 6, 2021 at 2:35 AM Doug Anderson wrote: > > > > Benjamin, > > > > On Fri, Dec 11, 2020 at 2:24 PM Douglas Anderson > > wrote: > > > > > > The goal

Re: [PATCH] Documentation: input: define ABS_PRESSURE/ABS_MT_PRESSURE resolution as grams

2021-01-13 Thread Benjamin Tissoires
rtise false pressure. > > [1] > https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-precision-touchpad-required-hid-top-level-collections#windows-precision-touchpad-input-reports > [2] https://gitlab.freedesktop.org/libinput/libinput/-/issues/562 >

Re: [PATCH v8 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2021-01-08 Thread Benjamin Tissoires
Hi Doug, On Wed, Jan 6, 2021 at 2:35 AM Doug Anderson wrote: > > Benjamin, > > On Fri, Dec 11, 2020 at 2:24 PM Douglas Anderson > wrote: > > > > The goal of this series is to support the Goodix GT7375P touchscreen. > > This touchscreen is special because it has power sequencing > > requirements

Re: [PATCH v6 0/4] HID: i2c-hid: Reorganize to allow supporting goodix,gt7375p

2020-12-02 Thread Benjamin Tissoires
Hi Doug, On Tue, Dec 1, 2020 at 10:12 PM Doug Anderson wrote: > > Hi, > > On Wed, Nov 11, 2020 at 4:41 PM Douglas Anderson > wrote: > > > > The goal of this series is to support the Goodix GT7375P touchscreen. > > This touchscreen is special because it has power sequencing > > requirements that

Re: [PATCH 08/15] input: touchscreen: surface3_spi: Remove set but unused variable 'timestamp'

2020-11-12 Thread Benjamin Tissoires
ess_touch’: > > drivers/input/touchscreen/surface3_spi.c:97:6: warning: variable > > ‘timestamp’ set but not used [-Wunused-but-set-variable] > > > > Cc: Dmitry Torokhov > > Cc: Henrik Rydberg > > Cc: Benjamin Tissoires > > Cc: linux-in...@vger.kernel.

Re: [PATCH v4 1/4] HID: i2c-hid: Reorganize so ACPI and OF are subclasses

2020-11-09 Thread Benjamin Tissoires
e (in a separate commit as that is a behavioral > >> change). > > > > I don't think this is the point of shutdown, but I could be corrected. > > Shutdown isn't really supposed to be the same as driver remove or > > anything. IIUC the main point of shutdo

Re: [PATCH v2] Input: Fix the HID usage of DPAD input event generation.

2020-11-03 Thread Benjamin Tissoires
Hat1Y as the HatDir is 0, even no DPAD > buttons pressed. When you send HID report with D-DPAD buttons with > different state, it doesn't generate any axis events because the HatDir > internally is still 0 regardless the report value of the 4 DPAD usages. That's the part I am

Re: [PATCH v3 2/3] HID: i2c-hid: Allow subclasses of i2c-hid for power sequencing

2020-11-03 Thread Benjamin Tissoires
Hi, On Tue, Nov 3, 2020 at 10:09 AM Hans de Goede wrote: > > Hi, > > On 11/3/20 2:46 AM, Rob Herring wrote: > > On Mon, Nov 2, 2020 at 6:13 PM Douglas Anderson > > wrote: > >> > >> This exports some things from i2c-hid so that we can have a driver > >> that's effectively a subclass of it and th

Re: [PATCH v2] Input: Fix the HID usage of DPAD input event generation.

2020-11-02 Thread Benjamin Tissoires
Hi Chris, On Sun, Nov 1, 2020 at 8:35 PM Chris Ye wrote: > > Generic Desktop DPAD usage is mapped by hid-input, that only the first > DPAD usage maps to usage type EV_ABS and code of an axis. If HID > descriptor has DPAD UP/DOWN/LEFT/RIGHT HID usages and each of usage size > is 1 bit, then only

Re: [PATCH v2 1/3] dt-bindings: HID: i2c-hid: Label this binding as deprecated

2020-10-30 Thread Benjamin Tissoires
On Fri, Oct 30, 2020 at 7:00 PM Rob Herring wrote: > > On Fri, Oct 30, 2020 at 11:51:53AM +0100, Benjamin Tissoires wrote: > > Hi Doug, > > > > Foreword: I was about to say "yeah, whatever" to please Rob for once. > > Read my other reply first... I t

Re: [PATCH v2 3/3] HID: i2c-hid: Support the Goodix GT7375P touchscreen

2020-10-30 Thread Benjamin Tissoires
Hi Doug, On Sat, Oct 24, 2020 at 1:23 AM Douglas Anderson wrote: > > The Goodix GT7375P touchscreen uses i2c-hid so we can support it with > just a few changes to the i2c-hid driver. Specifically this > touchscreen needs to control a reset GPIO during its power sequencing. > > The Goodix timing

Re: [PATCH v2 2/3] dt-bindings: HID: i2c-hid: Introduce bindings for the Goodix GT7375P

2020-10-30 Thread Benjamin Tissoires
@@ -0,0 +1,64 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/goodix,gt7375p.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Goodix GT7375P touchscreen > + >

Re: [PATCH v2 1/3] dt-bindings: HID: i2c-hid: Label this binding as deprecated

2020-10-30 Thread Benjamin Tissoires
Hi Doug, Foreword: I was about to say "yeah, whatever" to please Rob for once. But after re-reading this and more specifically patch 3 of the series, that won't do. More comments inlined. On Sat, Oct 24, 2020 at 1:23 AM Douglas Anderson wrote: > > As pointed out by Rob Herring [1], we should hav

[PATCH] input - elantech: force query XY range after absolute mode

2020-10-13 Thread Benjamin Tissoires
...@vger.kernel.org # 5.3+ Signed-off-by: Benjamin Tissoires --- drivers/input/mouse/elantech.c | 161 +++-- 1 file changed, 91 insertions(+), 70 deletions(-) diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c index 90f8765f9efc..ff8e5fb61dab 100644 --- a

Re: [PATCH v4] HID: core: Sanitize event code and type when mapping input

2020-09-01 Thread Benjamin Tissoires
On Tue, Sep 1, 2020 at 11:52 AM Marc Zyngier wrote: > > When calling into hid_map_usage(), the passed event code is > blindly stored as is, even if it doesn't fit in the associated bitmap. > > This event code can come from a variety of sources, including devices > masquerading as input devices, on

Re: [PATCH v2] HID: core: Sanitize event code and type when mapping input

2020-09-01 Thread Benjamin Tissoires
On Thu, Aug 27, 2020 at 11:33 AM Jiri Kosina wrote: > > On Wed, 26 Aug 2020, Marc Zyngier wrote: > > > When calling into hid_map_usage(), the passed event code is > > blindly stored as is, even if it doesn't fit in the associated bitmap. > > > > This event code can come from a variety of sources,

Re: [PATCH] HID: core: Correctly handle ReportSize being zero

2020-09-01 Thread Benjamin Tissoires
On Tue, Sep 1, 2020 at 10:14 AM Jiri Kosina wrote: > > On Sat, 29 Aug 2020, Marc Zyngier wrote: > > > It appears that a ReportSize value of zero is legal, even if a bit > > non-sensical. Most of the HID code seems to handle that gracefully, > > except when computing the total size in bytes. When f

Re: [PATCH v7] hwmon: add Corsair Commander Pro driver

2020-07-07 Thread Benjamin Tissoires
seem to be in some presets.) > > > > > > This is based on the staging/hwmon tree. > > > > > > Signed-off-by: Marius Zachmann > > > > For my reference: > > > > Reviewed-by: Guenter Roeck > > > > Waiting for Ack from HID mai

Re: [PATCH v4 1/3] input: add to hid_ignore_list

2020-06-24 Thread Benjamin Tissoires
Hi Marius, On Wed, Jun 24, 2020 at 10:16 AM Marius Zachmann wrote: > > Signed-off-by: Marius Zachmann I wasn't Cc-ed on the cover letter (0/3) if any, but there are a few things to improve here (not code wise, I haven't reviewed the series, but on the form). Every commit needs a commit message

Re: linux-next: build failures after merge of the hid tree

2020-06-23 Thread Benjamin Tissoires
[adding Cristian, the author of the patch] On Tue, Jun 23, 2020 at 2:37 AM Stephen Rothwell wrote: > > Hi all, > > On Sun, 21 Jun 2020 14:04:21 +1000 Stephen Rothwell > wrote: > > > > After merging the hid tree, today's linux-next build (x86_64 allmodconfig) > > failed like this: > > > > drive

Re: [PATCH] HID: usbhid: do not sleep when opening device

2020-06-02 Thread Benjamin Tissoires
On Mon, Jun 1, 2020 at 7:13 PM Jiri Kosina wrote: > > On Fri, 29 May 2020, Dmitry Torokhov wrote: > > > > > > > > usbhid tries to give the device 50 milliseconds to drain its > > > > > > > queues > > > > > > > when opening the device, but does it naively by simply sleeping > > > > > > > in open

Re: [PATCH] HID: multitouch: Remove MT_CLS_WIN_8_DUAL

2020-05-27 Thread Benjamin Tissoires
On Wed, May 27, 2020 at 11:24 AM Benjamin Tissoires wrote: > > On Wed, May 27, 2020 at 8:19 AM Kai-Heng Feng > wrote: > > > > > > > > > On May 26, 2020, at 16:43, Benjamin Tissoires > > > wrote: > > > > > > On Tue, May 26, 2020 at

Re: [PATCH] HID: multitouch: enable multi-input as a quirk for some devices

2020-05-27 Thread Benjamin Tissoires
On Wed, May 27, 2020 at 11:22 AM Benjamin Tissoires wrote: > > On Wed, May 27, 2020 at 8:18 AM Kai-Heng Feng > wrote: > > > > > > > > > On May 26, 2020, at 23:07, Benjamin Tissoires > > > wrote: > > > > > > Two touchpad/trackstick

Re: [PATCH] HID: multitouch: Remove MT_CLS_WIN_8_DUAL

2020-05-27 Thread Benjamin Tissoires
On Wed, May 27, 2020 at 8:19 AM Kai-Heng Feng wrote: > > > > > On May 26, 2020, at 16:43, Benjamin Tissoires > > wrote: > > > > On Tue, May 26, 2020 at 10:24 AM Jiri Kosina wrote: > >> > >> On Tue, 14 Apr 2020, Kai-Heng Feng wrote: > >&g

Re: [PATCH] HID: multitouch: enable multi-input as a quirk for some devices

2020-05-27 Thread Benjamin Tissoires
On Wed, May 27, 2020 at 8:18 AM Kai-Heng Feng wrote: > > > > > On May 26, 2020, at 23:07, Benjamin Tissoires > > wrote: > > > > Two touchpad/trackstick combos are currently not behaving properly. > > They define a mouse emulation collection, as per W

[PATCH] HID: multitouch: enable multi-input as a quirk for some devices

2020-05-26 Thread Benjamin Tissoires
for it, and manually add the 2 devices we know about. Link: https://bugzilla.kernel.org/show_bug.cgi?id=207235 Cc: sta...@vger.kernel.org Signed-off-by: Benjamin Tissoires --- drivers/hid/hid-multitouch.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/hid

Re: [PATCH] HID: multitouch: Remove MT_CLS_WIN_8_DUAL

2020-05-26 Thread Benjamin Tissoires
On Tue, May 26, 2020 at 10:24 AM Jiri Kosina wrote: > > On Tue, 14 Apr 2020, Kai-Heng Feng wrote: > > > After commit c23e2043d5f7 ("HID: multitouch: do not filter mice nodes"), > > MT_CLS_WIN_8 also supports mouse nodes, hence make MT_CLS_WIN_8_DUAL > > redundant. > > > > Remove MT_CLS_WIN_8_DUAL

Re: [PATCH v7 3/3] HID: logitech-hidpp: Support WirelessDeviceStatus connect events

2019-10-22 Thread Benjamin Tissoires
Hi Mazin On Sun, Oct 20, 2019 at 6:43 AM Mazin Rezk wrote: > > This patch allows hidpp_report_is_connect_event to support > WirelessDeviceStatus connect events. > > The WirelessDeviceStatus feature index is stored in hidpp_device when > probed. The connect event's fap feature_index is compared ag

Re: [PATCH v7 1/3] HID: logitech-hidpp: Support translations from short to long reports

2019-10-22 Thread Benjamin Tissoires
Hi Mazin, On Sun, Oct 20, 2019 at 6:41 AM Mazin Rezk wrote: > > This patch allows short reports to be translated into long reports. > > hidpp_validate_device now returns a u8 instead of a bool which represents > the supported reports. The corresponding bits (i.e. > HIDPP_REPORT_*_SUPPORTED) are s

Re: [PATCH v3] HID: core: check whether usage page item is after usage id item

2019-10-22 Thread Benjamin Tissoires
Hi Candle, On Mon, Oct 21, 2019 at 9:54 AM Candle Sun wrote: > > Hi, > > > On Mon, Oct 21, 2019 at 3:38 PM Candle Sun wrote: > > > > From: Candle Sun > > > > Upstream commit 58e75155009c ("HID: core: move Usage Page concatenation > > to Main item") adds support for Usage Page item after Usage I

Re: [PATCH v6 2/2] HID: logitech: Support WirelessDeviceStatus connect events

2019-10-18 Thread Benjamin Tissoires
On Mon, Oct 14, 2019 at 8:36 PM Mazin Rezk wrote: > > This patch allows WirelessDeviceStatus (0x1d4b) events to be detected as > connection events in the hid-logitech-hidpp module. > > Devices with HIDPP_QUIRK_WIRELESS_DEVICE_STATUS use WirelessDeviceStatus > instead of traditional connect events.

Re: [PATCH v6 1/2] HID: logitech: Add MX Master over Bluetooth

2019-10-18 Thread Benjamin Tissoires
Hi Mazin, On Mon, Oct 14, 2019 at 8:36 PM Mazin Rezk wrote: > > This patch adds support for the MX Master (b01e and b012) and also adds > foundational code for other Bluetooth LE HID++ devices to be added. > > Some devices do not support short reports and thus have a quirk > (HIDPP_QUIRK_MISSING_

Re: [PATCH v2] HID: i2c-hid: Remove runtime power management

2019-10-18 Thread Benjamin Tissoires
On Wed, Oct 16, 2019 at 5:12 PM Kai-Heng Feng wrote: > > Runtime power management in i2c-hid brings lots of issues, such as: > - When transitioning from display manager to desktop session, i2c-hid > was closed and opened, so the device was set to SLEEP and ON in a short > period. Vendors confirmed

Re: [PATCH v3 0/3] Logitech G920 fixes

2019-10-18 Thread Benjamin Tissoires
y attempt to > trun) as well as missing support for any FF action. > > Thanks, > Andrey Smirnov > > Changes since [v2]: > > - Fixes a buggy validity check "HID: logitech-hidpp: rework > device validation" as pointed out by Benjamin Tisso

Re: [PATCH v2 2/3] HID: logitech-hidpp: rework device validation

2019-10-17 Thread Benjamin Tissoires
On Wed, Oct 16, 2019 at 9:38 PM Andrey Smirnov wrote: > > On Wed, Oct 16, 2019 at 12:24 PM Benjamin Tissoires > wrote: > > > > Hi Andrey, > > > > On Wed, Oct 16, 2019 at 8:30 PM Andrey Smirnov > > wrote: > > > > >

Re: [PATCH v2 2/3] HID: logitech-hidpp: rework device validation

2019-10-16 Thread Benjamin Tissoires
ps://bugzilla.kernel.org/show_bug.cgi?id=204191 > Reported-by: Sam Bazely > Signed-off-by: Andrey Smirnov > Cc: Jiri Kosina > Cc: Benjamin Tissoires > Cc: Henrik Rydberg > Cc: Pierre-Loup A. Griffais > Cc: Austin Palmer > Cc: linux-in.

Re: [PATCH 3/3] HID: logitech-hidpp: add G920 device validation quirk

2019-10-14 Thread Benjamin Tissoires
On Sat, Oct 12, 2019 at 1:33 AM Andrey Smirnov wrote: > > On Fri, Oct 11, 2019 at 3:33 PM Benjamin Tissoires > wrote: > > > > On Fri, Oct 11, 2019 at 9:39 PM Andrey Smirnov > > wrote: > > > > > > On Fri, Oct 11, 2019 at 7:56 AM Benjamin Tissoire

Re: [PATCH 1/3] HID: logitech-hidpp: use devres to manage FF private data

2019-10-14 Thread Benjamin Tissoires
On Sat, Oct 12, 2019 at 1:24 AM Dmitry Torokhov wrote: > > On Sat, Oct 12, 2019 at 12:48:42AM +0200, Benjamin Tissoires wrote: > > On Fri, Oct 11, 2019 at 11:34 PM Dmitry Torokhov > > wrote: > > > > > > On Fri, Oct 11, 2019 at 01:35:09PM -0700, Dmitry Torokhov

Re: [PATCH v5 1/2] HID: logitech: Add MX Master over Bluetooth

2019-10-14 Thread Benjamin Tissoires
gitech-hidpp.c:85:40: note: in expansion of macro > > 'HIDPP_QUIRK_MISSING_SHORT_REPORTS' > > #define HIDPP_QUIRK_CLASS_BLUETOOTH_LE HIDPP_QUIRK_MISSING_SHORT_REPORTS > > ^~~~~ > > drivers//hid/hid-logitech-hidpp.c:3794:5: note: in expan

Re: [PATCH 1/3] HID: logitech-hidpp: use devres to manage FF private data

2019-10-11 Thread Benjamin Tissoires
On Fri, Oct 11, 2019 at 11:34 PM Dmitry Torokhov wrote: > > On Fri, Oct 11, 2019 at 01:35:09PM -0700, Dmitry Torokhov wrote: > > On Fri, Oct 11, 2019 at 01:33:03PM -0700, Dmitry Torokhov wrote: > > > On Fri, Oct 11, 2019 at 09:25:52PM +0200, Benjamin Tissoires wrote: > &g

Re: [PATCH 1/3] HID: logitech-hidpp: use devres to manage FF private data

2019-10-11 Thread Benjamin Tissoires
On Fri, Oct 11, 2019 at 10:33 PM Dmitry Torokhov wrote: > > On Fri, Oct 11, 2019 at 09:25:52PM +0200, Benjamin Tissoires wrote: > > On Fri, Oct 11, 2019 at 8:26 PM Dmitry Torokhov > > wrote: > > > > > > On Fri, Oct 11, 2019 at 04:52:04PM +0200, Benjami

  1   2   3   4   5   6   7   8   9   10   >