diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 12:09:47 -0800 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-09 12:09:47 -0800 | 
| commit | 55b81e6f2795484ea8edf5805c95c007cacfa736 (patch) | |
| tree | c3724975107857fcc03b5dd649c462e4f72397be /drivers/usb/serial/io_ti.c | |
| parent | 5983faf942f260023e547f3c5f38c1033c35cc9b (diff) | |
| parent | 08e87d0d773dc9ca5faf4c3306e238ed0ea129b0 (diff) | |
| download | olio-linux-3.10-55b81e6f2795484ea8edf5805c95c007cacfa736.tar.xz olio-linux-3.10-55b81e6f2795484ea8edf5805c95c007cacfa736.zip  | |
Merge branch 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb
* 'usb-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb: (232 commits)
  USB: Add USB-ID for Multiplex RC serial adapter to cp210x.c
  xhci: Clean up 32-bit build warnings.
  USB: update documentation for usbmon
  usb: usb-storage doesn't support dynamic id currently, the patch disables the feature to fix an oops
  drivers/usb/class/cdc-acm.c: clear dangling pointer
  drivers/usb/dwc3/dwc3-pci.c: introduce missing kfree
  drivers/usb/host/isp1760-if.c: introduce missing kfree
  usb: option: add ZD Incorporated HSPA modem
  usb: ch9: fix up MaxStreams helper
  USB: usb-skeleton.c: cleanup open_count
  USB: usb-skeleton.c: fix open/disconnect race
  xhci: Properly handle COMP_2ND_BW_ERR
  USB: remove dead code from suspend/resume path
  USB: add quirk for another camera
  drivers: usb: wusbcore: Fix dependency for USB_WUSB
  xhci: Better debugging for critical host errors.
  xhci: Be less verbose during URB cancellation.
  xhci: Remove debugging about ring structure allocation.
  xhci: Remove debugging about toggling cycle bits.
  xhci: Remove debugging for individual transfers.
  ...
Diffstat (limited to 'drivers/usb/serial/io_ti.c')
| -rw-r--r-- | drivers/usb/serial/io_ti.c | 28 | 
1 files changed, 4 insertions, 24 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index 0aac00afb5c..e44d375edaa 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c @@ -15,13 +15,6 @@   * For questions or problems with this driver, contact Inside Out   * Networks technical support, or Peter Berger <pberger@brimson.com>,   * or Al Borchers <alborchers@steinerpoint.com>. - * - * Version history: - * - *	July 11, 2002 	Removed 4 port device structure since all TI UMP - *			chips have only 2 ports - *			David Iacovelli (davidi@ionetworks.com) - *   */  #include <linux/kernel.h> @@ -1777,12 +1770,11 @@ static void edge_bulk_in_callback(struct urb *urb)  exit:  	/* continue read unless stopped */  	spin_lock(&edge_port->ep_lock); -	if (edge_port->ep_read_urb_state == EDGE_READ_URB_RUNNING) { -		urb->dev = edge_port->port->serial->dev; +	if (edge_port->ep_read_urb_state == EDGE_READ_URB_RUNNING)  		retval = usb_submit_urb(urb, GFP_ATOMIC); -	} else if (edge_port->ep_read_urb_state == EDGE_READ_URB_STOPPING) { +	else if (edge_port->ep_read_urb_state == EDGE_READ_URB_STOPPING)  		edge_port->ep_read_urb_state = EDGE_READ_URB_STOPPED; -	} +  	spin_unlock(&edge_port->ep_lock);  	if (retval)  		dev_err(&urb->dev->dev, @@ -1959,9 +1951,7 @@ static int edge_open(struct tty_struct *tty, struct usb_serial_port *port)  			status = -EINVAL;  			goto release_es_lock;  		} -		urb->complete = edge_interrupt_callback;  		urb->context = edge_serial; -		urb->dev = dev;  		status = usb_submit_urb(urb, GFP_KERNEL);  		if (status) {  			dev_err(&port->dev, @@ -1987,9 +1977,7 @@ static int edge_open(struct tty_struct *tty, struct usb_serial_port *port)  		goto unlink_int_urb;  	}  	edge_port->ep_read_urb_state = EDGE_READ_URB_RUNNING; -	urb->complete = edge_bulk_in_callback;  	urb->context = edge_port; -	urb->dev = dev;  	status = usb_submit_urb(urb, GFP_KERNEL);  	if (status) {  		dev_err(&port->dev, @@ -2118,12 +2106,7 @@ static void edge_send(struct tty_struct *tty)  				port->write_urb->transfer_buffer);  	/* set up our urb */ -	usb_fill_bulk_urb(port->write_urb, port->serial->dev, -			   usb_sndbulkpipe(port->serial->dev, -					    port->bulk_out_endpointAddress), -			   port->write_urb->transfer_buffer, count, -			   edge_bulk_out_callback, -			   port); +	port->write_urb->transfer_buffer_length = count;  	/* send the data out the bulk port */  	result = usb_submit_urb(port->write_urb, GFP_ATOMIC); @@ -2267,9 +2250,6 @@ static int restart_read(struct edgeport_port *edge_port)  	if (edge_port->ep_read_urb_state == EDGE_READ_URB_STOPPED) {  		urb = edge_port->port->read_urb; -		urb->complete = edge_bulk_in_callback; -		urb->context = edge_port; -		urb->dev = edge_port->port->serial->dev;  		status = usb_submit_urb(urb, GFP_ATOMIC);  	}  	edge_port->ep_read_urb_state = EDGE_READ_URB_RUNNING;  |