Эх сурвалжийг харах

disp: msm: dsi: allocate DSI command buffer during bind

The DMA buffer allocation for DSI happens during the first
command transfer. This change moves this allocation to happen during
bind.

Change-Id: I7969a019a8b84282e8a153f5393c9a3de5a28043
Signed-off-by: Satya Rama Aditya Pinapala <[email protected]>
Satya Rama Aditya Pinapala 4 жил өмнө
parent
commit
1b2b7a6c93
1 өөрчлөгдсөн 6 нэмэгдсэн , 0 устгасан
  1. 6 0
      msm/dsi/dsi_display.c

+ 6 - 0
msm/dsi/dsi_display.c

@@ -5950,6 +5950,12 @@ int dsi_display_drm_bridge_init(struct dsi_display *display,
 	display->bridge = bridge;
 	priv->bridges[priv->num_bridges++] = &bridge->base;
 
+	if (display->tx_cmd_buf == NULL) {
+		rc = dsi_host_alloc_cmd_tx_buffer(display);
+		if (rc)
+			DSI_ERR("failed to allocate cmd tx buffer memory\n");
+	}
+
 error:
 	mutex_unlock(&display->display_lock);
 	return rc;