File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
drivers/usb/gadget/function Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1421,10 +1421,6 @@ void gserial_disconnect(struct gserial *gser)
1421
1421
/* REVISIT as above: how best to track this? */
1422
1422
port -> port_line_coding = gser -> port_line_coding ;
1423
1423
1424
- /* disable endpoints, aborting down any active I/O */
1425
- usb_ep_disable (gser -> out );
1426
- usb_ep_disable (gser -> in );
1427
-
1428
1424
port -> port_usb = NULL ;
1429
1425
gser -> ioport = NULL ;
1430
1426
if (port -> port .count > 0 ) {
@@ -1436,6 +1432,10 @@ void gserial_disconnect(struct gserial *gser)
1436
1432
spin_unlock (& port -> port_lock );
1437
1433
spin_unlock_irqrestore (& serial_port_lock , flags );
1438
1434
1435
+ /* disable endpoints, aborting down any active I/O */
1436
+ usb_ep_disable (gser -> out );
1437
+ usb_ep_disable (gser -> in );
1438
+
1439
1439
/* finally, free any unused/unusable I/O buffers */
1440
1440
spin_lock_irqsave (& port -> port_lock , flags );
1441
1441
if (port -> port .count == 0 )
You can’t perform that action at this time.
0 commit comments