From eac58cedec899e382c56088995d6ac90995caf0f Mon Sep 17 00:00:00 2001 From: xj Date: Mon, 1 Jul 2024 00:12:14 -0700 Subject: [PATCH] Modify xhci_extended_capability 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 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; }