Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Chunfeng Yun and committed by
Greg Kroah-Hartman
c7d4abbc 918b8ac5

+2
+2
drivers/usb/mtu3/mtu3_core.c
··· 575 575 SW_U1_REQUEST_ENABLE | SW_U2_REQUEST_ENABLE); 576 576 /* device responses to u3_exit from host automatically */ 577 577 mtu3_clrbits(mbase, U3D_LTSSM_CTRL, SOFT_U3_EXIT_EN); 578 + /* automatically build U2 link when U3 detect fail */ 579 + mtu3_setbits(mbase, U3D_USB2_TEST_MODE, U2U3_AUTO_SWITCH); 578 580 } 579 581 580 582 mtu3_set_speed(mtu);