All of lore.kernel.org
 help / color / mirror / Atom feed
* Serial port RTPM/Suspend issues
@ 2013-03-12 14:41 Bastian Hecht
  2013-03-12 14:50 ` Bastian Hecht
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Bastian Hecht @ 2013-03-12 14:41 UTC (permalink / raw)
  To: linux-sh

Hi,

when going to suspend-to-mem on my Armadillo board with runtime power
management enabled my serial line outputs garbage.
I found 3 ways to make it work:
 - use the bootarg no_console_suspend
 - add the flag CLK_ENABLE_ON_INIT to the SCIF.1 clock in
mach-shmobile/clock-r8a7740.c
 - remove the power domain association to A3SP in mach-shmobile/setup-r8a7740.c

The obvious difference I can observe is that without any of these
methods, the clocks are halted dynamically before shutdown and
reenabled before serial_console_write() is used.
I tried to skip the stopping of the sci.1 MSTP bit in
drivers/sh/clk/cpg.c to simulate the working behaviour but without
success.
During resume I verified that sh_clk_mstp_enable() is called before
serial_console_write() is used. Furter I check the MSTP bit before
each write or read. I played around with adding a udelay(100) after
enabling the clocks. No success.
The A3SP power domain is not shut down during this process (.gov
     = &pm_domain_always_on_gov).

This all looks like the solution lies on a silver plate, but I can't see it.

Any quick hints?

I tested on Simon's topic/all+next branch with the armadillo defconfig.

Cheers,

 Bastian

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

end of thread, other threads:[~2013-03-13 10:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-12 14:41 Serial port RTPM/Suspend issues Bastian Hecht
2013-03-12 14:50 ` Bastian Hecht
2013-03-12 14:54 ` Paul Mundt
2013-03-12 15:31 ` Bastian Hecht
2013-03-12 15:41 ` Paul Mundt
2013-03-13 10:11 ` Bastian Hecht
2013-03-13 10:31 ` Bastian Hecht

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.