Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167293
b: refs/heads/master
c: 63b0061
h: refs/heads/master
i:
  167291: 227e11c
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Oct 9, 2009
1 parent 10d85cf commit 8e36a35
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0cbd81a9f6bac734ac3266687bf027af1e395270
refs/heads/master: 63b0061246b54b849da8f189ae048e8110d8ce7d
13 changes: 0 additions & 13 deletions trunk/drivers/usb/serial/ftdi_sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ struct ftdi_private {
struct delayed_work rx_work;
struct usb_serial_port *port;
int rx_processed;
unsigned long rx_bytes;

__u16 interface; /* FT2232C, FT2232H or FT4232H port interface
(0 for FT232/245) */
Expand Down Expand Up @@ -1699,9 +1698,6 @@ static int ftdi_open(struct tty_struct *tty, struct usb_serial_port *port)
spin_lock_irqsave(&priv->tx_lock, flags);
priv->tx_bytes = 0;
spin_unlock_irqrestore(&priv->tx_lock, flags);
spin_lock_irqsave(&priv->rx_lock, flags);
priv->rx_bytes = 0;
spin_unlock_irqrestore(&priv->rx_lock, flags);

write_latency_timer(port);

Expand Down Expand Up @@ -2014,8 +2010,6 @@ static void ftdi_read_bulk_callback(struct urb *urb)
struct usb_serial_port *port = urb->context;
struct tty_struct *tty;
struct ftdi_private *priv;
unsigned long countread;
unsigned long flags;
int status = urb->status;

if (urb->number_of_packets > 0) {
Expand Down Expand Up @@ -2054,13 +2048,6 @@ static void ftdi_read_bulk_callback(struct urb *urb)
goto out;
}

/* count data bytes, but not status bytes */
countread = urb->actual_length;
countread -= 2 * DIV_ROUND_UP(countread, priv->max_packet_size);
spin_lock_irqsave(&priv->rx_lock, flags);
priv->rx_bytes += countread;
spin_unlock_irqrestore(&priv->rx_lock, flags);

ftdi_process_read(&priv->rx_work.work);
out:
tty_kref_put(tty);
Expand Down

0 comments on commit 8e36a35

Please sign in to comment.