Commit 252bd2e3 authored by Chunfeng Yun's avatar Chunfeng Yun Committed by Marek Vasut

usb: gadget: Add bcdDevice for the MTU3 USB Gadget Controller

Add an entry in usb_gadget_controller_number() for the MTU3
gadget controller. It is used to bind the USB Ethernet driver.
Signed-off-by: default avatarChunfeng Yun <>
Reviewed-by: Bin Meng's avatarBin Meng <>
parent e09b88cd
......@@ -161,6 +161,12 @@
#define gadget_is_max3420(g) 0
#define gadget_is_mtu3(g) (!strcmp("mtu3-gadget", (g)->name))
#define gadget_is_mtu3(g) 0
* usb_gadget_controller_number - support bcdDevice id convention
* @gadget: the controller being driven
......@@ -224,5 +230,7 @@ static inline int usb_gadget_controller_number(struct usb_gadget *gadget)
return 0x24;
else if (gadget_is_max3420(gadget))
return 0x25;
else if (gadget_is_mtu3(gadget))
return 0x26;
return -ENOENT;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment