Re: [PATCH v2 3/7] HID: sensor: custom: Disable sensor before hub close on removal

From: Joshua Crofts

Date: Thu Nov 05 2026 - 05:25:15 EST


On Wed, 4 Nov 2026 12:13:59 -0800
Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx> wrote:

> When removing an enabled sensor, set its power and reporting states to
> off before closing the hub. Keep the field descriptors alive until the
> state update has completed, and release the hub's open reference.
>
> Fixes: 4a7de0519df5 ("HID: sensor: Custom and Generic sensor support")
> Reported-by: Семён Марьясин <simeon@xxxxxxxxxxxxx>
> Closes: https://lore.kernel.org/all/CAM2dg7ewfVJSP4rFyhkCB1Rmd1+X56sAg=eUdbPthG2xrLqwQQ@xxxxxxxxxxxxxx/
> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>
> ---

Reviewed-by: Joshua Crofts <crofts@xxxxxxxxxx>

--
Kind regards,
Joshua Crofts