usb: host: xhci: Fix secondary event ring setup
In xhci_event_ring_setup() function xhci_alloc_erst() API is incorrectly passing primary interrupter's event ring and erst address instead of using it from the function parameter. Due to that erst dma address does not get populated. This results into smmu page fault when secondary event ring is setup and erst base address is programmed as 0x0. Change-Id: I71227ecd2b8da9efa8b14157777660f139180438 Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
This commit is contained in:
@@ -2471,7 +2471,7 @@ int xhci_event_ring_setup(struct xhci_hcd *xhci, struct xhci_ring **er,
|
||||
if (!*er)
|
||||
return -ENOMEM;
|
||||
|
||||
ret = xhci_alloc_erst(xhci, xhci->event_ring, &xhci->erst, flags);
|
||||
ret = xhci_alloc_erst(xhci, *er, erst, flags);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user