Re: [PATCH] mfd: wm8350: return an error for AUXADC timeouts

From: Pengpeng Hou

Date: Wed Dec 02 2026 - 22:54:39 EST


Hi Lee,

I checked the callers. show_voltage() and the power-supply voltage
helpers scale the value returned by wm8350_read_auxadc() without first
checking for an error. Returning -ETIMEDOUT in the core alone would
turn that error into a voltage reading instead of propagating it.

There is a separate read-error issue: wm8350_reg_read() logs a failed
regmap_read() but doesn't return its error to the caller. In particular
the AUXADC power-down read/modify/write can't tell if it has a valid
register value. My timeout patch doesn't fix that.

Please drop this version. A change to the ADC return contract has to
include its consumers.

Thanks,
Pengpeng