OSDN Git Service

usb: mtu3: add feature to disable device's usb3 port
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Fri, 8 Jul 2022 07:19:01 +0000 (15:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Jul 2022 12:53:23 +0000 (14:53 +0200)
commit269f49ff381aade6cfd20deeae86a8af7ae35b5a
treea5d1eb44162d7d21604cc72debe48cd825565166
parent3cb7982207260e91cd7ba77120ba2e0613c8dbf2
usb: mtu3: add feature to disable device's usb3 port

We may want to disable device's usb3 port when the combo phy is switched
from usb3 mode to pcie mode for some projects.
Meanwhile rename member @is_u3_ip to @u3_capable to avoid misleading, due
to the member's value may be changed when disable usb3 port, but the
controller is still a usb3 IP which also tells us how to manage the fifo.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20220708071903.25752-3-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_plat.c