]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: roles: get usb-role-switch from parent
authorChunfeng Yun <chunfeng.yun@mediatek.com>
Thu, 29 Aug 2019 09:22:35 +0000 (17:22 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 16:00:43 +0000 (18:00 +0200)
commit6fadd72943b80ff5bef175aacc2458c8a9ee3dbc
tree19b5753f2de321129aa05c3c5e8ea5eb6a563a70
parentc5c0283a9db1c7ba5881f956a1faf2ebc3dfe70e
usb: roles: get usb-role-switch from parent

when the USB host controller is the parent of the connector,
usually type-B, sometimes don't need the graph, so we should
check whether it's parent registers usb-role-switch or not
firstly, and get it if exists.

Suggested-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/1567070558-29417-9-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/roles/class.c