Skip to content

HID: logitech-hidpp: Avoid hidpp_connect_event() running while probe() restarts IO

Hans de Goede linux-input 3 versions – Applied

Status from this message: Applied to https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git (for-6.7/logitech), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest12 patches 4 repliesApplied
  2. v214 patches 5 repliesSuperseded
  3. v12 patches 6 repliesSuperseded

Changes in v3 from the cover letter

- Call hid_connect() to connect the hid-input and hidraw drivers
after retrieving the name + serial instead of restarting IO
- Shuffle the series order to put patches with Fixes tags at the start
- Squash 2 changes to G920 handling into one
- Since probe() now no longer restarts IO the following patches have been dropped:
"HID: logitech-hidpp: Add a hidpp_connect_and_start() helper"
"HID: logitech-hidpp: Move the connected check to after restarting IO" "HID: logitech-hidpp: Avoid hidpp_connect_event() running while probe() restarts IO"
- Add "HID: logitech-hidpp: Drop HIDPP_QUIRK_UNIFYING"

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/12HID: logitech-hidpp: Don't restart IO, instead defer hid_connect() onlydrivers/hid/hid-logitech-hidpp.c+12 -103 replies
2/12HID: logitech-hidpp: Revert "Don't restart communication if not necessary"drivers/hid/hid-logitech-hidpp.c+8 -160 replies
3/12HID: logitech-hidpp: Move get_wireless_feature_index() check to hidpp_connect_event()drivers/hid/hid-logitech-hidpp.c+9 -110 replies
4/12HID: logitech-hidpp: Remove wtp_get_config() call from probe()drivers/hid/hid-logitech-hidpp.c+1 -50 replies
5/12HID: logitech-hidpp: Move g920_get_config() to just before hidpp_ff_init()drivers/hid/hid-logitech-hidpp.c+6 -80 replies
6/12HID: logitech-hidpp: Move hidpp_overwrite_name() to before connect checkdrivers/hid/hid-logitech-hidpp.c+8 -130 replies
7/12HID: logitech-hidpp: Add hidpp_non_unifying_init() helperdrivers/hid/hid-logitech-hidpp.c+10 -80 replies
8/12HID: logitech-hidpp: Remove connected check for non-unifying devicesdrivers/hid/hid-logitech-hidpp.c+0 -70 replies
9/12HID: logitech-hidpp: Remove unused connected param from *_connect()drivers/hid/hid-logitech-hidpp.c+6 -60 replies
10/12HID: logitech-hidpp: Fix connect event racedrivers/hid/hid-logitech-hidpp.c+5 -200 replies
11/12HID: logitech-hidpp: Drop delayed_work_cb()drivers/hid/hid-logitech-hidpp.c+3 -110 replies
12/12HID: logitech-hidpp: Drop HIDPP_QUIRK_UNIFYINGdrivers/hid/hid-logitech-hidpp.c+6 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/12] HID: logitech-hidpp: Avoid hidpp_connect_event() running while probe() restarts IO

Hi Benjamin,

As dicussed here is v3 of my series to rework / cleanup the hidpp probing code.

Note the $subject of the cover-letter is not entirely accurate anymore, but I kept it the same since this is the successor of series with the same subject.

Changes in v3:
- Call hid_connect() to connect the hid-input and hidraw drivers
after retrieving the name + serial instead of restarting IO
- Shuffle the series order to put patches with Fixes tags at the start
- Squash 2 changes to G920 handling into one
- Since probe() now no longer restarts IO the following patches have been dropped:
"HID: logitech-hidpp: Add a hidpp_connect_and_start() helper"
"HID: logitech-hidpp: Move the connected check to after restarting IO" "HID: logitech-hidpp: Avoid hidpp_connect_event() running while probe() restarts IO"
- Add "HID: logitech-hidpp: Drop HIDPP_QUIRK_UNIFYING"

Regards,

Hans

Hans de Goede (12):
HID: logitech-hidpp: Don't restart IO, instead defer hid_connect()
only
HID: logitech-hidpp: Revert "Don't restart communication if not
necessary"
HID: logitech-hidpp: Move get_wireless_feature_index() check to
hidpp_connect_event()
HID: logitech-hidpp: Remove wtp_get_config() call from probe()
HID: logitech-hidpp: Move g920_get_config() to just before

    hidpp_ff_init()

HID: logitech-hidpp: Move hidpp_overwrite_name() to before connect
check
HID: logitech-hidpp: Add hidpp_non_unifying_init() helper
HID: logitech-hidpp: Remove connected check for non-unifying devices
HID: logitech-hidpp: Remove unused connected param from *_connect()
HID: logitech-hidpp: Fix connect event race
HID: logitech-hidpp: Drop delayed_work_cb()
HID: logitech-hidpp: Drop HIDPP_QUIRK_UNIFYING

 drivers/hid/hid-logitech-hidpp.c | 173 +++++++++++--------------------
 1 file changed, 61 insertions(+), 112 deletions(-)
Signature · 1 line
2.41.0