Re: [linux-sunxi] [PATCH] drm/sun4i: Fix dsi dcs long write function

2020-08-29 Thread Ondřej Jirman
On Fri, Aug 28, 2020 at 02:35:26PM +0200, Jernej Škrabec wrote: > Dne petek, 28. avgust 2020 ob 13:24:44 CEST je Ondrej Jirman napisal(a): > > 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.

Re: [linux-sunxi] [PATCH] drm/sun4i: Fix dsi dcs long write function

2020-08-29 Thread Jernej Škrabec
Dne petek, 28. avgust 2020 ob 13:24:44 CEST je Ondrej Jirman napisal(a): > 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

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

2020-08-29 Thread Ondrej Jirman
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. Signed-off-by: Ondrej Jirman ---