Skip to content

RFC serial 8250 platform PM hooks

Manuel Lauss linux-mips linux-serial lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/28250: allow platform uarts to install PM callback.drivers/serial/8250.c include/linux/serial_8250.h+34 -30 replies
2/2Alchemy: UART PM through serial framework.arch/mips/alchemy/common/platform.c arch/mips/alchemy/common/power.c+17 -322 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] serial 8250 platform PM hooks

The following 2 patches implement a PM hook for platform 8250 UARTs and a sample PM implementation for a MIPS SoC.

Patch #1 hooks a new .pm callback in struct plat_serial8250_port to the rest of serial_core's PM infrastructure,

Patch #2 implements uart power gating for Alchemy line of mips socs using the new hook.

With these 2 patches serial console on my test system survives suspend/resume cycles without having to resort to platform-specific hacks in the PM code.

Thanks,
Manuel Lauss

Manuel Lauss (2):
8250: allow platform uarts to install PM callback.
Alchemy: UART PM through serial framework.

 arch/mips/alchemy/common/platform.c |   17 +++++++++++++++++
 arch/mips/alchemy/common/power.c    |   32 --------------------------------
 drivers/serial/8250.c               |   31 ++++++++++++++++++++++++++++---
 include/linux/serial_8250.h         |    6 ++++++
 4 files changed, 51 insertions(+), 35 deletions(-)