EHCI: We not need disable and enable async scheduler when
This commit is contained in:
parent
8cc83fa6dc
commit
560613622d
@ -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 */
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user