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

Commit 8ccef113 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: Add flag to determine gadget controller"

parents 938cb2e2 ac38cd8c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3808,6 +3808,7 @@ static int udc_probe(struct ci13xxx_udc_driver *driver, struct device *dev,
	udc->gadget.max_speed    = USB_SPEED_HIGH;
	udc->gadget.is_otg       = 0;
	udc->gadget.name         = driver->name;
	udc->gadget.is_chipiea   = true;

	/* alloc resources */
	udc->qh_pool = dma_pool_create("ci13xxx_qh", dev,
+2 −0
Original line number Diff line number Diff line
@@ -481,6 +481,7 @@ struct usb_gadget_ops {
 * @bam2bam_func_enabled; Indicates function using bam2bam is enabled or not.
 * @extra_buf_alloc: Extra allocation size for AXI prefetch so that out of
 * boundary access is protected.
 * @is_chipidea: True if ChipIdea device controller
 *
 * Gadgets have a mostly-portable "gadget driver" implementing device
 * functions, handling all usb configurations and interfaces.  Gadget
@@ -537,6 +538,7 @@ struct usb_gadget {
	bool				bam2bam_func_enabled;
	u32				extra_buf_alloc;
	bool				l1_supported;
	bool                            is_chipidea;
};
#define work_to_gadget(w)	(container_of((w), struct usb_gadget, work))