Make sure the system is boosted before enabling USB hardware.

Change-Id: Ib44d29384f359dff24f0ce012667d9ce93328dc2
This commit is contained in:
Michael Giacomelli 2016-01-18 23:55:22 +01:00
parent 9f364a13c6
commit 7432af0958

View file

@ -33,10 +33,13 @@ static int usb_status = USB_EXTRACTED;
void usb_enable(bool on) void usb_enable(bool on)
{ {
#if defined(HAVE_USBSTACK) #if defined(HAVE_USBSTACK)
if (on) if (on){
cpu_boost(1);
usb_core_init(); usb_core_init();
else } else {
usb_core_exit(); usb_core_exit();
cpu_boost(0);
}
#else #else
(void)on; (void)on;
#endif #endif