From: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
To: linux-fbdev@vger.kernel.org
Subject: Re: [PATCH] da8xx-fb: do not turn ON LCD backlight unless LCDC is enabled
Date: Sun, 29 Jul 2012 21:16:00 +0000 [thread overview]
Message-ID: <5015A810.9020409@gmx.de> (raw)
In-Reply-To: <1343103325-7313-1-git-send-email-prakash.pm@ti.com>
On 07/24/2012 04:15 AM, Manjunathappa, Prakash wrote:
> LCD blink is observed during suspend/resume and blank/unblank
> operations as backlight is ON during LCDC disable and enable.
> So make sure to turn OFF backlight before disabling and turn
> it ON after enabling.
>
> Signed-off-by: Manjunathappa, Prakash <prakash.pm@ti.com>
Applied.
Thanks,
Florian Tobias Schandinat
> ---
> drivers/video/da8xx-fb.c | 9 +++++----
> 1 files changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
> index 0fb4d7d..1a569ae 100644
> --- a/drivers/video/da8xx-fb.c
> +++ b/drivers/video/da8xx-fb.c
> @@ -1056,10 +1056,10 @@ static int cfb_blank(int blank, struct fb_info *info)
> par->blank = blank;
> switch (blank) {
> case FB_BLANK_UNBLANK:
> + lcd_enable_raster();
> +
> if (par->panel_power_ctrl)
> par->panel_power_ctrl(1);
> -
> - lcd_enable_raster();
> break;
> case FB_BLANK_POWERDOWN:
> if (par->panel_power_ctrl)
> @@ -1417,11 +1417,12 @@ static int fb_resume(struct platform_device *dev)
> struct da8xx_fb_par *par = info->par;
>
> console_lock();
> + clk_enable(par->lcdc_clk);
> + lcd_enable_raster();
> +
> if (par->panel_power_ctrl)
> par->panel_power_ctrl(1);
>
> - clk_enable(par->lcdc_clk);
> - lcd_enable_raster();
> fb_set_suspend(info, 0);
> console_unlock();
>
prev parent reply other threads:[~2012-07-29 21:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-24 4:27 [PATCH] da8xx-fb: do not turn ON LCD backlight unless LCDC is enabled Manjunathappa, Prakash
2012-07-29 21:16 ` Florian Tobias Schandinat [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5015A810.9020409@gmx.de \
--to=florianschandinat@gmx.de \
--cc=linux-fbdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.