Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36700
b: refs/heads/master
c: e81ee63
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Greg Kroah-Hartman committed Sep 28, 2006
1 parent 91663aa commit 0f6a26c
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 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: 2e3a43f0b6f16705ec76d3744b82a116965ebebe
refs/heads/master: e81ee637e4aed723f71007c90a901268317ed6d6
6 changes: 3 additions & 3 deletions trunk/drivers/usb/serial/cyberjack.c
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ static int cyberjack_write (struct usb_serial_port *port, const unsigned char *b
return (0);
}

spin_lock(&port->lock);
spin_lock_bh(&port->lock);
if (port->write_urb_busy) {
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);
dbg("%s - already writing", __FUNCTION__);
return 0;
}
port->write_urb_busy = 1;
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);

spin_lock_irqsave(&priv->lock, flags);

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/usb/serial/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,14 @@ int usb_serial_generic_write(struct usb_serial_port *port, const unsigned char *

/* only do something if we have a bulk out endpoint */
if (serial->num_bulk_out) {
spin_lock(&port->lock);
spin_lock_bh(&port->lock);
if (port->write_urb_busy) {
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);
dbg("%s - already writing", __FUNCTION__);
return 0;
}
port->write_urb_busy = 1;
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);

count = (count > port->bulk_out_size) ? port->bulk_out_size : count;

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/usb/serial/ipw.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,14 +394,14 @@ static int ipw_write(struct usb_serial_port *port, const unsigned char *buf, int
return 0;
}

spin_lock(&port->lock);
spin_lock_bh(&port->lock);
if (port->write_urb_busy) {
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);
dbg("%s - already writing", __FUNCTION__);
return 0;
}
port->write_urb_busy = 1;
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);

count = min(count, port->bulk_out_size);
memcpy(port->bulk_out_buffer, buf, count);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/usb/serial/ir-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,14 +342,14 @@ static int ir_write (struct usb_serial_port *port, const unsigned char *buf, int
if (count == 0)
return 0;

spin_lock(&port->lock);
spin_lock_bh(&port->lock);
if (port->write_urb_busy) {
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);
dbg("%s - already writing", __FUNCTION__);
return 0;
}
port->write_urb_busy = 1;
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);

transfer_buffer = port->write_urb->transfer_buffer;
transfer_size = min(count, port->bulk_out_size - 1);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/usb/serial/keyspan_pda.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,13 +518,13 @@ static int keyspan_pda_write(struct usb_serial_port *port,
the TX urb is in-flight (wait until it completes)
the device is full (wait until it says there is room)
*/
spin_lock(&port->lock);
spin_lock_bh(&port->lock);
if (port->write_urb_busy || priv->tx_throttled) {
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);
return 0;
}
port->write_urb_busy = 1;
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);

/* At this point the URB is in our control, nobody else can submit it
again (the only sudden transition was the one from EINPROGRESS to
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/usb/serial/omninet.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,14 @@ static int omninet_write (struct usb_serial_port *port, const unsigned char *buf
return (0);
}

spin_lock(&wport->lock);
spin_lock_bh(&wport->lock);
if (wport->write_urb_busy) {
spin_unlock(&wport->lock);
spin_unlock_bh(&wport->lock);
dbg("%s - already writing", __FUNCTION__);
return 0;
}
wport->write_urb_busy = 1;
spin_unlock(&wport->lock);
spin_unlock_bh(&wport->lock);

count = (count > OMNINET_BULKOUTSIZE) ? OMNINET_BULKOUTSIZE : count;

Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/usb/serial/safe_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,14 +298,14 @@ static int safe_write (struct usb_serial_port *port, const unsigned char *buf, i
dbg ("%s - write request of 0 bytes", __FUNCTION__);
return (0);
}
spin_lock(&port->lock);
spin_lock_bh(&port->lock);
if (port->write_urb_busy) {
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);
dbg("%s - already writing", __FUNCTION__);
return 0;
}
port->write_urb_busy = 1;
spin_unlock(&port->lock);
spin_unlock_bh(&port->lock);

packet_length = port->bulk_out_size; // get max packetsize

Expand Down

0 comments on commit 0f6a26c

Please sign in to comment.