OSDN Git Service

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

Support suspend/resume for device mode if the device is not
connected with a host, otherwise reject to suspend.

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