pl2303.c (441b62c1edb986827154768d89bbac0ba779984f) pl2303.c (a5b6f60c5a30c494017c7a2d11c4067f90d3d0df)
1/*
2 * Prolific PL2303 USB to serial adaptor driver
3 *
4 * Copyright (C) 2001-2007 Greg Kroah-Hartman (greg@kroah.com)
5 * Copyright (C) 2003 IBM Corp.
6 *
7 * Original driver for 2.2.x by anonymous
8 *

--- 532 unchanged lines hidden (view full) ---

541 if (!tty_termios_hw_change(port->tty->termios, old_termios))
542 return;
543
544 cflag = port->tty->termios->c_cflag;
545
546 buf = kzalloc(7, GFP_KERNEL);
547 if (!buf) {
548 dev_err(&port->dev, "%s - out of memory.\n", __func__);
1/*
2 * Prolific PL2303 USB to serial adaptor driver
3 *
4 * Copyright (C) 2001-2007 Greg Kroah-Hartman (greg@kroah.com)
5 * Copyright (C) 2003 IBM Corp.
6 *
7 * Original driver for 2.2.x by anonymous
8 *

--- 532 unchanged lines hidden (view full) ---

541 if (!tty_termios_hw_change(port->tty->termios, old_termios))
542 return;
543
544 cflag = port->tty->termios->c_cflag;
545
546 buf = kzalloc(7, GFP_KERNEL);
547 if (!buf) {
548 dev_err(&port->dev, "%s - out of memory.\n", __func__);
549 /* Report back no change occurred */
550 *port->tty->termios = *old_termios;
549 return;
550 }
551
552 i = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
553 GET_LINE_REQUEST, GET_LINE_REQUEST_TYPE,
554 0, 0, buf, 7, 100);
555 dbg("0xa1:0x21:0:0 %d - %x %x %x %x %x %x %x", i,
556 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]);

--- 611 unchanged lines hidden ---
551 return;
552 }
553
554 i = usb_control_msg(serial->dev, usb_rcvctrlpipe(serial->dev, 0),
555 GET_LINE_REQUEST, GET_LINE_REQUEST_TYPE,
556 0, 0, buf, 7, 100);
557 dbg("0xa1:0x21:0:0 %d - %x %x %x %x %x %x %x", i,
558 buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6]);

--- 611 unchanged lines hidden ---