STM32 OTF FS/HS Host. Fix two cases where stm32_putreg parameters were backward. Noted by Hang Xu

This commit is contained in:
Gregory Nutt
2016-01-18 08:10:37 -06:00
parent 0e86ee747a
commit 74c7e3d0bf
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -4839,7 +4839,7 @@ static void stm32_flush_txfifos(uint32_t txfnum)
/* Initiate the TX FIFO flush operation */
regval = OTGFS_GRSTCTL_TXFFLSH | txfnum;
stm32_putreg(regval, STM32_OTGFS_GRSTCTL);
stm32_putreg(STM32_OTGFS_GRSTCTL, regval);
/* Wait for the FLUSH to complete */
@@ -4878,7 +4878,7 @@ static void stm32_flush_rxfifo(void)
/* Initiate the RX FIFO flush operation */
stm32_putreg(OTGFS_GRSTCTL_RXFFLSH, STM32_OTGFS_GRSTCTL);
stm32_putreg(STM32_OTGFS_GRSTCTL, OTGFS_GRSTCTL_RXFFLSH);
/* Wait for the FLUSH to complete */
+2 -2
View File
@@ -4839,7 +4839,7 @@ static void stm32_flush_txfifos(uint32_t txfnum)
/* Initiate the TX FIFO flush operation */
regval = OTGHS_GRSTCTL_TXFFLSH | txfnum;
stm32_putreg(regval, STM32_OTGHS_GRSTCTL);
stm32_putreg(STM32_OTGHS_GRSTCTL, regval);
/* Wait for the FLUSH to complete */
@@ -4878,7 +4878,7 @@ static void stm32_flush_rxfifo(void)
/* Initiate the RX FIFO flush operation */
stm32_putreg(OTGHS_GRSTCTL_RXFFLSH, STM32_OTGHS_GRSTCTL);
stm32_putreg(STM32_OTGHS_GRSTCTL, OTGHS_GRSTCTL_RXFFLSH);
/* Wait for the FLUSH to complete */