Re: [PATCH v4 2/2] iio: adc: Add Nuvoton MA35D1 EADC driver
From: Chi-Wen Weng
Date: Thu Nov 05 2026 - 06:19:14 EST
> 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