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 <psraditya30@codeaurora.org>
Šī revīzija ir iekļauta:
@@ -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;
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user