Re: [PATCH] HID: asus: Resume the device before sending feature reports

From: Jiri Kosina

Date: Thu Nov 19 2026 - 15:52:38 EST


On Tue, 6 Oct 2026, Hans van Essen via B4 Relay wrote:

> From: Hans van Essen <hans@xxxxxxxxxxxx>
>
> asus_kbd_set_report() sends a SET_REPORT control request through
> hid_hw_raw_request(). usbhid does not take a runtime PM reference for
> raw requests, so the request fails while the keyboard is runtime
> suspended. On a ROG Zephyrus G16 (GU605CW, N-KEY 0b05:19b6) with
> power/control set to auto, every deferred backlight change from
> asus_work() is lost:
>
> asus 0003:0B05:19B6.0002: Asus failed to set keyboard backlight: -108
>
> Wrap the request in hid_hw_power(), as hidraw does, so the device is
> resumed for the write and can autosuspend again afterwards.
>
> Assisted-by: LLM
> Signed-off-by: Hans van Essen <hans@xxxxxxxxxxxx>

Applied to hid.git#for-7.4/upstream-fixes, thanks.

--
Jiri Kosina
SUSE Labs