mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
usb: typec: pi3usb30532: Keep orientation when setting mux to safe mode
Keep the orientation value when setting the mux to safe mode, this fixes the orientation getting reset when switching alt-modes. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
09fed4d64d
commit
bfb2ab8e71
1 changed files with 2 additions and 1 deletions
|
|
@ -84,7 +84,8 @@ static int pi3usb30532_mux_set(struct typec_mux *mux, int state)
|
|||
|
||||
switch (state) {
|
||||
case TYPEC_STATE_SAFE:
|
||||
new_conf = PI3USB30532_CONF_OPEN;
|
||||
new_conf = (new_conf & PI3USB30532_CONF_SWAP) |
|
||||
PI3USB30532_CONF_OPEN;
|
||||
break;
|
||||
case TYPEC_STATE_USB:
|
||||
new_conf = (new_conf & PI3USB30532_CONF_SWAP) |
|
||||
|
|
|
|||
Loading…
Reference in a new issue