[PATCH v2 3/8] iio: adc: rockchip_saradc: Make use of devm_clk_get_enabled

Dmitry Osipenko dmitry.osipenko at collabora.com
Thu May 25 17:42:48 PDT 2023


On 5/26/23 00:27, Shreeya Patel wrote:
> @@ -600,8 +560,6 @@ static int rockchip_saradc_suspend(struct device *dev)
>  	struct iio_dev *indio_dev = dev_get_drvdata(dev);
>  	struct rockchip_saradc *info = iio_priv(indio_dev);
>  
> -	clk_disable_unprepare(info->clk);
> -	clk_disable_unprepare(info->pclk);
>  	regulator_disable(info->vref);

Why clocks need to be enabled during suspend?

-- 
Best regards,
Dmitry




More information about the Linux-rockchip mailing list