Hi, I just saw that the same thing was already fixed by Julian in November, sorry for doubling this. Best regards Kai -----Original Message----- From: Kai Ruhnau Sent: Montag, 1. Februar 2016 16:04 To: plagnioj@xxxxxxxxxxxx; tomi.valkeinen@xxxxxx Cc: niederp@xxxxxxxxxxxxxxxx; linux-fbdev@xxxxxxxxxxxxxxx; Kai Ruhnau <kai.ruhnau@xxxxxxxxxxxxx> Subject: [PATCH] fbdev: ssd1307fb: Fix activating the charge pump on ssd1306 The charge pump is activated by sending 0x14 where the higher bit is always 1 and the lower bit actually toggles it. Signed-off-by: Kai Ruhnau <kai.ruhnau@xxxxxxxxxxxxx> --- drivers/video/fbdev/ssd1307fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/ssd1307fb.c b/drivers/video/fbdev/ssd1307fb.c index fa34808..20d249f 100644 --- a/drivers/video/fbdev/ssd1307fb.c +++ b/drivers/video/fbdev/ssd1307fb.c @@ -285,7 +285,7 @@ static void ssd1307fb_deferred_io(struct fb_info *info, static int ssd1307fb_init(struct ssd1307fb_par *par) { int ret; - u32 precharge, dclk, com_invdir, compins; + u32 precharge, dclk, com_invdir, compins, chargepump; if (par->device_info->need_pwm) { par->pwm = pwm_get(&par->client->dev, NULL); @@ -388,8 +388,8 @@ static int ssd1307fb_init(struct ssd1307fb_par *par) if (ret < 0) return ret; - ret = ssd1307fb_write_cmd(par->client, - (par->device_info->need_chargepump & 0x1 << 2) & 0x14); + chargepump = 0x10 | (par->device_info->need_chargepump & 0x1) << 2; + ret = ssd1307fb_write_cmd(par->client, chargepump); if (ret < 0) return ret; -- 2.4.3 -- Kai Ruhnau Software Manager T:+49 202 769302 19 Target Systemelektronik GmbH & Co. KG Heinz-Fangman-Straße 4 42287 Wuppertal Amtsgericht Wuppertal HRA 23898 Persönlich haftende Gesellschafterin Target Systemelektronik Beteiligungs GmbH Heinz-Fangman-Straße 4, 42287 Wuppertal Amtsgericht Wuppertal HRB 25346 Geschäftsführer: Jürgen Stein -- -- Kai Ruhnau Software Manager T:+49 202 769302 19 Target Systemelektronik GmbH & Co. KG Heinz-Fangman-Straße 4 42287 Wuppertal Amtsgericht Wuppertal HRA 23898 Persönlich haftende Gesellschafterin Target Systemelektronik Beteiligungs GmbH Heinz-Fangman-Straße 4, 42287 Wuppertal Amtsgericht Wuppertal HRB 25346 Geschäftsführer: Jürgen Stein -- -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html