public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Samuel Ortiz <sameo@linux.intel.com>
To: Marcus Folkesson <marcus.folkesson@gmail.com>,
	Graeme Gregory <gg@slimlogic.co.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mfd: tps65910: Handle clear-mask correctly
Date: Mon, 12 Dec 2011 15:30:43 +0100	[thread overview]
Message-ID: <20111212143043.GF13952@sortiz-mobl> (raw)
In-Reply-To: <1321969191-8604-2-git-send-email-marcus.folkesson@gmail.com>

Hi Marcus,

On Tue, Nov 22, 2011 at 02:39:51PM +0100, Marcus Folkesson wrote:
> The function is not actually cleaing the bitmask.

This looks like a valid fix, and all the tps65910_clear_bits() callers seem to
expect that behaviour. Graeme, I'm going to try to push this one for 3.2,
unless you object to it.

Cheers,
Samuel.

> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
> ---
>  drivers/mfd/tps65910.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mfd/tps65910.c b/drivers/mfd/tps65910.c
> index 6f5b8cf..c1da84b 100644
> --- a/drivers/mfd/tps65910.c
> +++ b/drivers/mfd/tps65910.c
> @@ -120,7 +120,7 @@ int tps65910_clear_bits(struct tps65910 *tps65910, u8 reg, u8 mask)
>  		goto out;
>  	}
>  
> -	data &= mask;
> +	data &= ~mask;
>  	err = tps65910_i2c_write(tps65910, reg, 1, &data);
>  	if (err)
>  		dev_err(tps65910->dev, "write to reg %x failed\n", reg);
> -- 
> 1.7.5.4
> 

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

  reply	other threads:[~2011-12-12 14:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Marcus Folkesson <marcus.folkesson@gmail.com>
2011-11-22 13:39 ` [PATCH] mfd: tps65910: Handle clear-mask correctly desc Marcus Folkesson
2011-11-22 13:39   ` [PATCH] mfd: tps65910: Handle clear-mask correctly Marcus Folkesson
2011-12-12 14:30     ` Samuel Ortiz [this message]
2011-12-12 15:04       ` Graeme Gregory
2013-11-22  7:16 ` [PATCH RESEND] rtc: ds1511: add device-tree bindings Marcus Folkesson
2013-11-22  7:16   ` [PATCH] " Marcus Folkesson
2013-11-22  9:26     ` Mark Rutland

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=20111212143043.GF13952@sortiz-mobl \
    --to=sameo@linux.intel.com \
    --cc=gg@slimlogic.co.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcus.folkesson@gmail.com \
    /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