Messages in this thread | | | From | Felipe Balbi <> | Subject | Re: [PATCH v10 08/14] usb: otg: add OTG/dual-role core | Date | Fri, 10 Jun 2016 14:02:36 +0300 |
| |
Hi,
Roger Quadros <rogerq@ti.com> writes: >>> What is wrong with calling it gadget controller? >> >> It's not a controller, it's a piece of software AFAIU. Or is my English just too weak? :-) > > Everything at this point is a piece of software :). > > struct usb_gadget, represents the gadget controller device not the > driver (or software). > > struct usb_gadget_driver represents the gadget function driver. > struct usb_gadget_ops represents the UDC driver ops.
right, and usb_udc was added just to have a way of linking usb_gadget with usb_gadget_driver so we could have more than one peripheral port in a system.
-- balbi [unhandled content-type:application/pgp-signature]
| |