From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH] fixup! video: Rockchip: Add VOP2 driver
Date: Tue, 22 Oct 2024 10:34:50 +0200 [thread overview]
Message-ID: <20241022083450.3248781-1-a.fatoum@pengutronix.de> (raw)
video: Rockchip: add missing dma_alloc_coherent a device parameter
dma_alloc_coherent was recently changed to take a device parameter like
in Linux.
The VOP2 driver went upstream during the same time and is missing the
fixup.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
This should be squashed either into the DMA branch or the VOP2 branch,
whichever comes first.
---
drivers/video/rockchip/rockchip_drm_vop2.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/video/rockchip/rockchip_drm_vop2.c b/drivers/video/rockchip/rockchip_drm_vop2.c
index 3ab6fe97e0b0..3a1c951ec7e4 100644
--- a/drivers/video/rockchip/rockchip_drm_vop2.c
+++ b/drivers/video/rockchip/rockchip_drm_vop2.c
@@ -1634,8 +1634,9 @@ static int vop2_register_plane(struct vop2_video_port *vp, struct vop2_win *win)
win->dst.y2 = info->yres;
info->line_length = vp->line_length;
- info->screen_base = dma_alloc_writecombine(vp->line_length * vp->max_yres,
- &win->dma);
+ info->screen_base = dma_alloc_writecombine(DMA_DEVICE_BROKEN,
+ vp->line_length * vp->max_yres,
+ &win->dma);
if (!info->screen_base)
return -ENOMEM;
--
2.39.5
next reply other threads:[~2024-10-22 8:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-22 8:34 Ahmad Fatoum [this message]
2024-10-22 9:18 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241022083450.3248781-1-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox