From 21a0f8ed30401fff2d815e61a599cb3b37b68cee Mon Sep 17 00:00:00 2001 From: xj Date: Mon, 1 Jul 2024 04:13:01 -0700 Subject: [PATCH] Modify xhci_reset so that the xHCI can adapt to XiZi AIOT --- .../services/drivers/usb/components/port/xhci/xhci.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 193907743..c87ec3293 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 @@ -479,13 +479,16 @@ static int xhci_reset ( struct xhci_host *xhci ) { } /* Reset device */ - writel ( XHCI_USBCMD_HCRST, xhci->op + XHCI_OP_USBCMD ); +// writel ( XHCI_USBCMD_HCRST, xhci->op + XHCI_OP_USBCMD ); + writel ( XHCI_USBCMD_HCRST, xhci->op_addr + XHCI_OP_USBCMD ); + /* Wait for reset to complete */ for ( i = 0 ; i < XHCI_RESET_MAX_WAIT_MS ; i++ ) { /* Check if reset is complete */ - usbcmd = readl ( xhci->op + XHCI_OP_USBCMD ); +// usbcmd = readl ( xhci->op + XHCI_OP_USBCMD ); + usbcmd = readl ( xhci->op_addr + XHCI_OP_USBCMD ); if ( ! ( usbcmd & XHCI_USBCMD_HCRST ) ) return 0;