diff --git a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c index 54420b966..5bca1de1a 100644 --- a/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c +++ b/Ubiquitous/XiZi_AIoT/services/drivers/usb/components/port/xhci/xhci.c @@ -1157,11 +1157,12 @@ static void xhci_dcbaa_free ( struct xhci_host *xhci ) { USB_ASSERT ( xhci->dcbaa.context[i] == 0 ); /* Clear DCBAA pointer */ - xhci_writeq ( xhci, 0, xhci->op + XHCI_OP_DCBAAP ); +// xhci_writeq ( xhci, 0, xhci->op + XHCI_OP_DCBAAP ); + xhci_writeq ( xhci, 0, xhci->op_addr + XHCI_OP_DCBAAP ); /* Free DCBAA */ len = ( ( xhci->slots + 1 ) * sizeof ( xhci->dcbaa.context[0] ) ); - usb_free ( xhci->dcbaa.context ); +// usb_free ( xhci->dcbaa.context ); } /** @@ -1230,9 +1231,9 @@ void xhci_close ( struct xhci_host *xhci ) { USB_ASSERT ( xhci->slot[i] == NULL ); xhci_stop ( xhci ); - usb_free (xhci->evts); - usb_free (xhci->eseg); - usb_free (xhci->cmds); +// usb_free (xhci->evts); +// usb_free (xhci->eseg); +// usb_free (xhci->cmds); xhci_scratchpad_free ( xhci ); xhci_dcbaa_free ( xhci ); usb_free ( xhci->slot );