ch341.c (0b28330e39bbe0ffee4c56b09fc415fcec595ea3) | ch341.c (f26788da3b342099d2b02d99ba1cb7f154d6ef7b) |
---|---|
1/* 2 * Copyright 2007, Frank A Kingswood <frank@kingswood-consulting.co.uk> 3 * Copyright 2007, Werner Cornelius <werner@cornelius-consult.de> 4 * Copyright 2009, Boris Hajduk <boris@hajduk.org> 5 * 6 * ch341.c implements a serial port driver for the Winchiphead CH341. 7 * 8 * The CH341 device can be used to implement an RS232 asynchronous --- 291 unchanged lines hidden (view full) --- 300 ch341_set_handshake(port->serial->dev, priv->line_control); 301 wake_up_interruptible(&priv->delta_msr_wait); 302} 303 304static void ch341_close(struct usb_serial_port *port) 305{ 306 dbg("%s - port %d", __func__, port->number); 307 | 1/* 2 * Copyright 2007, Frank A Kingswood <frank@kingswood-consulting.co.uk> 3 * Copyright 2007, Werner Cornelius <werner@cornelius-consult.de> 4 * Copyright 2009, Boris Hajduk <boris@hajduk.org> 5 * 6 * ch341.c implements a serial port driver for the Winchiphead CH341. 7 * 8 * The CH341 device can be used to implement an RS232 asynchronous --- 291 unchanged lines hidden (view full) --- 300 ch341_set_handshake(port->serial->dev, priv->line_control); 301 wake_up_interruptible(&priv->delta_msr_wait); 302} 303 304static void ch341_close(struct usb_serial_port *port) 305{ 306 dbg("%s - port %d", __func__, port->number); 307 |
308 /* shutdown our urbs */ 309 dbg("%s - shutting down urbs", __func__); 310 usb_kill_urb(port->write_urb); 311 usb_kill_urb(port->read_urb); | 308 usb_serial_generic_close(port); |
312 usb_kill_urb(port->interrupt_in_urb); 313} 314 315 316/* open this device, set default parameters */ 317static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port) 318{ 319 struct usb_serial *serial = port->serial; --- 354 unchanged lines hidden --- | 309 usb_kill_urb(port->interrupt_in_urb); 310} 311 312 313/* open this device, set default parameters */ 314static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port) 315{ 316 struct usb_serial *serial = port->serial; --- 354 unchanged lines hidden --- |