Modify xhci_extended_capability so that the xHCI can adapt to XiZi AIOT

This commit is contained in:
xj 2024-07-01 00:12:14 -07:00
parent 7c48797ecf
commit eac58cedec
1 changed files with 5 additions and 2 deletions

View File

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