Re: [PATCH v6 13/33] dt-bindings: usb: dwc3: Add snps,num-hc-interrupters definition

From: Wesley Cheng
Date: Fri Sep 15 2023 - 20:51:27 EST


Hi Konrad,

On 9/15/2023 5:35 PM, Konrad Dybcio wrote:
On 16.09.2023 02:10, Wesley Cheng wrote:
Add a new definition for specifying how many XHCI secondary interrupters
can be allocated. XHCI in general can potentially support up to 1024
interrupters, which some uses may want to limit depending on how many
users utilize the interrupters.

Signed-off-by: Wesley Cheng <quic_wcheng@xxxxxxxxxxx>
---
Any reason for a DWC3-specific property? Why not just
use the XHCI-common one from patch 14 and error out if
a value of more than 8 is found?


Not every XHCI plat user is going to be DWC3. In case DWC3 is used, the DWC3 host driver is the one that populates and adds the XHCI plat device (no separate device node for XHCI), so that requires the DWC3 host to also populate properties for the XHCI device. (dwc3_host_init())

Thanks
Wesley Cheng