]> git.baikalelectronics.ru Git - kernel.git/commitdiff
platform/chrome: cros_ec_typec: Update port DP VDO
authorPrashant Malani <pmalani@chromium.org>
Wed, 28 Dec 2022 00:45:08 +0000 (00:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:52 +0000 (09:32 +0100)
[ Upstream commit 3cb38188e3fbee2a7c9c3177e9881b4aec6bec93 ]

The port advertising DP support is a Type-C receptacle. Fix the port's
DisplayPort VDO to reflect this.

Fixes: b02812fa8269 ("platform/chrome: cros_ec_typec: Add bit offset for DP VDO")
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20221228004648.793339-6-pmalani@chromium.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/platform/chrome/cros_ec_typec.c

index 59de4ce01faba4e4e28c597ba0ff1ed01d069305..a74d01e9089e1ac018d807dd378574fa0a28aecb 100644 (file)
@@ -27,7 +27,7 @@
 #define DRV_NAME "cros-ec-typec"
 
 #define DP_PORT_VDO    (DP_CONF_SET_PIN_ASSIGN(BIT(DP_PIN_ASSIGN_C) | BIT(DP_PIN_ASSIGN_D)) | \
-                               DP_CAP_DFP_D)
+                               DP_CAP_DFP_D | DP_CAP_RECEPTACLE)
 
 /* Supported alt modes. */
 enum {