Commit 01bef716 authored by Jun Li's avatar Jun Li Committed by Andrzej Puzdrowski
Browse files

bugfix: disable usb for all usb funcs

USB should be disabled if any usb func is enabled.

fix #477

Signed-off-by: default avatarJun Li <jun.r.li@intel.com>
parent db6be2d1
Loading
Loading
Loading
Loading
+1 −1
Changes for boot/zephyr/main.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ static void do_boot(struct boot_rsp *rsp)
                                     rsp->br_hdr->ih_hdr_size);
    irq_lock();
    sys_clock_disable();
#ifdef CONFIG_BOOT_SERIAL_CDC_ACM
#ifdef CONFIG_USB
    /* Disable the USB to prevent it from firing interrupts */
    usb_disable();
#endif