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

Commit f2debb0e authored by Alan Kwong's avatar Alan Kwong
Browse files

drm/msm/sde: connect physical encoder to debugfs



Physical encoder is currently not connected to
debugfs. Connect physical encoders to debugfs by
calling late_register in virtual encoder.

CRs-Fixed: 2030127
Change-Id: Ic681171a9a43962cfa875235c769994fef8b9aed
Signed-off-by: default avatarAlan Kwong <akwong@codeaurora.org>
parent fb8f000f
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1530,6 +1530,7 @@ static int _sde_encoder_init_debugfs(struct drm_encoder *drm_enc)
	struct sde_encoder_virt *sde_enc;
	struct msm_drm_private *priv;
	struct sde_kms *sde_kms;
	int i;

	static const struct file_operations debugfs_status_fops = {
		.open =		_sde_encoder_debugfs_status_open,
@@ -1570,6 +1571,13 @@ static int _sde_encoder_init_debugfs(struct drm_encoder *drm_enc)
	debugfs_create_file("misr_data", 0644,
		sde_enc->debugfs_root, sde_enc, &debugfs_misr_fops);

	for (i = 0; i < sde_enc->num_phys_encs; i++)
		if (sde_enc->phys_encs[i] &&
				sde_enc->phys_encs[i]->ops.late_register)
			sde_enc->phys_encs[i]->ops.late_register(
					sde_enc->phys_encs[i],
					sde_enc->debugfs_root);

	return 0;
}