OSDN Git Service

serdev: Add method to assert break signal over tty UART port
authorNeeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Thu, 16 Mar 2023 17:22:12 +0000 (22:52 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 24 Apr 2023 04:51:25 +0000 (21:51 -0700)
commit8eaf839e4ac4feadf06e03eeff34059795450712
treeb89e0251403aca48e670d30bf87295d8eee56596
parent29f93a687f3c435e94d026ee1fc8ad18ce56b7fb
serdev: Add method to assert break signal over tty UART port

Adds serdev_device_break_ctl() and an implementation for ttyport.
This function simply calls the break_ctl in tty layer, which can
assert a break signal over UART-TX line, if the tty and the
underlying platform and UART peripheral supports this operation.

Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/tty/serdev/core.c
drivers/tty/serdev/serdev-ttyport.c
include/linux/serdev.h