On Tue, 3 Jun 2014, Pantelis  Koukousoulas wrote:

> So, in the end dummy_start_ss() can be replaced by just adding
> an
> 
> if (usb_is_primary_hcd(hcd))
>   spin_lock_init(&dum_hcd->dum->lock);
> 
> near the top of dummy_start() and
> 
> if(!usb_is_primary_hcd(hcd)) {
>    dum_hcd->stream_en_ep = 0;
>    return 0;
> }
> 
> near the bottom, right? (so that the device file will only be created
> once).

That's right.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to