[PATCH v2] drm/sun4i: Fix dsi dcs long write function

Maxime Ripard maxime at cerno.tech
Mon Aug 31 12:41:48 UTC 2020


On Fri, Aug 28, 2020 at 02:50:32PM +0200, Ondrej Jirman wrote:
> It's writing too much data. regmap_bulk_write expects number of
> register sized chunks to write, not a byte sized length of the
> bounce buffer. Bounce buffer needs to be padded too, so that
> regmap_bulk_write will not read past the end of the buffer.
> 
> Fixes: 133add5b5ad4 ("drm/sun4i: Add Allwinner A31 MIPI-DSI controller support")
> Signed-off-by: Ondrej Jirman <megous at megous.com>
> Reviewed-by: Jernej Skrabec <jernej.skrabec at siol.net>

Applied, thanks
Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20200831/d7e0a1c4/attachment-0001.sig>


More information about the dri-devel mailing list