cp210x.c (aea006b93a59864473866e4b1bdb51deea593798) | cp210x.c (f26788da3b342099d2b02d99ba1cb7f154d6ef7b) |
---|---|
1/* 2 * Silicon Laboratories CP210x USB to RS232 serial adaptor driver 3 * 4 * Copyright (C) 2005 Craig Shelley (craig@microtron.org.uk) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License version 8 * 2 as published by the Free Software Foundation. --- 408 unchanged lines hidden (view full) --- 417 usb_kill_urb(port->read_urb); 418 } 419} 420 421static void cp210x_close(struct usb_serial_port *port) 422{ 423 dbg("%s - port %d", __func__, port->number); 424 | 1/* 2 * Silicon Laboratories CP210x USB to RS232 serial adaptor driver 3 * 4 * Copyright (C) 2005 Craig Shelley (craig@microtron.org.uk) 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License version 8 * 2 as published by the Free Software Foundation. --- 408 unchanged lines hidden (view full) --- 417 usb_kill_urb(port->read_urb); 418 } 419} 420 421static void cp210x_close(struct usb_serial_port *port) 422{ 423 dbg("%s - port %d", __func__, port->number); 424 |
425 /* shutdown our urbs */ 426 dbg("%s - shutting down urbs", __func__); 427 usb_kill_urb(port->write_urb); 428 usb_kill_urb(port->read_urb); | 425 usb_serial_generic_close(port); |
429 430 mutex_lock(&port->serial->disc_mutex); 431 if (!port->serial->disconnected) 432 cp210x_set_config_single(port, CP210X_IFC_ENABLE, UART_DISABLE); 433 mutex_unlock(&port->serial->disc_mutex); 434} 435 436/* --- 422 unchanged lines hidden --- | 426 427 mutex_lock(&port->serial->disc_mutex); 428 if (!port->serial->disconnected) 429 cp210x_set_config_single(port, CP210X_IFC_ENABLE, UART_DISABLE); 430 mutex_unlock(&port->serial->disc_mutex); 431} 432 433/* --- 422 unchanged lines hidden --- |