lkml.org 
[lkml]   [2018]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] usb: dwc2: disable power_down on Amlogic devices
Date
USB devices work when connected to Amlogic GXBB hardware before power
on, but not when connected after boot (hotplugged). With this patch
hotplugging works again. This change was copied from the Rockchip
patch here: (https://marc.info/?l=linux-usb&m=153205711616460&w=2)

Signed-off-by: Christian Hewitt <christianshewitt@gmail.com>
---
drivers/usb/dwc2/params.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c
index bf7052e..93561a2 100644
--- a/drivers/usb/dwc2/params.c
+++ b/drivers/usb/dwc2/params.c
@@ -110,6 +110,7 @@ static void dwc2_set_amlogic_params(struct dwc2_hsotg *hsotg)
p->phy_type = DWC2_PHY_TYPE_PARAM_UTMI;
p->ahbcfg = GAHBCFG_HBSTLEN_INCR8 <<
GAHBCFG_HBSTLEN_SHIFT;
+ p->power_down = false;
}

static void dwc2_set_amcc_params(struct dwc2_hsotg *hsotg)
--
2.7.4
\
 
 \ /
  Last update: 2018-09-05 16:56    [W:0.037 / U:0.372 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site