aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/mtu3/mtu3_hw_regs.h
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2018-08-29 10:36:49 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-05 13:27:07 +0200
commit78af87b8bbbbcaa613f1a7d8f14472fe9a7dc622 (patch)
tree89f86d71d89f853541783ba2af2c8df1386146ec /drivers/usb/mtu3/mtu3_hw_regs.h
parentusb: uas: add support for more quirk flags (diff)
downloadlinux-dev-78af87b8bbbbcaa613f1a7d8f14472fe9a7dc622.tar.xz
linux-dev-78af87b8bbbbcaa613f1a7d8f14472fe9a7dc622.zip
usb: mtu3: fix error of xhci port id when enable U3 dual role
If dual role mode is enabled, when switch u3port0 to device mode, it will affect port id calculation of host(xHCI), specially when host supports multi U2 ports or U3 ports, so need enable its dual role mode, and fix it here. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/mtu3/mtu3_hw_regs.h')
-rw-r--r--drivers/usb/mtu3/mtu3_hw_regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/mtu3/mtu3_hw_regs.h b/drivers/usb/mtu3/mtu3_hw_regs.h
index 6ee371478d89..a45bb253939f 100644
--- a/drivers/usb/mtu3/mtu3_hw_regs.h
+++ b/drivers/usb/mtu3/mtu3_hw_regs.h
@@ -459,6 +459,7 @@
/* U3D_SSUSB_U3_CTRL_0P */
#define SSUSB_U3_PORT_SSP_SPEED BIT(9)
+#define SSUSB_U3_PORT_DUAL_MODE BIT(7)
#define SSUSB_U3_PORT_HOST_SEL BIT(2)
#define SSUSB_U3_PORT_PDN BIT(1)
#define SSUSB_U3_PORT_DIS BIT(0)