Re: [PATCH] USB: cdc-acm: fix double usb_autopm_put_interface() in acm_port_activate()

2014-04-12 Thread Oliver Neukum
On Sat, 2014-04-12 at 02:10 +0400, Alexey Khoroshilov wrote: > If acm_submit_read_urbs() fails in acm_port_activate(), error handling > code calls usb_autopm_put_interface() while it is already called > before acm_submit_read_urbs(). The patch reorganizes error handling code > to avoid double decre

Re: about possible port reset when disconnect

2014-04-12 Thread vichy
hi Alan: 2014-04-09 6:58 GMT+08:00 Alan Stern : > On Tue, 8 Apr 2014, vichy wrote: > >> > That's a different bit. USB_PORT_FEAT_C_RESET isn't the same as >> > USB_PORT_FEAT_RESET. >> what I am curious is, >> if port reset bit will clear to 0 within 2ms, why we still need to >> clear_port_feature