EHCI: We not need disable and enable async scheduler when

This commit is contained in:
Ilya Averyanov 2015-09-07 13:44:56 -06:00 committed by Gregory Nutt
parent 8cc83fa6dc
commit 560613622d
2 changed files with 0 additions and 22 deletions

View File

@ -2313,20 +2313,9 @@ static int lpc31_async_setup(struct lpc31_rhport_s *rhport,
} }
} }
/* Disable the asynchronous schedule */
regval = lpc31_getreg(&HCOR->usbcmd);
regval &= ~EHCI_USBCMD_ASEN;
lpc31_putreg(regval, &HCOR->usbcmd);
/* Add the new QH to the head of the asynchronous queue list */ /* Add the new QH to the head of the asynchronous queue list */
lpc31_qh_enqueue(&g_asynchead, qh); lpc31_qh_enqueue(&g_asynchead, qh);
/* Re-enable the asynchronous schedule */
regval |= EHCI_USBCMD_ASEN;
lpc31_putreg(regval, &HCOR->usbcmd);
return OK; return OK;
/* Clean-up after an error */ /* Clean-up after an error */

View File

@ -2129,20 +2129,9 @@ static int sam_async_setup(struct sam_rhport_s *rhport,
} }
} }
/* Disable the asynchronous schedule */
regval = sam_getreg(&HCOR->usbcmd);
regval &= ~EHCI_USBCMD_ASEN;
sam_putreg(regval, &HCOR->usbcmd);
/* Add the new QH to the head of the asynchronous queue list */ /* Add the new QH to the head of the asynchronous queue list */
sam_qh_enqueue(&g_asynchead, qh); sam_qh_enqueue(&g_asynchead, qh);
/* Re-enable the asynchronous schedule */
regval |= EHCI_USBCMD_ASEN;
sam_putreg(regval, &HCOR->usbcmd);
return OK; return OK;
/* Clean-up after an error */ /* Clean-up after an error */