Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "platform/chrome: Add Type-C mux set command definitions"

This reverts commit 28a6ed8e39f77f6ac613ec9b7461aa75e85fa79a.

The chrome platform driver changes need to come in through the platform
tree due to some api changes that showed up there that cause build
errors in linux-next

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Link: https://lore.kernel.org/r/20220719160821.5e68e30b@oak.ozlabs.ibm.com
Cc: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-18
-18
include/linux/platform_data/cros_ec_commands.h
··· 5722 5722 TYPEC_CONTROL_COMMAND_EXIT_MODES, 5723 5723 TYPEC_CONTROL_COMMAND_CLEAR_EVENTS, 5724 5724 TYPEC_CONTROL_COMMAND_ENTER_MODE, 5725 - TYPEC_CONTROL_COMMAND_TBT_UFP_REPLY, 5726 - TYPEC_CONTROL_COMMAND_USB_MUX_SET, 5727 5725 }; 5728 - 5729 - /* Replies the AP may specify to the TBT EnterMode command as a UFP */ 5730 - enum typec_tbt_ufp_reply { 5731 - TYPEC_TBT_UFP_REPLY_NAK, 5732 - TYPEC_TBT_UFP_REPLY_ACK, 5733 - }; 5734 - 5735 - struct typec_usb_mux_set { 5736 - uint8_t mux_index; /* Index of the mux to set in the chain */ 5737 - uint8_t mux_flags; /* USB_PD_MUX_*-encoded USB mux state to set */ 5738 - } __ec_align1; 5739 5726 5740 5727 struct ec_params_typec_control { 5741 5728 uint8_t port; ··· 5737 5750 union { 5738 5751 uint32_t clear_events_mask; 5739 5752 uint8_t mode_to_enter; /* enum typec_mode */ 5740 - uint8_t tbt_ufp_reply; /* enum typec_tbt_ufp_reply */ 5741 - struct typec_usb_mux_set mux_params; 5742 5753 uint8_t placeholder[128]; 5743 5754 }; 5744 5755 } __ec_align1; ··· 5815 5830 #define PD_STATUS_EVENT_SOP_DISC_DONE BIT(0) 5816 5831 #define PD_STATUS_EVENT_SOP_PRIME_DISC_DONE BIT(1) 5817 5832 #define PD_STATUS_EVENT_HARD_RESET BIT(2) 5818 - #define PD_STATUS_EVENT_DISCONNECTED BIT(3) 5819 - #define PD_STATUS_EVENT_MUX_0_SET_DONE BIT(4) 5820 - #define PD_STATUS_EVENT_MUX_1_SET_DONE BIT(5) 5821 5833 5822 5834 struct ec_params_typec_status { 5823 5835 uint8_t port;