linux/drivers/tty/serdev
Magnus Damm d8e9a406a9 serdev: BREAK/FRAME/PARITY/OVERRUN notification prototype V2
Allow serdev device drivers get notified by hardware errors such as BREAK,
FRAME, PARITY and OVERRUN.

With this patch, in the event of an error detected in the UART device driver
the serdev_device_driver will get the newly introduced ->error() callback
invoked if serdev_device_set_error_mask() has previously been used to enable
the type of error. The errors are taken straight from the TTY layer and fed
into the serdev_device_driver after filtering out only enabled errors.

Without this patch the hardware errors never reach the serdev_device_driver.

Signed-off-by: Magnus Damm <damm+renesas@opensource.se>
Link: https://lore.kernel.org/r/163931528842.27756.3665040315954968747.sendpatchset@octo
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-12-30 13:29:56 +01:00
..
core.c serdev: BREAK/FRAME/PARITY/OVERRUN notification prototype V2 2021-12-30 13:29:56 +01:00
Kconfig tty: add SPDX identifiers to Kconfig and Makefiles 2019-04-04 18:48:43 +02:00
Makefile Revert "serdev: simplify Makefile" 2019-12-18 15:01:41 +01:00
serdev-ttyport.c serdev: BREAK/FRAME/PARITY/OVERRUN notification prototype V2 2021-12-30 13:29:56 +01:00