clk: exynos: add function for Samsung CMU ops->request
authorKaustabh Chakraborty <kauschluss@disroot.org>
Fri, 17 Oct 2025 15:21:32 +0000 (20:51 +0530)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 12 Nov 2025 04:56:12 +0000 (13:56 +0900)
commit4bee54fbfa9e5be4bb17435dc809b0002566f986
treec1a75d26b964753dc9c2b87364c6b3003cbe9976
parent526a257fdba7c1a8288b6454b1551a35b0ec5723
clk: exynos: add function for Samsung CMU ops->request

The request function performs a simple check if the clock with the
provided ID is present or not. This is done with a simple call to
clk_get_by_id(). A non-zero return value indicates that the requested
clock is not available.

In some cases, clk->dev points to the clock bank device instead of
the clock device. This pointer is therefore overwritten in order to
reference to the correct device instance.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/clk/exynos/clk.c
drivers/clk/exynos/clk.h