OSDN Git Service

usb: gadget: atmel_usba_udc: add ep capabilities support on device tree binding
authorSylvain Rochet <sylvain.rochet@finsecur.com>
Fri, 18 Sep 2015 14:58:28 +0000 (16:58 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Sep 2015 19:42:35 +0000 (14:42 -0500)
commitcf261fd1a444e87894c2ed8f481606ead7916fab
treea2ec63978f5e20319dc197955399c77bfb9c15cd
parent762982db33b23029e98c844611e2e8beeb75bc0d
usb: gadget: atmel_usba_udc: add ep capabilities support on device tree binding

The recently added endpoint capabilities flags verification breaks Atmel
USBA because the endpoint configuration was only added when the driver
is bound using the legacy pdata interface.

Convert endpoint configuration to new capabilities model when driver is
bound to a device tree as well.

Signed-off-by: Sylvain Rochet <sylvain.rochet@finsecur.com>
Fixes: 47bef3865115 ("usb: gadget: atmel_usba_udc: add ep capabilities support")
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/atmel_usba_udc.c