Re: [PATCH 04/15] i2c: busses: exynos5: Use devm_clk_get_enabled()

Wolfram Sang
2023-06-23T12:29:47Z

[-- Attachment #1: Type: text/plain, Size: 375 bytes --]

> I don't know why there is just unprepare() and not
> disable_unprepare() in this function.

To save power, some drivers disable the clock by default (after some
init in probe) and only enable it when a transaction is on-going. If
they do everything right(tm), they may only need to unprepare the clock
in remove. I don't know the details about the exynos driver, though.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]