usb: chipidea: udc: refine ep operation at isr_tr_complete_handler
authorPeter Chen <peter.chen@freescale.com>
Wed, 19 Feb 2014 05:41:41 +0000 (13:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Feb 2014 01:07:52 +0000 (17:07 -0800)
commit64fc06c40e01aa8129f5bc4c51567b5e205126b0
tree063b28ae9f0b3baa4103fff11e8eee72d8843023
parentc859aa65a7ec40c02f435f14fa71de2a87c64513
usb: chipidea: udc: refine ep operation at isr_tr_complete_handler

- delete the warning message at interrupt handler, and adds judgement at
ep_enable, if non-ep0 requests ctrl transfer, it will indicate an error.
- delete hw_test_and_clear_setup_status which is a broken code
- Tested with g_mass_storage, g_ncm, g_ether

Cc: matthieu.castet@parrot.com
Reported-by: Michael Grzeschik <mgr@pengutronix.de>
Acked-by: Michael Grzeschik <mgr@pengutronix.de>
Tested-by: Michael Grzeschik <mgr@pengutronix.de>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/udc.c