summaryrefslogtreecommitdiff
path: root/drivers/soundwire
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2019-12-30 16:06:04 +0300
committerNoralf Trønnes <noralf@tronnes.org>2020-01-02 17:35:56 +0300
commit2ce18249af5a28031b3f909cfafccc88ea966c9d (patch)
tree23b605f4b84796f731ed2833dc278def46cf4627 /drivers/soundwire
parent1ce0d5162b98bf6120db1b259d0f0706e69f15fd (diff)
downloadlinux-2ce18249af5a28031b3f909cfafccc88ea966c9d.tar.xz
drm/mipi_dbi: Fix off-by-one bugs in mipi_dbi_blank()
When configuring the frame memory window, the last column and row numbers are written to the column resp. page address registers. These numbers are thus one less than the actual window width resp. height. While this is handled correctly in mipi_dbi_fb_dirty() since commit 03ceb1c8dfd1e293 ("drm/tinydrm: Fix setting of the column/page end addresses."), it is not in mipi_dbi_blank(). The latter still forgets to subtract one when calculating the most significant bytes of the column and row numbers, thus programming wrong values when the display width or height is a multiple of 256. Fixes: 02dd95fe31693626 ("drm/tinydrm: Add MIPI DBI support") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Link: https://patchwork.freedesktop.org/patch/msgid/20191230130604.31006-1-geert+renesas@glider.be
Diffstat (limited to 'drivers/soundwire')
0 files changed, 0 insertions, 0 deletions