From: Michael Hennerich <michael.hennerich@analog.com>
To: Lars-Peter Clausen <lars@metafoo.de>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Richard Purdie <rpurdie@rpsys.net>,
"device-drivers-devel@blackfin.uclinux.org"
<device-drivers-devel@blackfin.uclinux.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] backlight: adp8860/adp8870: Fix resume
Date: Tue, 19 Feb 2013 14:09:48 +0100 [thread overview]
Message-ID: <5123799C.1080901@analog.com> (raw)
In-Reply-To: <1361278925-11107-1-git-send-email-lars@metafoo.de>
On 02/19/2013 02:02 PM, Lars-Peter Clausen wrote:
> Clearing the NSTBY bit in the control register also automatically clears the
> BLEN bit. So we need to make sure to set it again during resume, otherwise the
> backlight will stay off.
>
> Cc: stable@vger.kernel.org
> Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
> ---
> drivers/video/backlight/adp8860_bl.c | 2 +-
> drivers/video/backlight/adp8870_bl.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/video/backlight/adp8860_bl.c b/drivers/video/backlight/adp8860_bl.c
> index 6bb72c0..a77c9ca 100644
> --- a/drivers/video/backlight/adp8860_bl.c
> +++ b/drivers/video/backlight/adp8860_bl.c
> @@ -783,7 +783,7 @@ static int adp8860_i2c_suspend(struct i2c_client *client, pm_message_t message)
>
> static int adp8860_i2c_resume(struct i2c_client *client)
> {
> - adp8860_set_bits(client, ADP8860_MDCR, NSTBY);
> + adp8860_set_bits(client, ADP8860_MDCR, NSTBY | BLEN);
>
> return 0;
> }
> diff --git a/drivers/video/backlight/adp8870_bl.c b/drivers/video/backlight/adp8870_bl.c
> index 63c882b..712c25a 100644
> --- a/drivers/video/backlight/adp8870_bl.c
> +++ b/drivers/video/backlight/adp8870_bl.c
> @@ -957,7 +957,7 @@ static int adp8870_i2c_suspend(struct i2c_client *client, pm_message_t message)
>
> static int adp8870_i2c_resume(struct i2c_client *client)
> {
> - adp8870_set_bits(client, ADP8870_MDCR, NSTBY);
> + adp8870_set_bits(client, ADP8870_MDCR, NSTBY | BLEN);
>
> return 0;
> }
--
Greetings,
Michael
--
Analog Devices GmbH Wilhelm-Wagenfeld-Str. 6 80807 Muenchen
Sitz der Gesellschaft: Muenchen; Registergericht: Muenchen HRB 40368;
Geschaeftsfuehrer:Dr.Carsten Suckrow, Thomas Wessel, William A. Martin,
Margaret Seif
prev parent reply other threads:[~2013-02-19 13:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-19 13:02 [PATCH] backlight: adp8860/adp8870: Fix resume Lars-Peter Clausen
2013-02-19 13:09 ` Michael Hennerich [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=5123799C.1080901@analog.com \
--to=michael.hennerich@analog.com \
--cc=akpm@linux-foundation.org \
--cc=device-drivers-devel@blackfin.uclinux.org \
--cc=lars@metafoo.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rpurdie@rpsys.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox