mirror of
https://github.com/armbian/build.git
synced 2025-08-14 07:06:58 +02:00
* Added patch to make USB ports working again on rockchip devices with mainline kernel >= 4.18 * Changed the 0 into false
22 lines
869 B
Diff
22 lines
869 B
Diff
Disables the power down feature to make USB host and OTG ports work
|
|
again on rockchip device due to some rework done in kernel >= 4.18.
|
|
This patch is based upon the one from Hal Emmerich available at
|
|
<https://patchwork.kernel.org/patch/10535905/>, but the original patch
|
|
had some minor issues:
|
|
|
|
- whitespaces instead of tabs triggers an error when patch is used
|
|
- power_down attribute is set to 0 and not *false* like sorrounding code
|
|
|
|
diff --git a/drivers/usb/dwc2/params.c b/drivers/usb/dwc2/params.c
|
|
index f03e41879224..492607adc506 100644
|
|
--- a/drivers/usb/dwc2/params.c
|
|
+++ b/drivers/usb/dwc2/params.c
|
|
@@ -82,6 +82,7 @@ static void dwc2_set_rk_params(struct dwc2_hsotg *hsotg)
|
|
p->host_perio_tx_fifo_size = 256;
|
|
p->ahbcfg = GAHBCFG_HBSTLEN_INCR16 <<
|
|
GAHBCFG_HBSTLEN_SHIFT;
|
|
+ p->power_down = false;
|
|
}
|
|
|
|
static void dwc2_set_ltq_params(struct dwc2_hsotg *hsotg)
|