forked from yystopf/xiuos
Modify xhci_extended_capability so that the xHCI can adapt to XiZi AIOT
This commit is contained in:
parent
7c48797ecf
commit
eac58cedec
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue