Re: [PATCH 1/3] usb: gadget: dummy_hcd: refactor dummy_start to be DRY

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux