[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <lsq.1575813165.322001255@decadent.org.uk>
Date: Sun, 08 Dec 2019 13:52:51 +0000
From: Ben Hutchings <ben@...adent.org.uk>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org
CC: akpm@...ux-foundation.org, Denis Kirjanov <kda@...ux-powerpc.org>,
"Daniel Vetter" <daniel@...ll.ch>,
"Mark Rutland" <mark.rutland@....com>,
"Rob Herring" <robh+dt@...nel.org>,
"Bartlomiej Zolnierkiewicz" <b.zolnierkie@...sung.com>,
"Michal Vokáč" <michal.vokac@...ft.com>,
"David Airlie" <airlied@...ux.ie>,
"Marko Kohtala" <marko.kohtala@...ko.fi>
Subject: [PATCH 3.16 07/72] video: ssd1307fb: Start page range at page_offset
3.16.79-rc1 review patch. If anyone has any objections, please let me know.
------------------
From: Marko Kohtala <marko.kohtala@...ko.fi>
commit dd9782834dd9dde3624ff1acea8859f3d3e792d4 upstream.
The page_offset was only applied to the end of the page range. This caused
the display updates to cause a scrolling effect on the display because the
amount of data written to the display did not match the range display
expected.
Fixes: 301bc0675b67 ("video: ssd1307fb: Make use of horizontal addressing mode")
Signed-off-by: Marko Kohtala <marko.kohtala@...ko.fi>
Cc: Mark Rutland <mark.rutland@....com>
Cc: Rob Herring <robh+dt@...nel.org>
Cc: Daniel Vetter <daniel@...ll.ch>
Cc: David Airlie <airlied@...ux.ie>
Cc: Michal Vokáč <michal.vokac@...ft.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190618074111.9309-4-marko.kohtala@okoko.fi
Signed-off-by: Ben Hutchings <ben@...adent.org.uk>
---
drivers/video/fbdev/ssd1307fb.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/video/fbdev/ssd1307fb.c
+++ b/drivers/video/fbdev/ssd1307fb.c
@@ -426,7 +426,7 @@ static int ssd1307fb_ssd1306_init(struct
if (ret < 0)
return ret;
- ret = ssd1307fb_write_cmd(par->client, 0x0);
+ ret = ssd1307fb_write_cmd(par->client, par->page_offset);
if (ret < 0)
return ret;
Powered by blists - more mailing lists