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

From: Mathias Nyman
Date: Mon May 08 2023 - 04:55:15 EST


On 21.4.2023 23.38, 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.

Thanks
-Mathias