Skip to content

Commit 5d474cc

Browse files
author
Thomas Zimmermann
committed
drm/mipi-dbi: Fix source-buffer address in mipi_dbi_buf_copy
Set the source-buffer address after mapping the buffer into the kernel's address space. Makes MIPI DBI helpers work again. Signed-off-by: Thomas Zimmermann <[email protected]> Fixes: c47160d ("drm/mipi-dbi: Remove dependency on GEM CMA helper library") Reviewed-by: Noralf Trønnes <[email protected]> Reported-by: Noralf Trønnes <[email protected]> Cc: Thomas Zimmermann <[email protected]> Cc: Daniel Vetter <[email protected]> Cc: Maarten Lankhorst <[email protected]> Cc: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 9d31993) Signed-off-by: Thomas Zimmermann <[email protected]>
1 parent bd672b7 commit 5d474cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/drm_mipi_dbi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,11 @@ int mipi_dbi_buf_copy(void *dst, struct drm_framebuffer *fb,
209209
ret = drm_gem_fb_begin_cpu_access(fb, DMA_FROM_DEVICE);
210210
if (ret)
211211
return ret;
212-
src = data[0].vaddr; /* TODO: Use mapping abstraction properly */
213212

214213
ret = drm_gem_fb_vmap(fb, map, data);
215214
if (ret)
216215
goto out_drm_gem_fb_end_cpu_access;
216+
src = data[0].vaddr; /* TODO: Use mapping abstraction properly */
217217

218218
switch (fb->format->format) {
219219
case DRM_FORMAT_RGB565:

0 commit comments

Comments
 (0)