From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-f68.google.com ([209.85.215.68]:34394 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031075AbdAFSPl (ORCPT ); Fri, 6 Jan 2017 13:15:41 -0500 From: Johan Hovold To: linux-usb@vger.kernel.org Cc: Aidan Thornton , Grigori Goronzy , Karl Palsson , Russell Senior , Eddi De Pieri , Johan Hovold , stable Subject: [PATCH v2 01/14] USB: serial: ch341: fix initial modem-control state Date: Fri, 6 Jan 2017 19:15:10 +0100 Message-Id: <20170106181523.21324-2-johan@kernel.org> In-Reply-To: <20170106181523.21324-1-johan@kernel.org> References: <20170106181523.21324-1-johan@kernel.org> Sender: stable-owner@vger.kernel.org List-ID: DTR and RTS will be asserted by the tty-layer when the port is opened and deasserted on close (if HUPCL is set). Make sure the initial state is not-asserted before the port is first opened as well. Fixes: 664d5df92e88 ("USB: usb-serial ch341: support for DTR/RTS/CTS") Cc: stable Signed-off-by: Johan Hovold --- drivers/usb/serial/ch341.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/serial/ch341.c b/drivers/usb/serial/ch341.c index 2597b83a8ae2..d133e72fe888 100644 --- a/drivers/usb/serial/ch341.c +++ b/drivers/usb/serial/ch341.c @@ -258,7 +258,6 @@ static int ch341_port_probe(struct usb_serial_port *port) spin_lock_init(&priv->lock); priv->baud_rate = DEFAULT_BAUD_RATE; - priv->line_control = CH341_BIT_RTS | CH341_BIT_DTR; r = ch341_configure(port->serial->dev, priv); if (r < 0) -- 2.10.2