diff options
author | Magnus Damm <damm+renesas@opensource.se> | 2021-12-12 16:21:28 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-12-30 15:29:56 +0300 |
commit | d8e9a406a931f687945703a4bac45042eb81ce92 (patch) | |
tree | e93562187f9adb69b1d7002ae1e1c303ec525482 /drivers/tty/goldfish.c | |
parent | ad234e2bac274a43c9fa540bde8cd9f0c627b71f (diff) | |
download | linux-d8e9a406a931f687945703a4bac45042eb81ce92.tar.xz |
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>
Diffstat (limited to 'drivers/tty/goldfish.c')
0 files changed, 0 insertions, 0 deletions