]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: cdnsp: Add support for device-only configuration
authorPawel Laszczak <pawell@cadence.com>
Tue, 31 Mar 2026 08:19:11 +0000 (10:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2026 07:05:53 +0000 (09:05 +0200)
commit7b7f2dd913829e06705035dfc41ca25fa6ec68d3
treee47f78f5d1ddf0ed72e5d5d400e8a173abff2a7f
parent3c7df5079cfc6133d01ae144ae76a980276cc726
usb: cdnsp: Add support for device-only configuration

This patch introduces support for operating the Cadence USBSSP (cdnsp)
controller in a peripheral-only mode, bypassing the Dual-Role Device (DRD)
logic.

The change in BAR indexing (from BAR 2 to BAR 1) is a direct
consequence of switching from 64-bit to 32-bit addressing in the
Peripheral-only configuration.

Tested on PCI platform with Device-only configuration. Platform-side
changes are included to support the PCI glue layer's property injection.

Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com> # pci_ids.h
Link: https://patch.msgid.link/20260331-device_only-v1-1-00378b80365c@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdns3-plat.c
drivers/usb/cdns3/cdnsp-pci.c
drivers/usb/cdns3/core.c
drivers/usb/cdns3/core.h
drivers/usb/cdns3/drd.c
include/linux/pci_ids.h