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)
commit6fe082b0fbe5a8ce9b16998fc4cb885a9b52f976
tree8a0893cb5b7961e8eddc600e2666c111416e2bf8
parent451debe55715acafdcacba6a879e6ccb8eca23ce
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