Re: [PATCH 1/2] hwmon: (aquacomputer_d5next) Check if temp sensors of legacy devices are connected

From: Aleksa Savic
Date: Wed Oct 25 2023 - 16:04:45 EST


On 2023-10-25 21:41:00 GMT+02:00, Guenter Roeck wrote:
>
> Why is the sensor instantiated in the first place ?
> Returning -ENODATA for every reading is not desirable.
> If this can happen, the is_visible function should check
> for it and skip affected sensors.
>
> Guenter
>

The external temp sensor(s) are hot-swappable and can be plugged
or unplugged anytime. Similar logic already exists in
aqc_raw_event() for the sensors.

Thanks,
Aleksa