[PATCH v4 2/2] iio: adc: Add Nuvoton MA35D1 EADC driver
Chi-Wen Weng
cwweng.linux at gmail.com
Thu Nov 5 03:05:42 PST 2026
> Repeats what __clk_is_enabled() provides.
I would prefer to keep the local flag here. It tracks this driver's
clk_prepare_enable()/clk_disable_unprepare() balance, while
__clk_is_enabled() reports the clock core/hardware state. For a shared
clock, it may still return true after this driver has disabled its own
clock reference.
The flag is also used to avoid EADC MMIO accesses after this driver has
disabled the clock during suspend.
Thanks,
Chi-Wen
More information about the linux-arm-kernel
mailing list