diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2021-07-15 11:07:57 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-27 15:58:37 +0200 |
commit | 427c66422e14b8468ee005aa6edf76ef0c2a8fc2 (patch) | |
tree | 67b8054585d58c8c06f69f47fd2107a5b341c51a /drivers/usb/mtu3/mtu3.h | |
parent | usb: mtu3: add helper to power on/down device (diff) | |
download | linux-427c66422e14b8468ee005aa6edf76ef0c2a8fc2.tar.xz linux-427c66422e14b8468ee005aa6edf76ef0c2a8fc2.zip |
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>
Diffstat (limited to 'drivers/usb/mtu3/mtu3.h')
-rw-r--r-- | drivers/usb/mtu3/mtu3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/mtu3/mtu3.h b/drivers/usb/mtu3/mtu3.h index 171e5b383063..022bbdc54e68 100644 --- a/drivers/usb/mtu3/mtu3.h +++ b/drivers/usb/mtu3/mtu3.h @@ -356,6 +356,7 @@ struct mtu3 { unsigned is_u3_ip:1; unsigned delayed_status:1; unsigned gen2cp:1; + unsigned connected:1; u8 address; u8 test_mode_nr; |