Microchip AT91 SoC updates for v6.8

It contains:
 - one patch for secure mode to set the target power management mode in
   initialization process as at91_pm_begin() is not called on suspend
   path while in secure mode; this is necessary for different drivers to
   know which suspend mode the system is going to switch to and act
   accordingly
 -----BEGIN PGP SIGNATURE-----
 
 iHUEABYIAB0WIQTsZ8eserC1pmhwqDmejrg/N2X7/QUCZXsiYgAKCRCejrg/N2X7
 /bIZAQC5PtjrwFPEGiRiHfX+KOG+H+ZtDTj198OwYr8WNPlYWgEAlyrxUI/uAM1P
 QIY33ARshTT+PRoMkVdfjxbdiUUx/QQ=
 =kmM+
 -----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEiK/NIGsWEZVxh/FrYKtH/8kJUicFAmWFZysACgkQYKtH/8kJ
 UieGfw//UtnxGQ7rjlt2EaqPOvlEh8R3ZyfARMBWWBOOUGuwrTcIWy2u1seZHZ6P
 vCEs59TeEzcBoU3z8nelw3YluRhe3U/zRKTjRxwcIfOG+/90qjU7blj2JOVcB7TL
 DFwUoikOLXCUW7Mz3UUXb7nlNylaH0c7jyWBKO51N0evATQcMLNkCOslSgHBfiby
 eaDY+ChbzNOpvDvWyyi2uYc3zi5Ns1lFcZWRKJKEpqQwarEN8w1CDhHVwC6YwmOV
 VT04m9+y2zVhr87fqjXrpZ1YkmwEtJBZJi8EccB7E0krcXVhsxpYuK0nd1F0/pO0
 P5Y7ECh92GnlFFYBGLXJUo1Lp+uYJUarKATb/gBm9QThX0Kv84h/1Sm23AJXC5e1
 TJv0tblyaC6QpLXySBtu4UUFRKqeDFQ2kFD4UecxS6KbYAS2Rv5H4yqXjDaOCnMS
 qSP9dmbf+p+Uf9GUqYnTqFYmEPTaILQietXPbMSaiw+hmsFIPtsbBBtCZziaa2I2
 GtIQUvBkSLafSv8kWgOEYyYTwz7YfFC5EpwxfVJtEYxX37L6HfVhJ6k+arQsYp6i
 53autuk0anNXSQ3pWKTvu2I6wqA+a1Qa7oLUMeNngo13oMSgk4g/Rj3aEsrA0in8
 tx6JbtHArhlYk9vnPGwfvHtkYjY7twTREjAhalMacEt2RTtBDzg=
 =fLrJ
 -----END PGP SIGNATURE-----

Merge tag 'at91-soc-6.8' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into soc/arm

Microchip AT91 SoC updates for v6.8

It contains:
- one patch for secure mode to set the target power management mode in
  initialization process as at91_pm_begin() is not called on suspend
  path while in secure mode; this is necessary for different drivers to
  know which suspend mode the system is going to switch to and act
  accordingly

* tag 'at91-soc-6.8' of https://git.kernel.org/pub/scm/linux/kernel/git/at91/linux:
  ARM: at91: pm: set soc_pm.data.mode in at91_pm_secure_init()

Link: https://lore.kernel.org/r/20231214174830.3045180-1-claudiu.beznea@tuxon.dev
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Arnd Bergmann 2023-12-22 10:38:35 +00:00
commit 6248b4095f

View File

@ -1103,6 +1103,7 @@ static void __init at91_pm_secure_init(void)
if (res.a0 == 0) {
pr_info("AT91: Secure PM: suspend mode set to %s\n",
pm_modes[suspend_mode].pattern);
soc_pm.data.mode = suspend_mode;
return;
}
@ -1112,6 +1113,7 @@ static void __init at91_pm_secure_init(void)
res = sam_smccc_call(SAMA5_SMC_SIP_GET_SUSPEND_MODE, 0, 0);
if (res.a0 == 0) {
pr_warn("AT91: Secure PM: failed to get default mode\n");
soc_pm.data.mode = -1;
return;
}
@ -1119,6 +1121,7 @@ static void __init at91_pm_secure_init(void)
pm_modes[suspend_mode].pattern);
soc_pm.data.suspend_mode = res.a1;
soc_pm.data.mode = soc_pm.data.suspend_mode;
}
static const struct of_device_id atmel_shdwc_ids[] = {
{ .compatible = "atmel,sama5d2-shdwc" },