mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-25 10:42:21 +03:00
54bd04b640d75ec73597d18329fb40b97119f5df
Make sure to call pm_runtime_enable() before the of_platform_populate() which will ensure ahub runtime resume would be called to enable ahub clock before accessing any ahub modules registers in modules probe. Calling of_platform_populate() in parent driver probe results in all of its child device probe to be completed before it exits the parent probe call. The issue caught during MVC child device probe tries to access a register in probe call which depends on the ahub clock that gets enabled during AHUB RPM resume. But ahub RPM resume not called as pm_runtime_enable() in ahub parent driver happens after the of_platform_populate(). This was observed when drivers were built as part of kernel image. Bug 3752938 Change-Id: Ifeb4085961d89877f79ff521adb6dfdf4e51907c Signed-off-by: Mohan Kumar <mkumard@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.10/+/2762027 Reviewed-by: Sameer Pujar <spujar@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: Sharad Gupta <sharadg@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Description
No description provided