]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: Fix dsi dcs long write function
authorOndrej Jirman <megous@megous.com>
Fri, 28 Aug 2020 12:50:32 +0000 (14:50 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Mon, 31 Aug 2020 12:36:00 +0000 (14:36 +0200)
commit878ac4e7c296d08e2480bdd35057a3e27e612cb1
tree3d13ce533af2fedf8430360e6b9d80a80f581ed8
parentb1232210fba76b30b741ca0714e00ab1f9577b67
drm/sun4i: Fix dsi dcs long write function

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: b92a9b607c64 ("drm/sun4i: Add Allwinner A31 MIPI-DSI controller support")
Signed-off-by: Ondrej Jirman <megous@megous.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20200828125032.937148-1-megous@megous.com
drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c