mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 15:32:33 +00:00
64b53247c4
Refresh patches. Remove upstreamed patch: generic/pending/181-net-usb-add-lte-modem-wistron-neweb-d18q1.patch Update patches that no longer applies: generic/hack/901-debloat_sock_diag.patch Compile-tested on: x86/64. Runtime-tested on: x86/64. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
30 lines
998 B
Diff
30 lines
998 B
Diff
From e315036cdbf8dad7cff4df9dfe8bcff2eddf2277 Mon Sep 17 00:00:00 2001
|
|
From: Chunfeng Yun <chunfeng.yun@mediatek.com>
|
|
Date: Fri, 13 Oct 2017 17:10:45 +0800
|
|
Subject: [PATCH 111/224] usb: mtu3: set invalid dr_mode as dual-role mode
|
|
|
|
Treat dr_mode of USB_DR_MODE_UNKNOWN as USB_DR_MODE_OTG to
|
|
enhance functional robustness.
|
|
|
|
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
|
|
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
|
|
---
|
|
drivers/usb/mtu3/mtu3_plat.c | 6 ++----
|
|
1 file changed, 2 insertions(+), 4 deletions(-)
|
|
|
|
--- a/drivers/usb/mtu3/mtu3_plat.c
|
|
+++ b/drivers/usb/mtu3/mtu3_plat.c
|
|
@@ -283,10 +283,8 @@ static int get_ssusb_rscs(struct platfor
|
|
return PTR_ERR(ssusb->ippc_base);
|
|
|
|
ssusb->dr_mode = usb_get_dr_mode(dev);
|
|
- if (ssusb->dr_mode == USB_DR_MODE_UNKNOWN) {
|
|
- dev_err(dev, "dr_mode is error\n");
|
|
- return -EINVAL;
|
|
- }
|
|
+ if (ssusb->dr_mode == USB_DR_MODE_UNKNOWN)
|
|
+ ssusb->dr_mode = USB_DR_MODE_OTG;
|
|
|
|
if (ssusb->dr_mode == USB_DR_MODE_PERIPHERAL)
|
|
return 0;
|