summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/8250/8250_exar.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2018-05-30 13:50:59 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-28 15:07:54 +0300
commitc3bf40ce2c2029b4e11bfcfa404dda4472d93429 (patch)
treeca76b80d6c9919dce3ef119e83f0c003e0bd64bf /drivers/tty/serial/8250/8250_exar.c
parent95a0e656580fab3128c7bee5f660c50784f53651 (diff)
downloadlinux-c3bf40ce2c2029b4e11bfcfa404dda4472d93429.tar.xz
serdev: add controller runtime PM support
Add support for controller runtime power management to serdev core. This is needed to allow slave drivers to manage the runtime PM state of the underlying serial controller when its driver, in turn, implements more aggressive runtime power management (e.g. using autosuspend). For some applications, for example, where loss off initial data after a remote-wakeup event is acceptable or where rx is not used at all, aggressive serial controller runtime PM may be used without further involvement of the slave driver. But when this is not the case, the slave driver must be able to indicate when incoming data is expected in order to avoid data loss. To facilitate the common case, where the serial controller power state is active whenever the port is open (which is the case with just about every serial driver), and where data loss is not acceptable and cannot even be prevented by explicit controller runtime power management, an RPM reference is taken in serdev open and put again at close. This reference can later be balanced by any serdev driver which wants and/or can handle aggressive controller runtime PM. Note that the .ignore_children flag is set for the serdev controller to allow the underlying hardware to idle when no I/O is expected, regardless of the slave device RPM state. Acked-by: Tony Lindgren <tony@atomide.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Johan Hovold <johan@kernel.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250/8250_exar.c')
0 files changed, 0 insertions, 0 deletions