mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-13 12:49:35 +02:00
BACKPORT: FROMLIST: xhci: Add a quirk for writing ERST in high-low order
This quirk is for the controller that has a limitation in supporting separate ERSTBA_HI and ERSTBA_LO programming. It's supported when the ERSTBA is programmed ERSTBA_HI before ERSTBA_LO. That's because the internal initialization of event ring fetches the "Event Ring Segment Table Entry" based on the indication of ERSTBA_LO written. Signed-off-by: Daehwan Jung <dh10.jung@samsung.com> Bug: 346655675 Link: https://lore.kernel.org/lkml/1718019553-111939-3-git-send-email-dh10.jung@samsung.com/ Change-Id: I24d4d479aadb18786f2df97389288855fe32f23d Signed-off-by: Daehwan Jung <dh10.jung@samsung.com>
This commit is contained in:
parent
a12901ecd0
commit
6afea34dbb
|
@ -2351,7 +2351,10 @@ xhci_add_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir,
|
|||
erst_base = xhci_read_64(xhci, &ir->ir_set->erst_base);
|
||||
erst_base &= ERST_BASE_RSVDP;
|
||||
erst_base |= ir->erst.erst_dma_addr & ~ERST_BASE_RSVDP;
|
||||
xhci_write_64(xhci, erst_base, &ir->ir_set->erst_base);
|
||||
if (xhci->quirks & XHCI_WRITE_64_HI_LO)
|
||||
hi_lo_writeq(erst_base, &ir->ir_set->erst_base);
|
||||
else
|
||||
xhci_write_64(xhci, erst_base, &ir->ir_set->erst_base);
|
||||
|
||||
/* Set the event ring dequeue address of this interrupter */
|
||||
xhci_set_hc_event_deq(xhci, ir);
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/usb/hcd.h>
|
||||
#include <linux/io-64-nonatomic-lo-hi.h>
|
||||
#include <linux/io-64-nonatomic-hi-lo.h>
|
||||
#include <linux/android_kabi.h>
|
||||
|
||||
/* Code sharing between pci-quirks and xhci hcd */
|
||||
|
@ -1932,6 +1933,7 @@ struct xhci_hcd {
|
|||
#define XHCI_RESET_TO_DEFAULT BIT_ULL(44)
|
||||
#define XHCI_ZHAOXIN_TRB_FETCH BIT_ULL(45)
|
||||
#define XHCI_ZHAOXIN_HOST BIT_ULL(46)
|
||||
#define XHCI_WRITE_64_HI_LO BIT_ULL(47)
|
||||
|
||||
unsigned int num_active_eps;
|
||||
unsigned int limit_active_eps;
|
||||
|
|
Loading…
Reference in New Issue
Block a user