From: Johan Hovold Date: Tue, 4 Jun 2013 16:50:31 +0000 (+0200) Subject: USB: mos7720: fix hardware flow control X-Git-Tag: upstream/snapshot3+hdmi~4974^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a26f009a070e840fadacb91013b2391ba7ab6cc2;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git USB: mos7720: fix hardware flow control The register access to enable hardware flow control depends on the device port number and not the port minor number. Cc: stable@vger.kernel.org Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index 6eac266..f27c621 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c @@ -1629,7 +1629,7 @@ static void change_port_settings(struct tty_struct *tty, mos7720_port->shadowMCR |= (UART_MCR_XONANY); /* To set hardware flow control to the specified * * serial port, in SP1/2_CONTROL_REG */ - if (port->number) + if (port_number) write_mos_reg(serial, dummy, SP_CONTROL_REG, 0x01); else write_mos_reg(serial, dummy, SP_CONTROL_REG, 0x02);