Re: [PATCH v3 1/6] usb: ehci: support non-standard port status registers

From: Alan Stern

Date: Fri Sep 04 2026 - 23:08:32 EST


On Thu, Sep 03, 2026 at 11:17:38PM +0200, Linus Walleij wrote:
> Some EHCI implementations place the port status registers outside the
> standard operational register layout.
>
> Add a per-controller port status base and use a helper for all PORTSC
> accesses, while preserving the standard location by default.
>
> Gate the alternate member and lookup behind the hidden
> USB_EHCI_DEVIANT_PORT_STATUS_REG option. This avoids growing struct
> ehci_hcd or adding a runtime branch on systems using the standard port
> status register location.
>
> Suggested-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>
> Suggested-by: Daniel Palmer <daniel@xxxxxxxxx>
> Assisted-by: LLM
> Signed-off-by: Linus Walleij <linusw@xxxxxxxxxx>
> ---

For patches 1-4:

Acked-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx>

Alan Stern