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

Commit 401ab0db authored by Satya Rama Aditya Pinapala's avatar Satya Rama Aditya Pinapala Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSatya Rama Aditya Pinapala <psraditya30@codeaurora.org>
parent e9a99b10
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -6111,6 +6111,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;