Re: [PATCH v3] iio: adc: mt6359: fix MT6357 ISENSE/VCDT and MT6358 VCDT request bits
From: Jonathan Cameron
Date: Fri Nov 27 2026 - 21:06:03 EST
On Fri, 27 Nov 2026 02:55:17 +0000
Ilia Snezhkov via B4 Relay <devnull+iasnezhkov.gmail.com@xxxxxxxxxx> wrote:
> From: Ilia Snezhkov <iasnezhkov@xxxxxxxxx>
>
> mt6357_auxadc_ch_desc[] sets req_bit to 0 for both ISENSE and VCDT, and
> mt6358_auxadc_ch_desc[] sets req_bit to 0 for VCDT. Bit 0 of
> PMIC_AUXADC_RQST0 triggers BATADC (ADC0) rather than ISENSE (ADC1) or
> VCDT (ADC2), so polling the ready bit of ADC1/ADC2 times out unless the
> channel was triggered externally.
>
> Use the actual hardware request bits in PMIC_AUXADC_RQST0: bit 1 for
> MT6357 ISENSE and bit 2 for MT6357/MT6358 VCDT (matching MT6363 VCDT
> and the MediaTek PMIC AUXADC hardware registers).
>
> Fixes: 3587914bf61d ("iio: adc: Add support for MediaTek MT6357/8/9 Auxiliary ADC")
> Reviewed-by: Roman Vivchar <rva333@xxxxxxxxxxxxxx>
> Tested-by: Roman Vivchar <rva333@xxxxxxxxxxxxxx> # mt6358
> Signed-off-by: Ilia Snezhkov <iasnezhkov@xxxxxxxxx>
Applied like Roman's series to the testing branch of iio.git + marked for stable.
That puts it on course for the merge window rather than rushing it in as a fix
during the rc cycle.
Thanks,
Jonathan