]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: drc: Make sure we enforce the clock rate
authorMaxime Ripard <maxime@cerno.tech>
Tue, 7 Jan 2020 16:59:57 +0000 (17:59 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 8 Jan 2020 08:14:08 +0000 (09:14 +0100)
commit6c9712fdc1d02e3d9f44c3b6c1986dbbe63a7b0b
tree8a0893cb5b7961e8eddc600e2666c111416e2bf8
parentc10566ed9296032f429f4cf90aec4edac24a48d7
drm/sun4i: drc: Make sure we enforce the clock rate

The DRC needs to run at 300MHz to be functional. This was done so far
using assigned-clocks in the device tree, but that is easy to forget, and
doesn't provide any other guarantee than the rate is going to be roughly
the one requested at probe time.

Therefore it's pretty fragile, so let's just use the exclusive clock API to
enforce it.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20200107165957.672435-2-maxime@cerno.tech
drivers/gpu/drm/sun4i/sun6i_drc.c