1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-23 00:22:01 +00:00

bdk: xusb: fully clear device mode ctrl register on deinit

This commit is contained in:
CTCaer 2022-07-11 22:13:13 +03:00
parent d259d6f6d6
commit 801ebd3543

View file

@ -1996,7 +1996,7 @@ void xusb_end(bool reset_ep, bool only_controller)
_xusb_disable_ep1();
// Disable device mode.
XUSB_DEV_XHCI(XUSB_DEV_XHCI_CTRL) &= ~XHCI_CTRL_ENABLE;
XUSB_DEV_XHCI(XUSB_DEV_XHCI_CTRL) = 0;
//! TODO: Add only controller support?
_xusb_device_power_down();