forked from xuos/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 */
|
/* 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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue