[v2] Introduce new-style bind for udcs

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

 



The new style start calls the udc only to kick its internal and to very
little house keeping. The udc-core does the bind and the connect call.
This save some lines since every udc is doing this on its own. This will
also ease removing the dev from struct gadget in a later step.
While doing this I also re-worked the dummy_hcd in a few points to fit
this infrastructure. It also removes the module parameter from dummy_hcd
where the user was supposed to to enable SS by hand or else it won't bind
to an SS device.
This series was tested with dummy_hcd + g_zero for 2.0 part and with
Tatyana's "usb:gadget: Introduce usb_generate_ss_descriptors()" +
generate_ss_desc = 1 on g_zero and dummy_hcd for the 3.0 part. The device
was passed to the correct hcd and was working with
|./testusb -a -s 1024 -v 1024 -t 1
on both speeds.

v1..v2:
	- dropped the two patches from dummy_hcd which always put dummy_hcd in
	  SS mode and kept the module parameters.
	- gadget->speed is now set post ->pull() also the max_stream property
	  is only initialized after ->pull() (no longer in probe).

Sebastian                     
--
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