]> www.infradead.org Git - users/dwmw2/linux.git/commit
usb: typec: tipd: Forward plug orientation to typec subsystem
authorSven Peter <sven@svenpeter.dev>
Sat, 26 Feb 2022 12:59:12 +0000 (13:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 11:57:13 +0000 (13:57 +0200)
commitc7c8f68f07fc6a3b317c2ed38465b58d458e44ec
tree886e4e5d01c4a806e3c8b014e5e89e73b15217a4
parente8969bc51294af850b2b4e8c7efe81f25cd3676b
usb: typec: tipd: Forward plug orientation to typec subsystem

commit 676748389f5db74e7d28f9d630eebd75cb8a11b4 upstream.

In order to bring up the USB3 PHY on the Apple M1 we need to know the
orientation of the Type-C cable. Extract it from the status register and
forward it to the typec subsystem.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Sven Peter <sven@svenpeter.dev>
Link: https://lore.kernel.org/r/20220226125912.59828-1-sven@svenpeter.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tipd/core.c
drivers/usb/typec/tipd/tps6598x.h