Re: [PATCH] mfd: wm8350: propagate ADC read timeout instead of returning 0
Ivy Lopez <[email protected]> Wed, 5 Aug 2026 19:19:50 -0600
| Newsgroups | org.kernel.vger.linux-hwmon,dev.linux.lists.mfd,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pm |
|---|---|
| Message-ID | <[email protected]> |
On 8/5/26, Guenter Roeck wrote: > I am not sure if this warrants fixing in a 17+ year old driver, > unless it is observed to be a real problem. It appears to me that the > error handling was likely not implemented on purpose. > > On top of that, as is seen a lot lately, this fixes a rare issue > that is likely never going to be seen in the real world while not > addressing the many real problems in the driver (as reported by Sashiko). That's fair, sure. The automated review also caught a real regression in this patch itself: reusing `ret` for the voltage value in the power_supply get_property callbacks means a successful read returns a nonzero value instead of 0, which breaks the normal if (power_supply_get_property(...)) error-checking convention for callers which is on my end.. I'll drop this patch rather than resubmit a v2 for an issue you've said isn't worth fixing here. Thanks, ivy