ark3116.c (0b28330e39bbe0ffee4c56b09fc415fcec595ea3) | ark3116.c (f26788da3b342099d2b02d99ba1cb7f154d6ef7b) |
---|---|
1/* 2 * Copyright (C) 2009 by Bart Hartgers (bart.hartgers+ark3116@gmail.com) 3 * Original version: 4 * Copyright (C) 2006 5 * Simon Schulz (ark3116_driver <at> auctionant.de) 6 * 7 * ark3116 8 * - implements a driver for the arkmicro ark3116 chipset (vendor=0x6547, --- 341 unchanged lines hidden (view full) --- 350 351 if (serial->dev) { 352 /* disable DMA */ 353 ark3116_write_reg(serial, UART_FCR, 0); 354 355 /* deactivate interrupts */ 356 ark3116_write_reg(serial, UART_IER, 0); 357 | 1/* 2 * Copyright (C) 2009 by Bart Hartgers (bart.hartgers+ark3116@gmail.com) 3 * Original version: 4 * Copyright (C) 2006 5 * Simon Schulz (ark3116_driver <at> auctionant.de) 6 * 7 * ark3116 8 * - implements a driver for the arkmicro ark3116 chipset (vendor=0x6547, --- 341 unchanged lines hidden (view full) --- 350 351 if (serial->dev) { 352 /* disable DMA */ 353 ark3116_write_reg(serial, UART_FCR, 0); 354 355 /* deactivate interrupts */ 356 ark3116_write_reg(serial, UART_IER, 0); 357 |
358 /* shutdown any bulk reads that might be going on */ 359 if (serial->num_bulk_out) 360 usb_kill_urb(port->write_urb); 361 if (serial->num_bulk_in) 362 usb_kill_urb(port->read_urb); | 358 usb_serial_generic_close(port); |
363 if (serial->num_interrupt_in) 364 usb_kill_urb(port->interrupt_in_urb); 365 } | 359 if (serial->num_interrupt_in) 360 usb_kill_urb(port->interrupt_in_urb); 361 } |
362 |
|
366} 367 368static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port) 369{ 370 struct ark3116_private *priv = usb_get_serial_port_data(port); 371 struct usb_serial *serial = port->serial; 372 unsigned char *buf; 373 int result; --- 551 unchanged lines hidden --- | 363} 364 365static int ark3116_open(struct tty_struct *tty, struct usb_serial_port *port) 366{ 367 struct ark3116_private *priv = usb_get_serial_port_data(port); 368 struct usb_serial *serial = port->serial; 369 unsigned char *buf; 370 int result; --- 551 unchanged lines hidden --- |