disp: msm: dp: update mst connector in debugfs data on replug

The debugfs api for mst control is a multi stage process where the
connector id is selected using the mst_con_id node, which is then
used on other commands such as edid_modes_mst for mode switch.
During mode switch control, the mode is set using the current id
for a display and then the switch is initiated through an unplug
and replug. But on an unplug the connector is destroyed and a new
id is assinged for that display on the subsequent plug. This
change detects this scenario and updates the cached connector id
with the id from the newly created connector.

Change-Id: Ib51566ac9e334d4a0b145b6ae549c59c537cb0cd
Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
Šī revīzija ir iekļauta:
Rajkumar Subbiah
2020-07-23 12:56:35 -04:00
revīziju iesūtīja Gerrit - the friendly Code Review server
vecāks 65534be8da
revīzija d767013a10
3 mainīti faili ar 55 papildinājumiem un 6 dzēšanām

Parādīt failu

@@ -85,9 +85,10 @@ struct dp_debug {
bool mst_sim_remove_con;
int mst_sim_remove_con_id;
u32 mst_port_cnt;
struct dp_mst_connector mst_connector_cache;
u8 *(*get_edid)(struct dp_debug *dp_debug);
void (*abort)(struct dp_debug *dp_debug);
void (*set_mst_con)(struct dp_debug *dp_debug, int con_id);
};
/**