linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] power: reset: at91-poweroff: fix clobber list
@ 2017-05-31  9:49 Alexandre Belloni
  2017-05-31  9:49 ` [PATCH 2/2] power: reset: at91-sama5d2_shdwc: " Alexandre Belloni
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexandre Belloni @ 2017-05-31  9:49 UTC (permalink / raw)
  To: Sebastian Reichel
  Cc: Nicolas Ferre, linux-pm, linux-kernel, linux-arm-kernel,
	Alexandre Belloni

Assembly in at91_lpddr_poweroff has r0 in the clobber list but uses r6.

Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
---
 drivers/power/reset/at91-poweroff.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/reset/at91-poweroff.c b/drivers/power/reset/at91-poweroff.c
index c6c3beea72f9..c30c40193aaa 100644
--- a/drivers/power/reset/at91-poweroff.c
+++ b/drivers/power/reset/at91-poweroff.c
@@ -97,7 +97,7 @@ static void at91_lpddr_poweroff(void)
 		  "r" cpu_to_le32(AT91_DDRSDRC_LPDDR2_PWOFF),
 		  "r" (at91_shdwc_base),
 		  "r" cpu_to_le32(AT91_SHDW_KEY | AT91_SHDW_SHDW)
-		: "r0");
+		: "r6");
 }
 
 static int at91_poweroff_get_wakeup_mode(struct device_node *np)
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-06-07 20:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-31  9:49 [PATCH 1/2] power: reset: at91-poweroff: fix clobber list Alexandre Belloni
2017-05-31  9:49 ` [PATCH 2/2] power: reset: at91-sama5d2_shdwc: " Alexandre Belloni
2017-06-01  9:00   ` Nicolas Ferre
2017-06-07 20:50   ` Sebastian Reichel
2017-06-01  9:00 ` [PATCH 1/2] power: reset: at91-poweroff: " Nicolas Ferre
2017-06-07 20:50 ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).