ARM: at91: pm: do not panic if ram controllers are not enabled
stable inclusion from stable-5.10.73 commit 14f52004bda51ce7695abada3470752a73fa6b60 bugzilla: 182983 https://gitee.com/openeuler/kernel/issues/I4I3M0 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=14f52004bda51ce7695abada3470752a73fa6b60 -------------------------------- [ Upstream commit 1605de1b ] In case PM is enabled but there is no RAM controller information in DT the code will panic. Avoid such scenarios by not initializing platform specific PM code in case RAM controller is not provided via DT. Reported-by: NEugen Hristev <eugen.hristev@microchip.com> Fixes: 827de1f1 ("ARM: at91: remove at91_dt_initialize and machine init_early()") Fixes: 892e1f4a ("ARM: at91: pm: add sama7g5 ddr phy controller") Signed-off-by: NClaudiu Beznea <claudiu.beznea@microchip.com> Signed-off-by: NNicolas Ferre <nicolas.ferre@microchip.com> Link: https://lore.kernel.org/r/20210823131915.23857-2-claudiu.beznea@microchip.comSigned-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录