mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
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:
parent
aa20b1c188
commit
fe1caa0eb9
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
/*
|
||||
* Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/slab.h>
|
||||
|
|
@ -127,7 +127,8 @@ 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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue