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 12:22:48 +0000 (14:22 +0200)
commitc94138ae40008327def5decc0aa3ac91c8e1ea12
treece652bda8fe2c562abfc0bcafe457a8c48a481d9
parent662893b4f6bd466ff9e1cd454c44c26d32d554fe
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