USB: atmel-usba-udc : fix control out requests.
authorMartin Fuzzey <mfuzzey@gmail.com>
Fri, 1 May 2009 15:21:11 +0000 (17:21 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 28 May 2009 20:54:40 +0000 (13:54 -0700)
commitf42706c90470851fd2e97eda7a4109e8949bde8a
treea71b369bdfa2191502d1396a2dfa471b261eb4a5
parentb5c42bc8db17db80917f99205a03c51f17354495
USB: atmel-usba-udc : fix control out requests.

usbtest #14 was failing with "udc: ep0: TXCOMP: Invalid endpoint state 2, halting endpoint..."
This occured since ep0 is bidirectional and ep->is_in is not valid (must always use ep->state)

Signed-off-by: Martin Fuzzey <mfuzzey@gmail.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/atmel_usba_udc.c