disp: msm: dp: fix messaging on dp mode validation failure

Updated the log message on a LM check failure during mode validation
to print the correct available LM value that is being used in the
check.

Change-Id: Ie719dead04bacee70d44e30c0069ce9099a69570
Signed-off-by: Rajkumar Subbiah <quic_rsubbia@quicinc.com>
此提交包含在:
Rajkumar Subbiah
2023-04-12 14:40:31 -07:00
父節點 54a43400a4
當前提交 6d55e0b68e

查看文件

@@ -2947,8 +2947,8 @@ static int dp_display_validate_topology(struct dp_display_private *dp,
+ dp_panel->max_lm;
if (num_lm > avail_lm) {
DP_DEBUG("mode %sx%d is invalid, not enough lm %d %d\n",
mode->name, fps, num_lm, avail_res->num_lm);
DP_DEBUG("mode %sx%d is invalid, not enough lm req:%d avail:%d\n",
mode->name, fps, num_lm, avail_lm);
rc = -EPERM;
goto end;
} else if (!num_dsc && (num_lm == dual && !num_3dmux)) {