disp: msm: dp: change the detect callback to detect_ctx

The connector detect function is currently implemented as a
callback from the framework, and creates a context before
calling the detect_port_ctx MST callback. This change updates
the callflow so that the framework calls the new detect_ctx
function in the MST case. This removes the need for creating a
new context before calling further downstream functions.

In addition, references to the mst_connector_get_info
function were replaced by connector_get_info to avoid
redundancy.

Change-Id: I224d09e77fad4b6925a42b1bc912a05e3e4d060a
Signed-off-by: Sudarsan Ramesh <sudarame@codeaurora.org>
This commit is contained in:
Sudarsan Ramesh
2021-02-08 14:53:30 -05:00
parent eacfafbaed
commit 65f1c136ea
4 ha cambiato i file con 47 aggiunte e 60 eliminazioni

Vedi File

@@ -816,16 +816,20 @@ static bool dp_display_send_hpd_event(struct dp_display_private *dp)
char name[HPD_STRING_SIZE], status[HPD_STRING_SIZE],
bpp[HPD_STRING_SIZE], pattern[HPD_STRING_SIZE];
char *envp[5];
struct dp_display *display;
int rc = 0;
connector = dp->dp_display.base_connector;
display = &dp->dp_display;
if (!connector) {
DP_ERR("connector not set\n");
return false;
}
connector->status = connector->funcs->detect(connector, false);
connector->status = display->is_sst_connected ? connector_status_connected :
connector_status_disconnected;
if (dp->cached_connector_status == connector->status) {
DP_DEBUG("connector status (%d) unchanged, skipping uevent\n",
dp->cached_connector_status);