Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51ff9080 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dsi: update recommended non-embedded mode sequence"

parents 2a906d5c abeed85e
Loading
Loading
Loading
Loading
+5 −3
Original line number Original line Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
// SPDX-License-Identifier: GPL-2.0-only
/*
/*
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 */
 */


#include <linux/of_device.h>
#include <linux/of_device.h>
@@ -1272,6 +1272,7 @@ static void dsi_kickoff_msg_tx(struct dsi_ctrl *dsi_ctrl,
		 * result in smmu write faults with DSI as client.
		 * result in smmu write faults with DSI as client.
		 */
		 */
		if (flags & DSI_CTRL_CMD_NON_EMBEDDED_MODE) {
		if (flags & DSI_CTRL_CMD_NON_EMBEDDED_MODE) {
			if (dsi_ctrl->version < DSI_CTRL_VERSION_2_4)
				dsi_hw_ops.soft_reset(&dsi_ctrl->hw);
				dsi_hw_ops.soft_reset(&dsi_ctrl->hw);
			dsi_ctrl->cmd_len = 0;
			dsi_ctrl->cmd_len = 0;
		}
		}
@@ -3222,6 +3223,7 @@ int dsi_ctrl_cmd_tx_trigger(struct dsi_ctrl *dsi_ctrl, u32 flags)
					BIT(DSI_FIFO_OVERFLOW), false);
					BIT(DSI_FIFO_OVERFLOW), false);


		if (flags & DSI_CTRL_CMD_NON_EMBEDDED_MODE) {
		if (flags & DSI_CTRL_CMD_NON_EMBEDDED_MODE) {
			if (dsi_ctrl->version < DSI_CTRL_VERSION_2_4)
				dsi_hw_ops.soft_reset(&dsi_ctrl->hw);
				dsi_hw_ops.soft_reset(&dsi_ctrl->hw);
			dsi_ctrl->cmd_len = 0;
			dsi_ctrl->cmd_len = 0;
		}
		}