From d374d22738c1aed90622fefb612e5a2670694478 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 17 Apr 2014 11:16:58 -0600 Subject: [PATCH] STM32 OTGFS Host: If OTGFS_HCCHAR_ODDFRM is not goint to be set, then it should be cleared --- arch/arm/src/stm32/stm32_otgfshost.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/arch/arm/src/stm32/stm32_otgfshost.c b/arch/arm/src/stm32/stm32_otgfshost.c index 6341a5833c..7866365d92 100644 --- a/arch/arm/src/stm32/stm32_otgfshost.c +++ b/arch/arm/src/stm32/stm32_otgfshost.c @@ -69,7 +69,7 @@ #if defined(CONFIG_USBHOST) && (defined(CONFIG_STM32_OTGFS) || defined(CONFIG_STM32_OTGFS2)) /******************************************************************************* - * Definitions + * Pre-processor Definitions *******************************************************************************/ /* Configuration ***************************************************************/ /* @@ -1162,6 +1162,10 @@ static void stm32_transfer_start(FAR struct stm32_usbhost_s *priv, int chidx) { regval |= OTGFS_HCCHAR_ODDFRM; } + else + { + regval &= ~OTGFS_HCCHAR_ODDFRM; + } regval &= ~OTGFS_HCCHAR_CHDIS; regval |= OTGFS_HCCHAR_CHENA;