mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
* Faults on Odroid-C2 during shutdown and fix proposal
@ 2017-12-15 23:19 Heiner Kallweit
  2017-12-19 10:28 ` Neil Armstrong
  0 siblings, 1 reply; 2+ messages in thread
From: Heiner Kallweit @ 2017-12-15 23:19 UTC (permalink / raw)
  To: linus-amlogic

Neil,

during shutdown I experience faults as described in the commit message of
339cd0ea0822 "soc: amlogic: meson-gx-pwrc-vpu: fix power-off when powered by bootloader"

My best guess:
I operate the board headless, therefore the domain is never powered on, leaving the
clocks disabled. The shutdown function then tries to disable the already disabled
clocks.
The following change fixes it for me, however there may be scenarios I miss,
therefore I'd like to hear your opinion.

 static void meson_gx_pwrc_vpu_shutdown(struct platform_device *pdev)
 {
-       meson_gx_pwrc_vpu_power_off(&vpu_hdmi_pd.genpd);
+       bool powered_off;
+
+       powered_off = meson_gx_pwrc_vpu_get_power(&vpu_hdmi_pd);
+       if (!powered_off)
+               meson_gx_pwrc_vpu_power_off(&vpu_hdmi_pd.genpd);
 }

And something completely different:
I get a misleading error message "failed to get reset lines", caused by the fact
that devm_reset_control_array_get() returns -EPROBE_DEFER. So I think we should
print the error message only if the error is not caused by a probe deferral.

Kind regards,
Heiner

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

end of thread, other threads:[~2017-12-19 10:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-15 23:19 Faults on Odroid-C2 during shutdown and fix proposal Heiner Kallweit
2017-12-19 10:28 ` Neil Armstrong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®