Skip to content

Serial port generic PM to fix 8250 PM

Tony Lindgren linux-omap linux-serial lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 Latest7 patches 15 repliesIn review

Changes in v4 from the cover letter

- Pick three patches from Andy's earlier serial port PM series to handle issues pointed out by Johan

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7serial: core: Add support of runtime PMdrivers/tty/serial/serial_core.c+140 -106 replies
2/7serial: core: Add wakeup() and start_pending_tx() for asynchronous wakeDocumentation/driver-api/serial/driver.rst drivers/tty/serial/serial_core.c include/linux/serial_core.h+59 -21 reply
3/7serial: 8250_port: properly handle runtime PM in IRQdrivers/tty/serial/8250/8250_port.c+9 -71 reply
4/7serial: 8250: Implement wakeup for TX and use it for 8250_omapdrivers/tty/serial/8250/8250_omap.c drivers/tty/serial/8250/8250_port.c+57 -11 reply
5/7serial: 8250_omap: Require a valid wakeirq for deeper idle statesdrivers/tty/serial/8250/8250_omap.c+10 -01 reply
6/7serial: 8250_omap: Drop the use of pm_runtime_irq_safe()drivers/tty/serial/8250/8250_omap.c+4 -111 reply
7/7serial: 8250_port: Remove calls to runtime PMdrivers/tty/serial/8250/8250.h drivers/tty/serial/8250/8250_port.c+27 -741 reply

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCHv4 0/7] Serial port generic PM to fix 8250 PM

Hi,

Here are v4 patches for serial port generic PM. The scope has now expanded a bit from the earlier attempts to get rid of pm_runtime_irq_safe() for the 8250_omap driver. I've now picked up three patches from Andy's earlier generic serial port PM series.

Regards,

Tony

Changes since v3:
- Pick three patches from Andy's earlier serial port PM series to handle issues pointed out by Johan

Chganges since v2:

- Use locking instead of atomic_t as suggested by Greg

Changes since v1:

- Separated out line discipline patches, n_tty -EAGAIN change I still need to retest

- Changed prep_tx() to more generic wakeup() as also flow control needs it

- Changed over to using wakeup() with device driver runtime PM instead of write_room()

- Added runtime_suspended flag for drivers and generic serial layer PM to use

Andy Shevchenko (3):
serial: core: Add support of runtime PM
serial: 8250_port: properly handle runtime PM in IRQ
serial: 8250_port: Remove calls to runtime PM

Tony Lindgren (4):
serial: core: Add wakeup() and start_pending_tx() for asynchronous
wake
serial: 8250: Implement wakeup for TX and use it for 8250_omap
serial: 8250_omap: Require a valid wakeirq for deeper idle states
serial: 8250_omap: Drop the use of pm_runtime_irq_safe()

 Documentation/driver-api/serial/driver.rst |   9 +
 drivers/tty/serial/8250/8250.h             |   3 -
 drivers/tty/serial/8250/8250_omap.c        |  44 +++--
 drivers/tty/serial/8250/8250_port.c        | 151 ++++++++--------
 drivers/tty/serial/serial_core.c           | 199 +++++++++++++++++++--
 include/linux/serial_core.h                |   3 +
 6 files changed, 305 insertions(+), 104 deletions(-)
Signature · 1 line
2.33.1