drm/tegra: sor: Move register programming out of ->init()
authorThierry Reding <treding@nvidia.com>
Wed, 20 Feb 2019 09:03:46 +0000 (10:03 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 24 Oct 2019 16:41:53 +0000 (18:41 +0200)
commitf1f20eb9705566f861330f8da7e2f2a84dae46af
tree0fc9d02290a91305f1a502c7bb5b2fbb7e4e5fac
parent9a42c7c647a9ad0f7ebb147a52eda3dcb7c84292
drm/tegra: sor: Move register programming out of ->init()

The hardware is not guaranteed to be enabled during execution of the
tegra_sor_init() function, which can lead to a crash on some Tegra SoCs.
Fix this by moving all register programming into code that is guaranteed
to only be executed when the hardware is enabled.

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