Re: [PATCH v3 1/4] xhci: Add some quirks for zhaoxin xhci to fix issues

From: WeitaoWang-oc@xxxxxxxxxxx
Date: Mon May 08 2023 - 05:34:09 EST


On 2023/5/8 17:01, Mathias Nyman wrote:
On 6.5.2023 23.15, Weitao Wang wrote:
Add a quirk XHCI_ZHAOXIN_HOST for zhaoxin xhci to fix issues,
there are two cases will be used.
- add u1/u2 support.
- fix xHCI root hub speed show issue in zhaoxin platform.

Add a quirk XHCI_ZHAOXIN_TRB_FETCH to fix TRB prefetch issue.

On Zhaoxin ZX-100 project, xHCI can't work normally after resume
from system Sx state. To fix this issue, when resume from system
Sx state, reinitialize xHCI instead of restore.
So, Add XHCI_RESET_ON_RESUME quirk for ZX-100 to fix issue of
resuming from system Sx state.

Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Weitao Wang <WeitaoWang-oc@xxxxxxxxxxx>


I'd split this series into different logical parts:

patch 1/4
  Set XHCI_RESET_ON_RESUME quirk to ZHAOXIN host to fix resume issue.
  cc: stable

patch 2/4
  Add XHCI_ZHAOXIN_TRB_FETCH quirk flag together with code that allocates double pages
  cc: stable

patch 3/4
  Add XHCI_ZHAOXIN_HOST quirk flag together with code that corrects USB3 roothub minor version
  cc: stable

patch 4/4
  Set XHCI_LPM_SUPPORT quirk together with code that sets tier policy and u1/u2 timeouts,
  Don't add stable as this is about adding feature support.

Okay,no problem, I'll modify this patch series according to
above solution and order in the next version.

Best Regards,
Weitao
(Accidentally replied to older v2 series with the above comments)

Thanks
-Mathias

.