summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorChunfeng Yun <chunfeng.yun@mediatek.com>2016-12-07 15:24:13 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-12-07 09:37:24 +0100
commitc7d4abbcb19eae4cb2b4e4b1f5a0b122200c4db1 (patch)
tree56ceec07a3a8f382ecf027299b2982d4a0f1b626 /drivers/usb
parent918b8ac55b6c809b70aa05c279087109584e393e (diff)
downloadblackbird-op-linux-c7d4abbcb19eae4cb2b4e4b1f5a0b122200c4db1.tar.gz
blackbird-op-linux-c7d4abbcb19eae4cb2b4e4b1f5a0b122200c4db1.zip
usb: mtu3: enable auto switch from U3 to U2
inform mac2 to build U2 link automatically after U3 detect fail without software setting soft_connect. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/mtu3/mtu3_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/mtu3/mtu3_core.c b/drivers/usb/mtu3/mtu3_core.c
index 603b7f84d31e..c0efc07ef4a5 100644
--- a/drivers/usb/mtu3/mtu3_core.c
+++ b/drivers/usb/mtu3/mtu3_core.c
@@ -575,6 +575,8 @@ static void mtu3_regs_init(struct mtu3 *mtu)
SW_U1_REQUEST_ENABLE | SW_U2_REQUEST_ENABLE);
/* device responses to u3_exit from host automatically */
mtu3_clrbits(mbase, U3D_LTSSM_CTRL, SOFT_U3_EXIT_EN);
+ /* automatically build U2 link when U3 detect fail */
+ mtu3_setbits(mbase, U3D_USB2_TEST_MODE, U2U3_AUTO_SWITCH);
}
mtu3_set_speed(mtu);
OpenPOWER on IntegriCloud