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

Commit 646b456b authored by Govinda Rajulu Chenna's avatar Govinda Rajulu Chenna
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.

CRs-Fixed: 2372619
Change-Id: I11b7860e601fa087e7fd31894fb9cec379bdf639
Signed-off-by: default avatarGovinda Rajulu Chenna <gchenna@codeaurora.org>
parent bb8d2ec5
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
/*
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1951,6 +1951,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: