usb: gadget: k1x_udc_core: Add the 1msec as workaround in irq_process_tr_complete 78/321778/1 accepted/tizen_unified_toolchain accepted/tizen/unified/20250331.083316 accepted/tizen/unified/toolchain/20250408.052052 accepted/tizen/unified/x/20250401.051148
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 28 Mar 2025 04:59:31 +0000 (13:59 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 28 Mar 2025 05:08:16 +0000 (14:08 +0900)
For Tizen, Add udelay(1000) in irq_process_tr_complete.
This patch is a Workaround code to use UDC.
When run tizen flash manage, it need to add udelay(1000).
Otherwise, usb isn't connected.

Change-Id: Ib8f866cd363a2852ae29448e0b3dcf962831ac3e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/usb/gadget/udc/k1x_udc_core.c

index 157a0d90dac21079814d8dd288ccb4382c3a4de1..37e6d2d753bf87935b69a24670fe0f9038325d92 100644 (file)
@@ -2006,8 +2006,11 @@ static void irq_process_tr_complete(struct mv_udc *udc)
        /* Process non-setup transaction complete interrupts */
        tmp = readl(&udc->op_regs->epcomplete);
 
-       if (!tmp)
+       if (!tmp) {
+               /*  WORKAROUND: Add 1msec for TIZEN */
+               udelay(1000);
                return;
+       }
 
        writel(tmp, &udc->op_regs->epcomplete);