public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Samuel Ortiz <sameo@linux.intel.com>
To: Grazvydas Ignotas <notasas@gmail.com>
Cc: linux-omap@vger.kernel.org,
	David Brownell <dbrownell@users.sourceforge.net>
Subject: Re: [PATCH] mfd: fix TWL4030 COR bit polarity for BCI SIH block
Date: Tue, 19 Oct 2010 01:37:49 +0200	[thread overview]
Message-ID: <20101018233748.GB16761@sortiz-mobl> (raw)
In-Reply-To: <1285680139-19092-1-git-send-email-notasas@gmail.com>

Hi Grazvydas,

On Tue, Sep 28, 2010 at 04:22:19PM +0300, Grazvydas Ignotas wrote:
> The chip TRM documentation contradicts itself about this bit, page 174
> of swcu050e says bit should be 0 for clear-on-read behavior, while
> page 487 says it should be 1. Testing shows it should be 1, so set
> the .set_cor flag accordingly. This is needed for upcoming BCI
> charging driver to function.
Patch applied, thanks.

Cheers,
Samuel.


> Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
> ---
>  drivers/mfd/twl4030-irq.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c
> index 097f24d..5b5a559 100644
> --- a/drivers/mfd/twl4030-irq.c
> +++ b/drivers/mfd/twl4030-irq.c
> @@ -144,6 +144,7 @@ static const struct sih sih_modules_twl4030[6] = {
>  		.name		= "bci",
>  		.module		= TWL4030_MODULE_INTERRUPTS,
>  		.control_offset	= TWL4030_INTERRUPTS_BCISIHCTRL,
> +		.set_cor	= true,
>  		.bits		= 12,
>  		.bytes_ixr	= 2,
>  		.edr_offset	= TWL4030_INTERRUPTS_BCIEDR1,
> @@ -408,7 +409,7 @@ static int twl4030_init_sih_modules(unsigned line)
>  		 * set Clear-On-Read (COR) bit.
>  		 *
>  		 * NOTE that sometimes COR polarity is documented as being
> -		 * inverted:  for MADC and BCI, COR=1 means "clear on write".
> +		 * inverted:  for MADC, COR=1 means "clear on write".
>  		 * And for PWR_INT it's not documented...
>  		 */
>  		if (sih->set_cor) {
> -- 
> 1.6.3.3
> 

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

      parent reply	other threads:[~2010-10-18 23:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-28 13:22 [PATCH] mfd: fix TWL4030 COR bit polarity for BCI SIH block Grazvydas Ignotas
2010-10-05 15:52 ` Tony Lindgren
2010-10-18 23:37 ` Samuel Ortiz [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=20101018233748.GB16761@sortiz-mobl \
    --to=sameo@linux.intel.com \
    --cc=dbrownell@users.sourceforge.net \
    --cc=linux-omap@vger.kernel.org \
    --cc=notasas@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