]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: at91: pm: do not panic if ram controllers are not enabled
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 23 Aug 2021 13:19:12 +0000 (16:19 +0300)
committerNicolas Ferre <nicolas.ferre@microchip.com>
Tue, 14 Sep 2021 14:52:26 +0000 (16:52 +0200)
commitf815d6cb2384174802ca365e7d171c2487fe87b2
treeaf61b4e3f1bc37ce9eaea6a10946c30b4d1c0697
parent4ce062870c70d404088bf50de34ea03772413b4e
ARM: at91: pm: do not panic if ram controllers are not enabled

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: Eugen Hristev <eugen.hristev@microchip.com>
Fixes: 8149e072ec7e0 ("ARM: at91: remove at91_dt_initialize and machine init_early()")
Fixes: 795e3d9fb803f ("ARM: at91: pm: add sama7g5 ddr phy controller")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20210823131915.23857-2-claudiu.beznea@microchip.com
arch/arm/mach-at91/pm.c