[2/4] usb: renesas: switch over to endpoint feature flags

Message ID 1393954366-22987-2-git-send-email-balbi@ti.com
State New
Headers show

Commit Message

Felipe Balbi March 4, 2014, 5:32 p.m.
switch over to endpoint feature flags so we can
drop naming conventions.

Signed-off-by: Felipe Balbi <balbi@ti.com>
---
 drivers/usb/renesas_usbhs/mod_gadget.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

Patch

diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c
index 458f376..e798d7a 100644
--- a/drivers/usb/renesas_usbhs/mod_gadget.c
+++ b/drivers/usb/renesas_usbhs/mod_gadget.c
@@ -982,15 +982,26 @@  int usbhs_mod_gadget_probe(struct usbhs_priv *priv)
 
 		uep->ep.name		= uep->ep_name;
 		uep->ep.ops		= &usbhsg_ep_ops;
+
 		INIT_LIST_HEAD(&uep->ep.ep_list);
 
 		/* init DCP */
 		if (usbhsg_is_dcp(uep)) {
+			uep->ep.has_dir_in	= true;
+			uep->ep.has_dir_out	= true;
+			uep->ep.has_control	= true;
+
 			gpriv->gadget.ep0 = &uep->ep;
 			usb_ep_set_maxpacket_limit(&uep->ep, 64);
 		}
 		/* init normal pipe */
 		else {
+			uep->ep.has_dir_in	= true;
+			uep->ep.has_dir_out	= true;
+			uep->ep.has_bulk	= true;
+			uep->ep.has_interrupt	= true;
+			uep->ep.has_isochronous	= true;
+
 			usb_ep_set_maxpacket_limit(&uep->ep, 512);
 			list_add_tail(&uep->ep.ep_list, &gpriv->gadget.ep_list);
 		}