XHCI fix naming bug - use XHCI_SLCTX_CTX_ENTRIES instead of XHCI_SLCTX_SLOT_STATE
This commit is contained in:
@@ -768,7 +768,7 @@ static void xhci_pdevice_setup_addressing (struct xhci* xhci, struct xhci_pdevic
|
|||||||
/* Add slot and endpoint 0 */
|
/* Add slot and endpoint 0 */
|
||||||
ctx64->ctrl.dw[1] = (1 << 0) | (1 << 1);
|
ctx64->ctrl.dw[1] = (1 << 0) | (1 << 1);
|
||||||
|
|
||||||
ctx64->slot.dw[0] = (1 << XHCI_SLCTX_SLOT_STATE) | (speed << XHCI_SLCTX_SPEED);
|
ctx64->slot.dw[0] = (1 << XHCI_SLCTX_CTX_ENTRIES) | (speed << XHCI_SLCTX_SPEED);
|
||||||
ctx64->slot.dw[1] = ((pdevice->xhci_port->port_value + 1) << XHCI_SLCTX_ROOTHUBPRNUM);
|
ctx64->slot.dw[1] = ((pdevice->xhci_port->port_value + 1) << XHCI_SLCTX_ROOTHUBPRNUM);
|
||||||
|
|
||||||
ctx64->endpoints[0].dw[0] = 0;
|
ctx64->endpoints[0].dw[0] = 0;
|
||||||
@@ -784,7 +784,7 @@ static void xhci_pdevice_setup_addressing (struct xhci* xhci, struct xhci_pdevic
|
|||||||
|
|
||||||
ctx32->ctrl.dw[1] = (1 << 0) | (1 << 1);
|
ctx32->ctrl.dw[1] = (1 << 0) | (1 << 1);
|
||||||
|
|
||||||
ctx32->slot.dw[0] = (1 << XHCI_SLCTX_SLOT_STATE) | (speed << XHCI_SLCTX_SPEED);
|
ctx32->slot.dw[0] = (1 << XHCI_SLCTX_CTX_ENTRIES) | (speed << XHCI_SLCTX_SPEED);
|
||||||
ctx32->slot.dw[1] = ((pdevice->xhci_port->port_value + 1) << XHCI_SLCTX_ROOTHUBPRNUM);
|
ctx32->slot.dw[1] = ((pdevice->xhci_port->port_value + 1) << XHCI_SLCTX_ROOTHUBPRNUM);
|
||||||
|
|
||||||
ctx32->endpoints[0].dw[1] = (3 << XHCI_EPCTX_ERR_COUNT) |
|
ctx32->endpoints[0].dw[1] = (3 << XHCI_EPCTX_ERR_COUNT) |
|
||||||
|
|||||||
Reference in New Issue
Block a user