ARM: at91: pm: add per soc validation of pm modes
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 5 Aug 2020 08:36:49 +0000 (11:36 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 17 Aug 2020 09:18:17 +0000 (11:18 +0200)
commit39add36049c347dffcb2be872dd442c137625f17
tree19141f5aeffb25cbd5af51527294d6e10ab0be28
parente70bfc2fa8fe1a95a522f9d1ccf24d3d9b81366a
ARM: at91: pm: add per soc validation of pm modes

Not all SoCs supports all the PM mode. User may end up settings,
e.g. backup mode, on a non SAMA5D2 device, but the mode to not be valid.
If backup mode is used on a devices not supporting it there will be no
way of resuming other than rebooting.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1596616610-15460-3-git-send-email-claudiu.beznea@microchip.com
arch/arm/mach-at91/pm.c