]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: backend: Make sure we enforce the clock rate
authorMaxime Ripard <maxime@cerno.tech>
Tue, 7 Jan 2020 16:59:56 +0000 (17:59 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 8 Jan 2020 08:13:47 +0000 (09:13 +0100)
commitc10566ed9296032f429f4cf90aec4edac24a48d7
tree7f7044c4b815eeccefa44e9549e5d097d7812453
parent6542314e346441a5fa5a28f9ed3378e144dde676
drm/sun4i: backend: Make sure we enforce the clock rate

The backend 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-1-maxime@cerno.tech
drivers/gpu/drm/sun4i/sun4i_backend.c