]> 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)
commit5d8d2b818922e1e9b42f40fcb0830fa66b5e4667
tree8a0893cb5b7961e8eddc600e2666c111416e2bf8
parent09882a7debe4bc71390798a73a69094e8c1f1f75
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