lkml.org 
[lkml]   [2021]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCHv2 0/4] Get rid of pm_runtime_irq_safe() for 8250_omap
Date
Hi,

Here are v2 patches to get rid of pm_runtime_irq_safe() for the 8250_omap
driver. Based on comments from Andy and Johan, I improved a bunch of
things as listed below.

For removing the pm_runtime_irq_safe() usage, serial TX is the last
remaining issue. We deal with TX by waking up the port and returning 0
bytes written from write_room() and write() if the port is not available
because of PM runtime autoidle.

This series also removes the dependency to Andy's pending generic serial
layer PM runtime patches, and hopefully makes that work a bit easier :)

Regards,

Tony


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

Tony Lindgren (4):
serial: core: Add wakeup() and start_pending_tx() for power management
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_omap.c | 42 +++++++++++-----
drivers/tty/serial/8250/8250_port.c | 35 +++++++++++++-
drivers/tty/serial/serial_core.c | 56 +++++++++++++++++++++-
include/linux/serial_core.h | 3 ++
5 files changed, 131 insertions(+), 14 deletions(-)

--
2.33.0

\
 
 \ /
  Last update: 2021-09-30 08:31    [W:0.107 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site