diff options
author | Sherry Sun <[email protected]> | 2021-07-29 16:31:09 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-07-29 17:05:59 +0200 |
commit | 06e91df16f3e1ca1a1886968fb22d4258f3b6b6f (patch) | |
tree | 1f45f2efecd0972494c79f9f8da3d1338cf7e334 /include/linux | |
parent | 7f0909db761535aefafa77031062603a71557267 (diff) |
tty: serial: fsl_lpuart: fix the wrong return value in lpuart32_get_mctrl
Patch e60c2991f18b make the lpuart32_get_mctrl always return 0, actually
this will break the functions of device which use flow control such as
Bluetooth.
For lpuart32 plaform, the hardware can handle the CTS automatically.
So we should set TIOCM_CTS active. Also need to set CAR and DSR active.
Patch has been tested on lpuart32 platforms such as imx8qm and imx8ulp.
Fixes: e60c2991f18b ("serial: fsl_lpuart: remove RTSCTS handling from get_mctrl()")
Cc: stable <[email protected]>
Signed-off-by: Sherry Sun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions