linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 1/2] mfd: rk808: Change DEV_OFF to DEV_OFF_RST for rk818 shutdown
@ 2018-03-07 17:01 Daniel Schultz
  2018-03-07 17:01 ` [PATCH v2 2/2] mfd: rk808: Add restart functionality Daniel Schultz
  2018-03-12 14:09 ` [PATCH v2 1/2] mfd: rk808: Change DEV_OFF to DEV_OFF_RST for rk818 shutdown Lee Jones
  0 siblings, 2 replies; 8+ messages in thread
From: Daniel Schultz @ 2018-03-07 17:01 UTC (permalink / raw)
  To: lee.jones; +Cc: zyw, zhangqing, chenjh, linux-kernel, w.egorov

After running "poweroff", the PMIC restarts the SoC instead of shutting
it down.

It seems like the description for those two register bits is swapped.
After changing from DEV_OFF to DEV_OFF_RST, the system can poweroff
correctly.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
Changes:
	v2: Re-submit with recipients from Rockchip.

 drivers/mfd/rk808.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/rk808.c b/drivers/mfd/rk808.c
index 216fbf6..d138721 100644
--- a/drivers/mfd/rk808.c
+++ b/drivers/mfd/rk808.c
@@ -418,7 +418,7 @@ static void rk818_device_shutdown(void)
 
 	ret = regmap_update_bits(rk808->regmap,
 				 RK818_DEVCTRL_REG,
-				 DEV_OFF, DEV_OFF);
+				 DEV_OFF_RST, DEV_OFF_RST);
 	if (ret)
 		dev_err(&rk808_i2c_client->dev, "power off error!\n");
 }
-- 
2.7.4

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

end of thread, other threads:[~2018-03-14  3:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-07 17:01 [PATCH v2 1/2] mfd: rk808: Change DEV_OFF to DEV_OFF_RST for rk818 shutdown Daniel Schultz
2018-03-07 17:01 ` [PATCH v2 2/2] mfd: rk808: Add restart functionality Daniel Schultz
2018-03-12 14:10   ` Lee Jones
2018-03-13  3:32     ` Joseph Chen
2018-03-13  9:48       ` Daniel Schultz
2018-03-14  3:08         ` Joseph Chen
2018-03-12 14:09 ` [PATCH v2 1/2] mfd: rk808: Change DEV_OFF to DEV_OFF_RST for rk818 shutdown Lee Jones
     [not found]   ` <040f2e2d-680d-8da3-75df-78da16cc46ba@rock-chips.com>
2018-03-13 14:14     ` Daniel Schultz

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).