From bda4084ed71ae0d3ac404d016307cc4808d44728 Mon Sep 17 00:00:00 2001 From: William Wu Date: Fri, 8 Oct 2021 20:52:57 +0800 Subject: [PATCH] arm64: dts: rockchip: dis u1 and u2 state for rk3399 dwc3 device According the commit 729dcffd1ed3 ("usb: dwc3: gadget: Add support for disabling U1 and U2 entries"), it's necessary to disable the U1 and U2 low power state to improve USB 3.0 performance for mass storage gadget and uvc gadget. In addition, it can help to avoid the dwc3 wakeup failed from U1 or U2 state when connect to the Host USB 3.0 interface. android_work: sent uevent USB_STATE=CONNECTED dwc3 fcc00000.dwc3: failed to send remote wakeup dwc3 fcc00000.dwc3: wakeup failed --> -22 WARNING: CPU: 0 PID: 427 at drivers/usb/dwc3/gadget.c:319 dwc3_send_gadget_ep_cmd+0x198/0x93c ... Call trace: dwc3_send_gadget_ep_cmd+0x198/0x93c dwc3_ep0_complete_status+0xe8/0x294 dwc3_ep0_interrupt+0x2ac/0x3d4 dwc3_process_event_entry+0x7c/0x610 dwc3_process_event_buf+0x6c/0x374 dwc3_thread_interrupt+0x38/0x64 irq_thread_fn+0x34/0x88 irq_thread+0x1a4/0x248 kthread+0x13c/0x344 ret_from_fork+0x10/0x30 dwc3 fcc00000.dwc3: failed to send remote wakeup android_work: sent uevent USB_STATE=CONFIGURED Signed-off-by: William Wu Change-Id: Ic63ee7852fbe1bcb3563b6dec455c0aee53522f1 --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 3d9c68ef4e4d..77b2f7ff4a9b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -444,6 +444,8 @@ phy-names = "usb2-phy", "usb3-phy"; phy_type = "utmi_wide"; snps,dis_enblslpm_quirk; + snps,dis-u1-entry-quirk; + snps,dis-u2-entry-quirk; snps,dis-u2-freeclk-exists-quirk; snps,dis_u2_susphy_quirk; snps,dis-del-phy-power-chg-quirk;