drm/tegra: sor: Factor out tegra_sor_set_parent_clock()
authorThierry Reding <treding@nvidia.com>
Mon, 3 Aug 2015 12:23:29 +0000 (14:23 +0200)
committerThierry Reding <treding@nvidia.com>
Fri, 1 Jul 2016 12:42:01 +0000 (14:42 +0200)
commit25bb2cec88401a512c01adc8b815f8a579da2558
treef8d68ae61a35be1c4af1d2308a0e257c4573efbf
parent0751bb5c44fe1aa9494ce259d974c3d249b73a84
drm/tegra: sor: Factor out tegra_sor_set_parent_clock()

Switching the SOR parent clock can glitch if done while the clock is
enabled. Extract a common function that can be used to disable the
module clock, switch the parent and reenable the module clock.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c