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

Commit 70f1db1c authored by Govinda Rajulu Chenna's avatar Govinda Rajulu Chenna Committed by Tatenda Chipeperekwa
Browse files

drm/msm/dp: add debugfs node for max_lclk_khz



Add debugfs node to read/write max_lclk_khz to validate
different link clock configurations dynamically with the
device that supports more than one link clock frequency.

Change-Id: I11b7860e601fa087e7fd31894fb9cec379bdf639
Signed-off-by: default avatarGovinda Rajulu Chenna <gchenna@codeaurora.org>
Signed-off-by: default avatarTatenda Chipeperekwa <tatendac@codeaurora.org>
parent e36177f2
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1941,6 +1941,14 @@ static int dp_debug_init(struct dp_debug *dp_debug)
		       DEBUG_NAME, rc);
	}

	file = debugfs_create_u32("max_lclk_khz", 0644, dir,
			&debug->parser->max_lclk_khz);
	if (IS_ERR_OR_NULL(file)) {
		rc = PTR_ERR(file);
		pr_err("[%s] debugfs max_lclk_khz failed, rc=%d\n",
		       DEBUG_NAME, rc);
	}

	return 0;

error_remove_dir: