RE: [PATCH] usb: cdnsp: Add support for device-only configuration

From: Pawel Laszczak

Date: Tue Apr 07 2026 - 01:21:51 EST


>
>
>On 26-04-03 10:33:52, Pawel Laszczak wrote:
>> >>
>> >> + if (cdns->no_drd) {
>> >> + cdns->version = CDNSP_CONTROLLER_V2;
>> >> + cdns->dr_mode = USB_DR_MODE_PERIPHERAL;
>> >
>> >With "no_drd", are configurations fixed, no other options?
>>
>> Yes, no other option.
>
>Is it possible for host-only configurations?

Theoretically, yes, but for a host-only configuration, we would typically
use the default xHCI driver instead. Since there isn't a separate
standalone driver for device-only mode in this IP, using no_drd
to force peripheral mode makes the most sense here.

Pawel

>Peter
>
>>
>> Pawel
>>
>> >
>> >> + return 0;
>> >> + }
>> >> +
>> >> regs = devm_ioremap_resource(cdns->dev, &cdns->otg_res);
>> >> if (IS_ERR(regs))
>> >> return PTR_ERR(regs);
>> >> diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index
>> >> 406abf629be2..a931fb201402 100644
>> >> --- a/include/linux/pci_ids.h
>> >> +++ b/include/linux/pci_ids.h
>> >> @@ -2424,6 +2424,7 @@
>> >> #define PCI_DEVICE_ID_CDNS_USBSS 0x0100
>> >> #define PCI_DEVICE_ID_CDNS_USB 0x0120
>> >> #define PCI_DEVICE_ID_CDNS_USBSSP 0x0200
>> >> +#define PCI_DEVICE_ID_CDNS_UDC_USBSSP 0x0400
>> >>
>> >> #define PCI_VENDOR_ID_ARECA 0x17d3
>> >> #define PCI_DEVICE_ID_ARECA_1110 0x1110
>> >>
>> >> ---
>> >> base-commit: 5196f2c98340297e1fdd36555285e991ceddf776
>> >> change-id: 20260331-device_only-192d539430b5
>> >>
>> >> Best regards,
>> >> --
>> >> Pawel Laszczak <pawell@xxxxxxxxxxx>
>> >>
>> >>
>> >
>> >--
>> >
>> >Best regards,
>> >Peter
>
>--
>
>Best regards,
>Peter