From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795963078; b=mwwh4AIxVfWPZQdjStpzyLjBUuqhIwaGzDjOaQCZ5vTY8Ugvw7tntoeDrC1eWcHQc1hr B+Zjd+SxMmzHQ6yN3JNl8Xbhihpg9fh7LbWkpkXI/lArVCKfo0w2FGLUd9PpanpYWdpRJ nfIChf52GDMp67O7LBxXXkAfXOk5RXcJjDpScUkRI8/ghGWzSbhW//BQPTHVXuHvWUz9a UeIXKaX0TzUCOALLZPdoNYAvXpnv2N9iwLKSCKzN0alN8kCH+2oSuB3ViCzslBX/NxtFQ OFZb1wGT8bFbHn96tDz4GU2J94w+SOff4X54D0+BiT3SeBgKvtK+WY+MPnDBipP+ryg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795963078; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Message-ID:Subject: From:To:Cc:Date:In-Reply-To:References:Content-Type: Content-Transfer-Encoding:User-Agent:MIME-Version; bh=yTx5A0WGM+CjoUwBNYsy71kLoSeZwrX7Qw/UlBDVPkY=; b=dnFKHCNNo9bg4fsgJqUZppLFYZ9/i4ZNcYn3Z/pFfKhoqbuCNhBtzooxRm8ettQ1ARGw XGDJ3tV5qGu6GA3mVxzWEmQI70sZ4sXZ3pXdnfPf1N9q0MmU2IliGvQp172BfpGWRjerb 5BPCLMipbSo4Xd03tXG2tey/FW+A7fq7ztUH9ZupAjwsnGw9PhiC00HL0957k+PYTXcVk SCdi1XFrwxzKycaokWigMz6bIm8T/zgSdJEuJuAkSZ8xVDndizEFt4D+mJmCTxz00kGi2 NvxOIyqYOjECzsR59hyd2D4l9GozPth1G6osxmfjZaLxTuxDj9BQStQ4QAywl2mU4JQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=DYoVs9a+; arc=none smtp.remote-ip=192.198.163.17 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 113F3606A31C; Sun, 29 Nov 2026 14:37:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 113F3606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=DYoVs9a+ DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795963077; x=1827499077; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=7yvSKQw04kQnhm4KSzL/jdv9Nc1J9+iiud0z165+BCk=; b=DYoVs9a++mD5EfdmpxqicU06ngHV+w1vBTpv8TLiJ9CZYJ2MmosfdBr6 XZJm7Jnh+m/3wwR11sUK2bmTqSzoDSGqwlfRLy1HdZ4v3VBxBTsqJn4Kr j+s6il+62qKZM6z0Tuv39+D9xUTUMfnzXmNhEwnjl8m85al3CXloyFNYa 95CByV95t2QA9wviRS+Uw98fDvlvDqmR5b7Qr6RrzSdtiwNeNW49kOhc3 oa8MnVFzbytk7X/yssvFKolhKgEM2RUErW1rdqdqx7UlEvfuFR/PmBbg4 i84fBUADnT+1BtPJLwYA8tD79kecVClIzC2H/Wl+Eq9VMRR99DPM1ZEE5 A==; X-CSE-ConnectionGUID: 22KW21lsQpiIT1i6FDhgRg== X-CSE-MsgGUID: /ZZ+wyRwQvyTx4PC6+vApg== X-IronPort-AV: E=McAfee;i="6800,10657,11981"; a="4796966" X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="4796966" Received: from fmviesa011.fm.intel.com ([10.60.135.151]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 06:37:57 -0800 X-CSE-ConnectionGUID: r2KAxTGWS5+GxZ4Nc4WQ/g== X-CSE-MsgGUID: RZ3IhjNoQL6XdgPomFlbXw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="14485536" Received: from spandruv-mobl5.amr.corp.intel.com (HELO [10.124.221.96]) ([10.124.221.96]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 06:37:55 -0800 Message-ID: Subject: Re: iio: hid-sensor-trigger: unclamped msleep_interruptible(poll_value * 2) stalls runtime PM for hours on Chicony 04F2:B872 secondary proximity sensor From: Srinivas Pandruvada To: Shan Rizvi , Jonathan Cameron , Jiri Kosina , Benjamin Tissoires Cc: linux-iio@vger.kernel.org, linux-input@vger.kernel.org Date: Sun, 29 Nov 2026 06:37:54 -0800 In-Reply-To: <179591783777.39.15448655394533903125@rizvi.nu> References: <179591783777.39.15448655394533903125@rizvi.nu> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.60.2 (3.60.2-3.fc44) X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 On Sat, 2026-11-28 at 21:03 -0500, Shan Rizvi wrote: > Hi Jonathan, Srinivas, Jiri, Benjamin, and all, >=20 > On an HP OmniBook X Flip Laptop 16-cc0xxx (board HP 8EA2, BIOS Insyde > F.07), the integrated USB 2.0 camera (04f2:b872, "SunplusIT Inc HP > 5MP > Camera", interface 1-1:1.4) binds hid-sensor-hub and exposes two > hid_sensor_prox (HID-SENSOR-200011) IIO devices: >=20 > =C2=A0 1. iio:device0 (HID-SENSOR-200011.3.auto) > =C2=A0=C2=A0=C2=A0=C2=A0 - Physical 0x20:0x11 inside standard Sensor Appl= ication > 0x20:0x01 > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (REPORT_ID 1). > =C2=A0=C2=A0=C2=A0=C2=A0 - in_proximity0_sampling_frequency =3D 10.000000= Hz (100 ms). > =C2=A0=C2=A0=C2=A0=C2=A0 - Works normally (live presence, distance, and a= ttention > readings). >=20 > =C2=A0 2. iio:device2 (HID-SENSOR-200011.6.auto) > =C2=A0=C2=A0=C2=A0=C2=A0 - Physical 0x20:0x11 nested inside Vendor-Define= d Application > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Collection 0xff00:0x01 (HID-SENSOR-f= f000001.5.auto, REPORT_ID > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 17, 19, 18). > =C2=A0=C2=A0=C2=A0=C2=A0 - in_{proximity0,proximity1,attention}_sampling_= frequency =3D > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0.000100 Hz. A huge value for report interval. One report per 10K seconds. Not sure why add this optional field here. > =C2=A0=C2=A0=C2=A0=C2=A0 - Reading any value channel stalls runtime PM fo= r hours and > wedges > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 any second concurrent reader in unki= llable D-state inside > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rpm_resume(). >=20 > Root cause > ---------- > In drivers/iio/common/hid-sensors/hid-sensor-trigger.c, > _hid_sensor_power_state() (lines 106, 146-147 on mainline master) > does: >=20 > =C2=A0=C2=A0=C2=A0 poll_value =3D hid_sensor_read_poll_value(st); > =C2=A0=C2=A0=C2=A0 ... > =C2=A0=C2=A0=C2=A0 if (state && poll_value) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 msleep_interruptible(poll_valu= e * 2); >=20 I think hung task warning when task is uninterruptible state: : Say Y here to enable the kernel to detect 'hung tasks', which are bugs that cause the task to be stuck in uninterruptible 'D' state indefinitely." " Anyway negative value check will not help, but should be added. We can break msleep to 1 second loop to avoid hung task. But "cat" will still wait for very long time here. Try this: Replace: if (state && poll_value) msleep_interruptible(poll_value * 2); with if (state && poll_value > 0) { unsigned long max_sleep_ms =3D 120 * MSEC_PER_SEC; unsigned long sleep_ms; if (IS_ENABLED(CONFIG_DETECT_HUNG_TASK) && CONFIG_DEFAULT_HUNG_TASK_TIMEOUT > 0) max_sleep_ms =3D CONFIG_DEFAULT_HUNG_TASK_TIMEOUT * MSEC_PER_SEC; if (poll_value * 2 > max_sleep_ms) return -EIO; sleep_ms =3D min_t(u64, (u64)poll_value * 2, max_sleep_ms); msleep_interruptible(sleep_ms); } Thanks, Srinivas > There is no upper bound on poll_value * 2 (and checking poll_value > rather than poll_value > 0 would also pass a negative error such as > -EINVAL as a huge unsigned millisecond count to > msleep_interruptible()). >=20 > On iio:device2, REPORT_ID 17 defines 0x20:0x30e (Property: Report > Interval, 32-bit, unit=3D0 -> ms, max=3D2147483647) and the device > reports > sampling_frequency =3D 0.000100 Hz, corresponding to a poll_value in > [5,000,001 .. 10,000,000] ms (1.39 to 2.78 hours). When a reader > triggers hid_sensor_runtime_resume(): >=20 > =C2=A0 - Reader 1 enters hid_sensor_runtime_resume() -> > =C2=A0=C2=A0=C2=A0 _hid_sensor_power_state(st, true) while dev->power.run= time_status > =C2=A0=C2=A0=C2=A0 is RPM_RESUMING, and sleeps in msleep_interruptible(po= ll_value * > 2) > =C2=A0=C2=A0=C2=A0 for 2.78 to 5.56 hours (TASK_INTERRUPTIBLE). > =C2=A0 - Any concurrent Reader 2 (e.g., a second sysfs read or sensor > =C2=A0=C2=A0=C2=A0 daemon) enters prox_read_raw() -> hid_sensor_power_sta= te() -> > =C2=A0=C2=A0=C2=A0 __pm_runtime_resume() -> rpm_resume(), sees RPM_RESUMI= NG, and > =C2=A0=C2=A0=C2=A0 sleeps on &dev->power.wait_queue in TASK_UNINTERRUPTIB= LE (D- > state) > =C2=A0=C2=A0=C2=A0 until Reader 1's multi-hour sleep completes or is sign= aled. >=20 > In our observation on Nov 27, a concurrent cat (pid 858946) started > around 19:46 EST and hung in unkillable D-state for ~2h 14m > (triggering > 10 hung-task warnings from 19:49:05 at 122s through 20:07:30 at > 1228s) > until system s2idle entry at 22:00:43, when the userspace freezer > signaled Reader 1 out of msleep_interruptible(), completed > rpm_resume(), > and unblocked pid 858946 (freezing completed in 0.039s). >=20 > Environment > ----------- > - Machine: HP OmniBook X Flip Laptop 16-cc0xxx (board HP 8EA2 rev > 61.26, > =C2=A0 SKU D31MPUA#ABA, BIOS Insyde F.07 08/31/2026) > - Kernel: Linux 7.2.15-4-omarchy #1 SMP PREEMPT_DYNAMIC x86_64 > =C2=A0 (untainted; downstream Arch/Omarchy kernel with out-of-tree > BORE/ADIOS > =C2=A0 schedulers; hid-sensor-trigger/prox/hub behavior matches current > =C2=A0 mainline drivers/iio/common/hid-sensors/hid-sensor-trigger.c:146- > 147 > =C2=A0 and I am happy to retest on vanilla mainline/rc or a test patch) > - Modules (srcversion): > =C2=A0=C2=A0=C2=A0 hid_sensor_trigger:=C2=A0=C2=A0=C2=A0 DC4B969EEA8A8985= CCBB823 > =C2=A0=C2=A0=C2=A0 hid_sensor_iio_common: 7B46F870DC1767B69877366 > =C2=A0=C2=A0=C2=A0 hid_sensor_prox:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 A= 2D3710A71BC0FCE010B937 > =C2=A0=C2=A0=C2=A0 hid_sensor_hub:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 B81ADED19C3243EFB66F46B > - USB device 1-1 / interface 1-1:1.4: > =C2=A0=C2=A0=C2=A0 idVendor=3D04f2, idProduct=3Db872, bcdDevice=3D10.20 > =C2=A0=C2=A0=C2=A0 manufacturer=3D"SunplusIT Inc", product=3D"HP 5MP Came= ra" > =C2=A0=C2=A0=C2=A0 MODALIAS=3Dusb:v04F2pB872d1020dcEFdsc02dp01ic03isc00ip= 00in04 >=20 > HID report descriptor summary (1,846 bytes) > ------------------------------------------- > (Full hex dump attached as 04f2-b872-report-descriptor.hex.) >=20 > =C2=A0 COLLECTION(Application) [0xff1b:0x8000]=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 # HID-SENSOR- > ff1b8000.1.auto > =C2=A0 COLLECTION(Application) [0x20:0x01]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # HID-SENSOR- > 200001.2.auto > =C2=A0=C2=A0=C2=A0 REPORT_ID 1 (0x01) > =C2=A0=C2=A0=C2=A0 COLLECTION(Physical) [0x20:0x11]=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # HID-SENSOR- > 200011.3.auto (iio:device0, 10.000000 Hz) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Logical 0x20:0x309 (Property: Sensor Conne= ction Type) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Logical 0x20:0x31f (Property: Human Presen= ce Detection Type) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Logical 0x20:0x316 (Property: Reporting St= ate) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Logical 0x20:0x319 (Property: Power State) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Feature 0x20:0x30e (Property: Report Inter= val, 32-bit, unit=3D0, > max=3D2147483647) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Input=C2=A0=C2=A0 0x20:0x4b1 (Human Presen= ce), 0x20:0x4b2 (Human > Proximity Range) > =C2=A0 COLLECTION(Physical) [0x20:0x41]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # HID-SENSOR- > 200041.4.auto (iio:device1, ALS) > =C2=A0 COLLECTION(Application) [0xff00:0x01]=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 # HID-SENSOR- > ff000001.5.auto (vendor-defined) > =C2=A0=C2=A0=C2=A0 REPORT_ID 17 (0x11) > =C2=A0=C2=A0=C2=A0 COLLECTION(Physical) [0x20:0x11]=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 # HID-SENSOR- > 200011.6.auto (iio:device2, 0.000100 Hz) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Logical 0x20:0x309 (Property: Sensor Conne= ction Type) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Logical 0x20:0x319 (Property: Power State) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Logical 0x20:0x31f (Property: Human Presen= ce Detection Type) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Logical 0x20:0x316 (Property: Reporting St= ate) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Feature 0x20:0x30e (Property: Report Inter= val, 32-bit, unit=3D0, > max=3D2147483647) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 REPORT_ID 19 (0x13), REPORT_ID 18 (0x12) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Input=C2=A0=C2=A0 0x20:0x4b1 (Human Presen= ce), 0x20:0x4b2 (Human > Proximity Range) > =C2=A0 COLLECTION(Application) [0xff99:0x01]=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 # HID-SENSOR- > ff990001.7.auto >=20 > Reproduction > ------------ > 1. Start Reader 1 on iio:device2 (it stalls in msleep_interruptible() > =C2=A0=C2=A0 holding RPM_RESUMING): > =C2=A0=C2=A0=C2=A0=C2=A0 cat /sys/bus/iio/devices/iio:device2/in_proximit= y0_raw & > 2. Start Reader 2 concurrently: > =C2=A0=C2=A0=C2=A0=C2=A0 cat /sys/bus/iio/devices/iio:device2/in_proximit= y0_raw > =C2=A0=C2=A0 Reader 2 enters uninterruptible D-state in rpm_resume() > (unkillable > =C2=A0=C2=A0 by SIGKILL until Reader 1 is killed/signaled or the multi-ho= ur > sleep > =C2=A0=C2=A0 expires). >=20 > Hung-task call trace (Reader 2, pid 858946) > ------------------------------------------- > Nov 27 19:49:05 sophia kernel: INFO: task cat:858946 blocked for more > than 122 seconds. > Nov 27 19:49:05 sophia kernel:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Not ta= inted 7.2.15-4-omarchy #1 > Nov 27 19:49:05 sophia kernel: "echo 0 > > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > Nov 27 19:49:05 sophia kernel: task:cat=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 state:D > stack:0=C2=A0=C2=A0=C2=A0=C2=A0 pid:858946 tgid:858946 ppid:858816 task_f= lags:0x400000 > flags:0x00080000 > Nov 27 19:49:05 sophia kernel: Call Trace: > Nov 27 19:49:05 sophia kernel:=C2=A0 > Nov 27 19:49:05 sophia kernel:=C2=A0 __schedule+0x40f/0x1780 > Nov 27 19:49:05 sophia kernel:=C2=A0 schedule+0x27/0xa0 > Nov 27 19:49:05 sophia kernel:=C2=A0 rpm_resume+0x1cf/0x860 > Nov 27 19:49:05 sophia kernel:=C2=A0 ? > __pfx_autoremove_wake_function+0x10/0x10 > Nov 27 19:49:05 sophia kernel:=C2=A0 __pm_runtime_resume+0x52/0x90 > Nov 27 19:49:05 sophia kernel:=C2=A0 hid_sensor_power_state+0x55/0xe0 > [hid_sensor_trigger 377a49e4e9428c72b857ea6ddd3ff77490c88f22] > Nov 27 19:49:05 sophia kernel:=C2=A0 prox_read_raw+0x159/0x350 > [hid_sensor_prox 791fda5099b57d4de72068c9268ea72b5ae63472] > Nov 27 19:49:05 sophia kernel:=C2=A0 iio_read_channel_info+0x1b3/0x3f0 > [industrialio df90c867801c29de6d58c14a6d53db307f32a0b7] > Nov 27 19:49:05 sophia kernel:=C2=A0 ? __kvmalloc_node_noprof+0x674/0x7d0 > Nov 27 19:49:05 sophia kernel:=C2=A0 dev_attr_show+0x1f/0x50 > Nov 27 19:49:05 sophia kernel:=C2=A0 sysfs_kf_seq_show+0xa8/0x110 > Nov 27 19:49:05 sophia kernel:=C2=A0 seq_read_iter+0x131/0x4c0 > Nov 27 19:49:05 sophia kernel:=C2=A0 ? security_file_permission+0x55/0x17= 0 > Nov 27 19:49:05 sophia kernel:=C2=A0 vfs_read+0x375/0x600 > Nov 27 19:49:05 sophia kernel:=C2=A0 __x64_sys_read+0x7e/0x110 > Nov 27 19:49:05 sophia kernel:=C2=A0 do_syscall_64+0xaa/0x630 > Nov 27 19:49:05 sophia kernel:=C2=A0 ? do_syscall_64+0xaa/0x630 > Nov 27 19:49:05 sophia kernel:=C2=A0 ? handle_mm_fault+0x1dd/0x2c0 > Nov 27 19:49:05 sophia kernel:=C2=A0 ? do_syscall_64+0x5f/0x630 > Nov 27 19:49:05 sophia kernel:=C2=A0 ? exc_page_fault+0x90/0x1c0 > Nov 27 19:49:05 sophia kernel:=C2=A0 > entry_SYSCALL_64_after_hwframe+0x76/0x7e > Nov 27 19:49:05 sophia kernel: RIP: 0033:0x7f4d25511b0d > [registers omitted] > Nov 27 19:49:05 sophia kernel:=C2=A0 >=20 > Questions / possible fix directions > ----------------------------------- > 1. In drivers/iio/common/hid-sensors/hid-sensor-trigger.c: > =C2=A0=C2=A0 Should _hid_sensor_power_state() check poll_value > 0 (avoid= ing > =C2=A0=C2=A0 huge unsigned sleeps on negative errors) and clamp poll_valu= e * 2 > =C2=A0=C2=A0 to a reasonable upper bound (e.g., min(poll_value * 2, ...))= , so a > =C2=A0=C2=A0 sensor reporting a multi-hour Report Interval cannot hold > =C2=A0=C2=A0 RPM_RESUMING for hours and wedge concurrent readers in D-sta= te? > 2. In drivers/hid/hid-sensor-hub.c: > =C2=A0=C2=A0 Should sensor_hub_probe() skip standard Sensor Physical > collections > =C2=A0=C2=A0 (0x20:*) nested inside vendor-defined Application Collection= s > =C2=A0=C2=A0 (0xff00:0x01), or is a device quirk for 04f2:b872 preferred? >=20 > Happy to attach the raw binary descriptor, test a patch on vanilla > mainline/rc on this hardware, or submit a patch for (1) if you agree > on > an appropriate cap. >=20 > Thanks, > Shan Rizvi