hmm… it is really a weird situation.
Could you apply below patch first? See if we can resolve that extcon error first.
These two under k4.9
iff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
index f640483..7fe9a10 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -200,6 +200,21 @@
.id = EXTCON_DISP_DSIHPD,
.name = "DSIHPD",
},
+ [EXTCON_DISP_HDMI2] = {
+ .type = EXTCON_TYPE_DISP,
+ .id = EXTCON_DISP_HDMI2,
+ .name = "HDMI2",
+ },
+ [EXTCON_DISP_HDMI3] = {
+ .type = EXTCON_TYPE_DISP,
+ .id = EXTCON_DISP_HDMI3,
+ .name = "HDMI3",
+ },
+ [EXTCON_DISP_HDMI4] = {
+ .type = EXTCON_TYPE_DISP,
+ .id = EXTCON_DISP_HDMI4,
+ .name = "HDMI4",
+ },
/* Miscellaneous external connector */
[EXTCON_DOCK] = {
diff --git a/include/linux/extcon.h b/include/linux/extcon.h
index 724c6fd..223b0c2 100644
--- a/include/linux/extcon.h
+++ b/include/linux/extcon.h
@@ -79,6 +79,9 @@
#define EXTCON_DISP_AUDIO_AUX2 48 /* Audio for SOR 2 */
#define EXTCON_DISP_AUDIO_AUX3 49 /* Audio for SOR 3 */
#define EXTCON_DISP_DSIHPD 50 /* DSI with hotplug support */
+#define EXTCON_DISP_HDMI2 51 /* 2nd HDMI port */
+#define EXTCON_DISP_HDMI3 52 /* 3rd HDMI port */
+#define EXTCON_DISP_HDMI4 53 /* 4th HDMI port */
/* Miscellaneous external connector */
#define EXTCON_DOCK 60
diff --git a/drivers/extcon/extcon-disp-state.c b/drivers/extcon/extcon-disp-state.c
index 4a4a83d..a59eb02 100644
--- a/drivers/extcon/extcon-disp-state.c
+++ b/drivers/extcon/extcon-disp-state.c
@@ -45,6 +45,9 @@
EXTCON_DISP_AUDIO_AUX2,
EXTCON_DISP_AUDIO_AUX3,
EXTCON_DISP_DSIHPD,
+ EXTCON_DISP_HDMI2,
+ EXTCON_DISP_HDMI3,
+ EXTCON_DISP_HDMI4,
EXTCON_NONE,
};
These two under kernel/nvidia
diff --git a/drivers/video/tegra/dc/dc.c b/drivers/video/tegra/dc/dc.c
index 18d734c..ff7ad8a 100644
--- a/drivers/video/tegra/dc/dc.c
+++ b/drivers/video/tegra/dc/dc.c
@@ -3402,15 +3402,32 @@
[TEGRA_DC_OUT_DP] = "DP"
};
+static const int hdmi_extcon_cable_id[] = {
+ EXTCON_DISP_HDMI,
+ EXTCON_DISP_HDMI2,
+ EXTCON_DISP_HDMI3,
+ EXTCON_DISP_HDMI4
+};