Merge tag 'usb-serial-4.19-rc1' of https://git.kernel.org/pub/scm/linux/kernel/git/johan/usb-serial into usb-next
Johan writes: USB-serial updates for v4.19-rc1 Here are the USB-serial updates for 4.19-rc1, including: - gpio support for CP2102N devices - improved line-speed handling for cp210x - conversion to spin_lock_irqsave() in completion handlers - dropped kl5kusb105 support from the kl5kusb105 driver (sic!) Included are also various lower-priority fixes and clean ups. All but the final commit have been in linux-next, and with no reported issues. Signed-off-by: Johan Hovold <johan@kernel.org>
此提交包含在:
@@ -805,18 +805,19 @@ static void mos7840_bulk_out_data_callback(struct urb *urb)
|
||||
struct moschip_port *mos7840_port;
|
||||
struct usb_serial_port *port;
|
||||
int status = urb->status;
|
||||
unsigned long flags;
|
||||
int i;
|
||||
|
||||
mos7840_port = urb->context;
|
||||
port = mos7840_port->port;
|
||||
spin_lock(&mos7840_port->pool_lock);
|
||||
spin_lock_irqsave(&mos7840_port->pool_lock, flags);
|
||||
for (i = 0; i < NUM_URBS; i++) {
|
||||
if (urb == mos7840_port->write_urb_pool[i]) {
|
||||
mos7840_port->busy[i] = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
spin_unlock(&mos7840_port->pool_lock);
|
||||
spin_unlock_irqrestore(&mos7840_port->pool_lock, flags);
|
||||
|
||||
if (status) {
|
||||
dev_dbg(&port->dev, "nonzero write bulk status received:%d\n", status);
|
||||
|
新增問題並參考
封鎖使用者