Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e376822 authored by Tomi Valkeinen's avatar Tomi Valkeinen Committed by Bartlomiej Zolnierkiewicz
Browse files

fbdev/ssd1307fb: clear screen in probe



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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
parent ba14301e
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -441,8 +441,7 @@ 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)
	/* Clear the screen */
	ssd1307fb_update_display(par);

	/* Turn on the display */