From 0516a4d1e962743300075a9b446aaf835d5bf789 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 7 Nov 2013 19:07:16 -0600 Subject: [PATCH] Back out a small part of the recent STM32 usbdev fix. From David Sidrane --- arch/arm/src/stm32/stm32_usbdev.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/arm/src/stm32/stm32_usbdev.c b/arch/arm/src/stm32/stm32_usbdev.c index bcc2d97b98..816e974095 100644 --- a/arch/arm/src/stm32/stm32_usbdev.c +++ b/arch/arm/src/stm32/stm32_usbdev.c @@ -1774,17 +1774,8 @@ static void stm32_ep0setup(struct stm32_usbdev_s *priv) usbtrace(TRACE_INTDECODE(STM32_TRACEINTID_EP0SETUPOUT), len.w); - /* At this point priv->ctrl is the setup packet. Just ACK the - * setup packet So we can get the data. - * - * REVISIT: I suspect that this should not be here? - */ + /* At this point priv->ctrl is the setup packet. */ - stm32_epwrite(priv, ep0, response.b, 0); - - /* Enable and Wait for the data phase. */ - - priv->rxstatus = USB_EPR_STATRX_VALID; priv->ep0state = EP0STATE_SETUP_OUT; return; }