Browse Source

disp: msm: sde: Correct Demura memory parsing for single address per region

Demura memory region parsing incorrectly uses the display number
as an extraction index, causing failures in dual panel cases.
Update Demura memory region parsing to always use index 0 during
extraction as each defined region is designed to only declare
a single memory address.

Change-Id: I270f392b636148acd9b891bffcc3cf3d032eab70
Signed-off-by: Christopher Braga <[email protected]>
Christopher Braga 4 năm trước cách đây
mục cha
commit
844e618c26
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      msm/sde/sde_kms.c

+ 1 - 1
msm/sde/sde_kms.c

@@ -4372,7 +4372,7 @@ static int _sde_kms_get_demura_plane_data(struct sde_splash_data *data)
 			SDE_DEBUG("no Demura node %s! disp count: %d\n",
 					node_name, data->num_splash_displays);
 			continue;
-		} else if (of_address_to_resource(node, i, &r)) {
+		} else if (of_address_to_resource(node, 0, &r)) {
 			SDE_ERROR("invalid data for:%s\n", node_name);
 			ret = -EINVAL;
 			break;