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 41c1a9c1b..accd06a45 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 @@ -287,7 +287,8 @@ static unsigned int xhci_extended_capability ( struct xhci_host *xhci, /* Locate first or next capability as applicable */ if ( offset ) { - xecp = readl ( xhci->cap + offset ); + // xecp = readl ( xhci->cap + offset ); + xecp = readl ( xhci->cap_addr + offset ); next = XHCI_XECP_NEXT ( xecp ); } else { next = xhci->xecp; @@ -297,7 +298,9 @@ static unsigned int xhci_extended_capability ( struct xhci_host *xhci, offset += next; /* Check if this is the requested capability */ - xecp = readl ( xhci->cap + offset ); +// xecp = readl ( xhci->cap + offset ); + xecp = readl ( xhci->cap_addr + offset ); + if ( XHCI_XECP_ID ( xecp ) == id ) return offset; }