disp: msm: dp: avoid setting multi_func when pin value is zero
During dp altmode driver initialization, the dp altmode driver is called with a null data packet. Even though this callback indicates a disconnect, the multi function flag is incorrectly set to true. If the DP is enabled later using simulation mode, the multi function flag is not cleared thereby limiting the lane count to 2 irrespective of capability applied through DPCD. This change checks for the zero pin value while setting the multi function flag. Change-Id: I974fbf1630eed26f406ac9e4c99140b27f0cb635 Signed-off-by: Rajkumar Subbiah <rsubbia@codeaurora.org>
This commit is contained in:

committed by
Sudarsan Ramesh

부모
a89e5da1c9
커밋
efea534641
@@ -127,7 +127,7 @@ static int dp_altmode_notify(void *priv, void *data, size_t len)
|
||||
altmode->dp_altmode.base.hpd_high = !!hpd_state;
|
||||
altmode->dp_altmode.base.hpd_irq = !!hpd_irq;
|
||||
altmode->dp_altmode.base.multi_func = force_multi_func ? true :
|
||||
!(pin == DPAM_HPD_C || pin == DPAM_HPD_E);
|
||||
!(pin == DPAM_HPD_C || pin == DPAM_HPD_E || pin == DPAM_HPD_OUT);
|
||||
|
||||
DP_DEBUG("payload=0x%x\n", dp_data);
|
||||
DP_DEBUG("port_index=%d, orientation=%d, pin=%d, hpd_state=%d\n",
|
||||
|
Reference in New Issue
Block a user