Re: [PATCH] usb: gadget: use usb_composite_dev for usb_function_{de}activate

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

 



Hi Felipe,

On Tue, Sep 10, 2013 at 04:19:40PM +0200, Michael Grzeschik wrote:
> usb_function_{de}activate makes it possible to have several "gadget
> functions", inside one composite device, to be able to prevent the gadget
> to enumerate until an prepared condition has triggered (i.e. userspace
> daemon has started)
> 
> This patch simplifies and renames the functions to its actual meaning
> usb_cdev_{de}activate and fixes all its users. As the code is counting
> the deactivations in the current cdev.

I was working on this also to be used in udc-core for udc_bind_to_driver.
Because the current implementation will call usb_gadget_connect without
checking for delaying functions.  But for that the whole mechanism needs
to be ported to gadget level.

What do you think about usb_gadget_deactivate/usb_gadget_activate ?

Regards,
Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
--
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