]> git.baikalelectronics.ru Git - kernel.git/commit
memory: tegra: Correct driver probe order
authorDmitry Osipenko <digetx@gmail.com>
Sat, 26 May 2018 14:20:35 +0000 (17:20 +0300)
committerThierry Reding <treding@nvidia.com>
Tue, 10 Jul 2018 15:29:15 +0000 (17:29 +0200)
commit9325e9b58f2f32be7cd9792e78917d33fd935ba1
tree2982198dbc9739b0bb87110e5cf10e3c8865ee07
parent2358d48a6db92cb022eb848a0943363a742d51a5
memory: tegra: Correct driver probe order

The Reset Controller should be registered in the end of probe, otherwise
Memory Controller device goes away if IRQ requesting fails and the Reset
Controller stays registered. To avoid having to unwind the MC probing in
a case of SMMU probe failure, let's simply print the error message without
failing the MC probe. This allows us to just move the Reset Controller
registering before the SMMU registration, reducing code churning. Also
let's not fail MC probe in a case of Reset Controller registration failure
as it doesn't prevent the MC driver to work.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/memory/tegra/mc.c