linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [2/2] USB: iuu_phoenix: drop redundant input-speed re-encoding
@ 2018-07-16 12:14 Johan Hovold
  0 siblings, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2018-07-16 12:14 UTC (permalink / raw)
  To: Greg KH; +Cc: Johan Hovold, linux-usb

On Mon, Jul 16, 2018 at 01:56:46PM +0200, Greg Kroah-Hartman wrote:
> On Mon, Jul 16, 2018 at 01:51:56PM +0200, Johan Hovold wrote:
> > Drop redundant input-speed re-encoding at every open(). The output and
> > input speeds are initialised to the same value and are kept in sync on
> > termios updates.
> > 
> > Signed-off-by: Johan Hovold <johan@kernel.org>
> 
> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Thanks for reviewing. Both now applied.

Johan
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [2/2] USB: iuu_phoenix: drop redundant input-speed re-encoding
@ 2018-07-16 11:56 Greg KH
  0 siblings, 0 replies; 3+ messages in thread
From: Greg KH @ 2018-07-16 11:56 UTC (permalink / raw)
  To: Johan Hovold; +Cc: linux-usb

On Mon, Jul 16, 2018 at 01:51:56PM +0200, Johan Hovold wrote:
> Drop redundant input-speed re-encoding at every open(). The output and
> input speeds are initialised to the same value and are kept in sync on
> termios updates.
> 
> Signed-off-by: Johan Hovold <johan@kernel.org>

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread
* [2/2] USB: iuu_phoenix: drop redundant input-speed re-encoding
@ 2018-07-16 11:51 Johan Hovold
  0 siblings, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2018-07-16 11:51 UTC (permalink / raw)
  To: Johan Hovold; +Cc: linux-usb

Drop redundant input-speed re-encoding at every open(). The output and
input speeds are initialised to the same value and are kept in sync on
termios updates.

Signed-off-by: Johan Hovold <johan@kernel.org>
---
 drivers/usb/serial/iuu_phoenix.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c
index 87c8dd064205..449e89db9cea 100644
--- a/drivers/usb/serial/iuu_phoenix.c
+++ b/drivers/usb/serial/iuu_phoenix.c
@@ -962,9 +962,6 @@ static int iuu_open(struct tty_struct *tty, struct usb_serial_port *port)
 	struct iuu_private *priv = usb_get_serial_port_data(port);
 
 	baud = tty->termios.c_ospeed;
-	tty->termios.c_ispeed = baud;
-	/* Re-encode speed */
-	tty_encode_baud_rate(tty, baud, baud);
 
 	dev_dbg(dev, "%s - baud %d\n", __func__, baud);
 	usb_clear_halt(serial->dev, port->write_urb->pipe);

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-16 12:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-16 12:14 [2/2] USB: iuu_phoenix: drop redundant input-speed re-encoding Johan Hovold
  -- strict thread matches above, loose matches on Subject: below --
2018-07-16 11:56 Greg KH
2018-07-16 11:51 Johan Hovold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).