[PATCH] iio: adc: mt6577_auxadc: Fix kernel panic on suspend

Alexandre Mergnat amergnat at baylibre.com
Tue Oct 10 05:34:36 PDT 2023


Reviewed-by: Alexandre Mergnat <amergnat at baylibre.com>

On 10/10/2023 14:19, AngeloGioacchino Del Regno wrote:
> Commit a2d518fbe376 ("iio: adc: mt6577_auxadc: Simplify with device 
> managed function") simplified the driver with devm hooks, but wrongly 
> states that the platform_set_drvdata(), platform_get_drvdata() are 
> unused after the simplification: the driver data is infact used in 
> .suspend() and .resume() PM callbacks, currently producing a kernel 
> panic. Reintroduce the call to platform_set_drvdata() in the probe function

-- 
Regards,
Alexandre



More information about the Linux-mediatek mailing list