On 9/4/26 7:12 PM, Levi Tomes wrote:

diff --git a/drivers/usb/gadget/dwc2_udc_otg.c
b/drivers/usb/gadget/dwc2_udc_otg.c
index e475b14b9a..3835244cca 100644
--- a/drivers/usb/gadget/dwc2_udc_otg.c
+++ b/drivers/usb/gadget/dwc2_udc_otg.c
@@ -168,6 +168,15 @@ __weak void otg_phy_off(struct dwc2_udc *dev) {}

  /***********************************************************/

+/* udevice of the probed controller, for DT-aware DMA address translation */
+static struct udevice *dwc2_udc_udev;
+static inline unsigned long dwc2_phys_to_bus(unsigned long addr)
+{
+ if (dwc2_udc_udev)
+ return dev_phys_to_bus(dwc2_udc_udev, addr);
+ return phys_to_bus(addr);
+}
At minimum, run checkpatch, the patch is clearly malformed.

Reply via email to