On Sun, 2026-11-29 at 14:18 -0500, Shan Rizvi wrote: > On Sun, 2026-11-29 at 09:54 -0800, Srinivas Pandruvada wrote: > > This may be better. Try the attached: > > That works very cleanly on the HP 8EA2 laptop! > I think I want to fix by setting report interval rather than ignoring that sensor. Try the attached. Thanks, Srinivas > With invalid_sensor.diff applied to hid-sensor-iio-common: > - HID-SENSOR-200011.6.auto (0.000100 Hz) is cleanly rejected at probe >   time before any iio:device is registered: > >     hid-sensor-hub 0003:04F2:B872.0001: Invalid sampling interval, > will cause task hangs >     hid_sensor_prox HID-SENSOR-200011.6.auto: failed to setup common > attributes >     hid_sensor_prox HID-SENSOR-200011.6.auto: probe with driver > hid_sensor_prox failed with error -22 > > - The four real sensors (HID-SENSOR-200011.3.auto 10 Hz prox, >   HID-SENSOR-200041.4.auto ALS, HID-SENSOR-200073.9.auto accel_3d, >   HID-SENSOR-200076.10.auto gyro_3d) all probe and read normally, > with >   no runtime PM underflows and clean module unload/reload. > > Tested-by: Shan Rizvi > > Three minor review notes for the formal patch: > 1. value is s32 (hid-sensor-attributes.c:516), so casting >    (u64)value * 2 >= max_sleep_ms avoids signed 32-bit overflow for >    descriptors with large 32-bit Report Intervals (REPORT_ID 17 here >    declares max=2147483647). > 2. Applying the same upper-bound check in >    hid_sensor_write_samp_freq_value() (and checking poll_value > 0 in >    hid-sensor-trigger.c:_hid_sensor_power_state()) would also prevent >    userspace from configuring a hang-inducing sampling frequency > after >    probe or passing a negative error to msleep_interruptible(). > 3. Minor whitespace nit: "value =\thid_sensor_read_poll_value(st);" > has >    a tab after '='. > > Thanks again for the fast turnaround! > > Shan Rizvi