mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
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>
This commit is contained in:
parent
918b8ac55b
commit
c7d4abbcb1
1 changed files with 2 additions and 0 deletions
|
@ -575,6 +575,8 @@ static void mtu3_regs_init(struct mtu3 *mtu)
|
||||||
SW_U1_REQUEST_ENABLE | SW_U2_REQUEST_ENABLE);
|
SW_U1_REQUEST_ENABLE | SW_U2_REQUEST_ENABLE);
|
||||||
/* device responses to u3_exit from host automatically */
|
/* device responses to u3_exit from host automatically */
|
||||||
mtu3_clrbits(mbase, U3D_LTSSM_CTRL, SOFT_U3_EXIT_EN);
|
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);
|
mtu3_set_speed(mtu);
|
||||||
|
|
Loading…
Reference in a new issue