usb: mtu3: support suspend/resume for dual-role mode
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 15 Jul 2021 09:07:58 +0000 (17:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 13:58:37 +0000 (15:58 +0200)
commit6b587394c65c23d5ba05a33e5899e2ed8dab3c97
tree675abaf38feeb6f7798d562d403f8e1380b0923b
parent427c66422e14b8468ee005aa6edf76ef0c2a8fc2
usb: mtu3: support suspend/resume for dual-role mode

Support suspend/resume for dual-role mode including the single
port and multi-ports supported by host controller, when the host
supports mult-ports, only port0 (u2/u3) is used to support dual
role mode.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1626340078-29111-14-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/mtu3/mtu3_core.c
drivers/usb/mtu3/mtu3_dr.c
drivers/usb/mtu3/mtu3_dr.h
drivers/usb/mtu3/mtu3_host.c
drivers/usb/mtu3/mtu3_plat.c