All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] HID: add battery driver for the UNCTRL RAGE Wireless Mouse
@ 2026-10-12 21:13 ` Bishwa Bhusan Saha
  0 siblings, 0 replies; 14+ messages in thread
From: Bishwa Bhusan Saha via B4 Relay @ 2026-10-12 21:13 UTC (permalink / raw)
  To: Jiri Kosina, Benjamin Tissoires
  Cc: linux-input, linux-kernel, Bishwa Bhusan Saha

This patchset adds battery reporting for the UNCTRL RAGE Wireless Mouse.
Parts of the driver are inspired by the Kysona HID driver
(drivers/hid/hid-kysona.c).

It was tested on an UNCTRL RAGE Wireless Mouse.

Signed-off-by: Bishwa Bhusan Saha <contact@bishwasaha.com>
---
Changes in v2:
- restructure the battery handover to fix the races found in review
- register the replacement supply before the previous owner is torn down,
  so a failed registration cannot leave the mouse batteryless
- deliver the probe-time query reply with hid_device_io_start()
- schedule the polling on the freezable workqueue, no CPU wake during
  suspend
- Link to v1: https://patch.msgid.link/20261013-b4-unctrl-m1-battery-v1-0-4a50203b7177@bishwasaha.com

To: Jiri Kosina <jikos@kernel.org>
To: Benjamin Tissoires <bentiss@kernel.org>
Cc: linux-input@vger.kernel.org
Cc: linux-kernel@vger.kernel.org

---
Bishwa Bhusan Saha (5):
      HID: add IDs for UNCTRL RAGE Mouse
      HID: UNCTRL: add basic battery reporting for UNCTRL RAGE Mouse
      HID: UNCTRL: add periodic battery reporting using a workqueue
      HID: UNCTRL: keep a single battery when a mouse has multiple connections
      HID: UNCTRL: only report to userspace on battery changes

 drivers/hid/Kconfig         |   8 +
 drivers/hid/Makefile        |   1 +
 drivers/hid/hid-ids.h       |   2 +
 drivers/hid/hid-unctrl-m1.c | 436 ++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 447 insertions(+)
---
base-commit: 145c2b2e9a5c0f794fb4009bcb072ab19f8ccfcd
change-id: 20261013-b4-unctrl-m1-battery-4afbaf17c0ea

Best regards,
--  
Bishwa Bhusan Saha <contact@bishwasaha.com>



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2026-10-12 21:27 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-12 21:13 [PATCH v2 0/5] HID: add battery driver for the UNCTRL RAGE Wireless Mouse Bishwa Bhusan Saha via B4 Relay
2026-10-12 21:13 ` Bishwa Bhusan Saha
2026-10-12 21:13 ` [PATCH v2 1/5] HID: add IDs for UNCTRL RAGE Mouse Bishwa Bhusan Saha via B4 Relay
2026-10-12 21:13   ` Bishwa Bhusan Saha
2026-10-12 21:13 ` [PATCH v2 2/5] HID: UNCTRL: add basic battery reporting " Bishwa Bhusan Saha via B4 Relay
2026-10-12 21:13   ` Bishwa Bhusan Saha
2026-10-12 21:20   ` sashiko-bot
2026-10-12 21:13 ` [PATCH v2 3/5] HID: UNCTRL: add periodic battery reporting using a workqueue Bishwa Bhusan Saha via B4 Relay
2026-10-12 21:13   ` Bishwa Bhusan Saha
2026-10-12 21:13 ` [PATCH v2 4/5] HID: UNCTRL: keep a single battery when a mouse has multiple connections Bishwa Bhusan Saha via B4 Relay
2026-10-12 21:13   ` Bishwa Bhusan Saha
2026-10-12 21:27   ` sashiko-bot
2026-10-12 21:14 ` [PATCH v2 5/5] HID: UNCTRL: only report to userspace on battery changes Bishwa Bhusan Saha via B4 Relay
2026-10-12 21:14   ` Bishwa Bhusan Saha

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.