USB: serial: pl2303: fix non-supported xon/xoff
PATCH 1/2 USB: serial: pl2303: fix non-supported xon/xoff
Quoted 10 lines · Johan Hovold
Older pl2303 devices do not support automatic xon/xoff flow control, so add add a flag to prevent trying to enable it for legacy device types.
Refactor the IXON test into a helper function to improve readability.
Fixes 7041d9c3f01b ("USB: serial: pl2303: add support for tx xon/xoff flow control")Signed-off-by Johan Hovold <[email protected]>--- drivers/usb/serial/pl2303.c | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-)
Reviewed-by Greg Kroah-Hartman <[email protected]>