usb: chipidea: udc: move ZLT flag change to ep_enable
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Sat, 30 Mar 2013 10:54:06 +0000 (12:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Mar 2013 15:20:48 +0000 (08:20 -0700)
commit776ffc16b74a5c19285135cfbc6dd02e1c733f25
treeb756801989adaa5636b7a7e8bef0935555d6b085
parent1cd12a9cf055e72b3094ef38ac4d9afff2e9520e
usb: chipidea: udc: move ZLT flag change to ep_enable

Its not necessary and also not specified in the datasheet to change the
ZLT flag before every ep_prime. This patch moves this to the ep_enable
and applies it only for non configuration endpoints.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/udc.c