[PATCH 3/3] usb: dwc3: xilinx: Add support to program MMI USB TX deemphasis
Pandey, Radhey Shyam
radhey.shyam.pandey at amd.com
Thu Nov 20 01:05:32 PST 2025
[AMD Official Use Only - AMD Internal Distribution Only]
> -----Original Message-----
> From: Krzysztof Kozlowski <krzk at kernel.org>
> Sent: Thursday, November 20, 2025 1:50 PM
> To: Pandey, Radhey Shyam <radhey.shyam.pandey at amd.com>
> Cc: gregkh at linuxfoundation.org; robh at kernel.org; krzk+dt at kernel.org;
> conor+dt at kernel.org; Simek, Michal <michal.simek at amd.com>;
> Thinh.Nguyen at synopsys.com; p.zabel at pengutronix.de; linux-usb at vger.kernel.org;
> devicetree at vger.kernel.org; linux-arm-kernel at lists.infradead.org; linux-
> kernel at vger.kernel.org; git (AMD-Xilinx) <git at amd.com>
> Subject: Re: [PATCH 3/3] usb: dwc3: xilinx: Add support to program MMI USB TX
> deemphasis
>
> On Thu, Nov 20, 2025 at 01:00:36AM +0530, Radhey Shyam Pandey wrote:
> > struct dwc3_xlnx {
> > int num_clocks;
> > @@ -306,7 +307,7 @@ MODULE_DEVICE_TABLE(of, dwc3_xlnx_of_match);
> > static int dwc3_set_swnode(struct device *dev) {
> > struct device_node *np = dev->of_node, *dwc3_np;
> > - struct property_entry props[2];
> > + struct property_entry props[3];
> > int prop_idx = 0, ret = 0;
> >
> > dwc3_np = of_get_compatible_child(np, "snps,dwc3"); @@ -320,6
> > +321,10 @@ static int dwc3_set_swnode(struct device *dev)
> > if (of_dma_is_coherent(dwc3_np))
> > props[prop_idx++] = PROPERTY_ENTRY_U16("snps,gsbuscfg0-
> reqinfo",
> > 0xffff);
> > + if (of_device_is_compatible(np, "xlnx,versal2-mmi-dwc3"))
>
> Don't sprinkle compatibles all over the code - it does not scale. You have driver
> match data for that.
Sure, in v2 will use match data flag to specify if TX deemphasis need
to be reprogrammed.
Thanks,
Radhey
More information about the linux-arm-kernel
mailing list