archive mirror
 help / color / mirror / Atom feed
* [BISECTED] Allwinner A33 tablet does not fully power off
@ 2022-10-29 15:23 Ivaylo Dimitrov
  2022-11-05  2:21 ` Samuel Holland
  0 siblings, 1 reply; 6+ messages in thread
From: Ivaylo Dimitrov @ 2022-10-29 15:23 UTC (permalink / raw)
  To: wens, samuel; +Cc: mripard, linux-sunxi, linux-kernel, Merlijn Wajer


After commit 843107498f91e57d1d4b22cd8787112726fdaeb4 (bus: sunxi-rsb: 
Implement suspend/resume/shutdown callbacks) Q8 A33 tablet I have here 
cannot be powered-on after power-off, it needs press-and-hold of the 
power button for 10 seconds (I guess some HW assisted power down 
happens) before it can be powered-on again.

The following patch makes it behave correctly:

diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c
index 60b082fe2ed0..30016d62044c 100644
--- a/drivers/bus/sunxi-rsb.c
+++ b/drivers/bus/sunxi-rsb.c
@@ -818,10 +818,7 @@ static int sunxi_rsb_remove(struct platform_device 

  static void sunxi_rsb_shutdown(struct platform_device *pdev)
-       struct sunxi_rsb *rsb = platform_get_drvdata(pdev);
-       sunxi_rsb_hw_exit(rsb);

  static const struct dev_pm_ops sunxi_rsb_dev_pm_ops = {

I guess the issue comes from the fact that by the time 'power off' 
command to the power management IC has to be send, the bus it lives on 
is already down, so the device is left in semi-powered down state. Ofc 
this is a wild guess, however, preventing the bus being turned off on 
shutdown fixes the issue.

Please LMK if the above is the correct approach so I will send a proper 
patch or something else shall be fixed.


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

end of thread, other threads:[~2022-11-06  7:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-29 15:23 [BISECTED] Allwinner A33 tablet does not fully power off Ivaylo Dimitrov
2022-11-05  2:21 ` Samuel Holland
2022-11-05  8:23   ` Ivaylo Dimitrov
2022-11-05 19:18     ` Samuel Holland
2022-11-06  7:15       ` Ivaylo Dimitrov
2022-11-06  7:27         ` Jernej Škrabec

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