OSDN Git Service

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)
commit451debe55715acafdcacba6a879e6ccb8eca23ce
tree7f7044c4b815eeccefa44e9549e5d097d7812453
parentf66ff55a9bd06855f9c6b8f29d8760f77bfe43c2
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