]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: cdnsp: add support for eUSB2v2 port
authorPawel Laszczak <pawell@cadence.com>
Mon, 20 Apr 2026 10:23:57 +0000 (12:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Apr 2026 11:14:17 +0000 (05:14 -0600)
commite68fddb47aad85ebd294a051243066f29da20d8d
tree0a2b4952b6b84f2a797cedc9cc95a860c171ae2b
parent9a71ac508974d44d42d358f42e6a766ec67a73d1
usb: cdnsp: add support for eUSB2v2 port

The Cadence CDNSP controller optionally supports eUSB2 (embedded USB2)
port. While this port type operates logically like high-speed USB 2.0,
it utilizes a different physical layer signaling.

This patch:
- Extends the port detection logic to recognize the eUSB2 protocol.
- Tracks the eUSB2 port offset in the cdnsp_device structure.
- Ensures that eUSB2 ports are correctly handled during Link State
  transitions, specifically forcing L0 when LPM is capable, similar
  to standard USB 2.0 ports.

Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Acked-by: Peter Chen <peter.chen@kernel.org>
Link: https://patch.msgid.link/20260420-eusb2v2_upstream-v2-1-9883645e2ede@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdnsp-gadget.c
drivers/usb/cdns3/cdnsp-gadget.h
drivers/usb/cdns3/cdnsp-mem.c
drivers/usb/cdns3/cdnsp-ring.c