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 @@ -1393,10 +1393,6 @@ void gserial_disconnect(struct gserial *gser)
1393
1393
/* REVISIT as above: how best to track this? */
1394
1394
port -> port_line_coding = gser -> port_line_coding ;
1395
1395
1396
- /* disable endpoints, aborting down any active I/O */
1397
- usb_ep_disable (gser -> out );
1398
- usb_ep_disable (gser -> in );
1399
-
1400
1396
port -> port_usb = NULL ;
1401
1397
gser -> ioport = NULL ;
1402
1398
if (port -> port .count > 0 ) {
@@ -1408,6 +1404,10 @@ void gserial_disconnect(struct gserial *gser)
1408
1404
spin_unlock (& port -> port_lock );
1409
1405
spin_unlock_irqrestore (& serial_port_lock , flags );
1410
1406
1407
+ /* disable endpoints, aborting down any active I/O */
1408
+ usb_ep_disable (gser -> out );
1409
+ usb_ep_disable (gser -> in );
1410
+
1411
1411
/* finally, free any unused/unusable I/O buffers */
1412
1412
spin_lock_irqsave (& port -> port_lock , flags );
1413
1413
if (port -> port .count == 0 )
You can’t perform that action at this time.
0 commit comments