]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
fbdev/ssd1307fb: clear screen in probe
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 8 Feb 2017 15:44:00 +0000 (16:44 +0100)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 8 Feb 2017 15:44:00 +0000 (16:44 +0100)
SSD1306 does not clear the panel's framebuffer automatically, even if a
HW reset happens, so we need to do that at probe time before enabling
the panel.

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Cc: BenoƮt Cousson <bcousson@baylibre.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/ssd1307fb.c

index 616a6a3fabf978d958a31e8a91e57e57141be591..5c87ae4bac6a26cab5857a03c9990ef1db153e70 100644 (file)
@@ -441,9 +441,8 @@ static int ssd1307fb_init(struct ssd1307fb_par *par)
        if (ret < 0)
                return ret;
 
-       /* Clear the screen if we could not give reset at probe time */
-       if (!par->reset)
-               ssd1307fb_update_display(par);
+       /* Clear the screen */
+       ssd1307fb_update_display(par);
 
        /* Turn on the display */
        ret = ssd1307fb_write_cmd(par->client, SSD1307FB_DISPLAY_ON);