disp: msm: dsi: optimize the display error log print

Optimize the error log in _dsi_bridge_mode_validate_and_fixup()
to avoid unexpected failure.

Change-Id: Id674b511f79ccf05d4fc5a5729c0e109731bdf54
Signed-off-by: GG Hou <quic_renjhou@quicinc.com>
このコミットが含まれているのは:
GG Hou
2022-01-12 10:51:50 +08:00
コミット 2abee80413

ファイルの表示

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
*/
@@ -406,10 +406,8 @@ static bool _dsi_bridge_mode_validate_and_fixup(struct drm_bridge *bridge,
struct sde_connector_state *old_conn_state;
struct drm_display_mode *cur_mode;
if (!bridge->encoder || !bridge->encoder->crtc || !crtc_state->crtc) {
DSI_ERR("invalid params\n");
return -EINVAL;
}
if (!bridge->encoder || !bridge->encoder->crtc || !crtc_state->crtc)
return 0;
cur_mode = &crtc_state->crtc->state->mode;
old_conn_state = to_sde_connector_state(display->drm_conn->state);