Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7000aa0 authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: gadget: add isoch_delay member



Whenever a USB host issues a Set Isoch Delay request, we should cache
the result so relevant gadget drivers can make use of the value for
calculating how many uFrames ahead a transfer should be queued.

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 0c5d2954
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -330,6 +330,7 @@ struct usb_gadget_ops {
 * @name: Identifies the controller hardware type.  Used in diagnostics
 *	and sometimes configuration.
 * @dev: Driver model state for this abstract device.
 * @isoch_delay: value from Set Isoch Delay request. Only valid on SS/SSP
 * @out_epnum: last used out ep number
 * @in_epnum: last used in ep number
 * @mA: last set mA value
@@ -394,6 +395,7 @@ struct usb_gadget {
	enum usb_device_state		state;
	const char			*name;
	struct device			dev;
	unsigned			isoch_delay;
	unsigned			out_epnum;
	unsigned			in_epnum;
	unsigned			mA;