linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Peter Ujfalusi <peter.ujfalusi@ti.com>
Cc: Tomas Novotny <tomas@novotny.cz>, linux-omap@vger.kernel.org
Subject: Re: [PATCH] mfd: twl-core: Fix accessibility of some twl4030 audio registers
Date: Tue, 18 Mar 2014 10:26:51 -0700	[thread overview]
Message-ID: <20140318172650.GA307@atomide.com> (raw)
In-Reply-To: <531EC981.8090806@ti.com>

* Peter Ujfalusi <peter.ujfalusi@ti.com> [140311 01:33]:
> On 03/10/2014 08:12 PM, Tomas Novotny wrote:
> > There are some unused registers in twl4030 at I2C address 0x49 and function
> > twl4030_49_nop_reg() is used to check accessibility of that registers. These
> > registers are written in decimal format but the values are correct in
> > hexadecimal format. (It can be checked few lines above the patched code -
> > these registers are marked as unused there.)
> > 
> > As a consequence three registers of audio submodule are treated as
> > inaccessible (preamplifier carkit right and both handsfree registers).
> > 
> > CC: Peter Ujfalusi <peter.ujfalusi@ti.com>
> > Signed-off-by: Tomas Novotny <tomas@novotny.cz>
> > ---
> >  drivers/mfd/twl-core.c | 10 +++++-----
> >  1 file changed, 5 insertions(+), 5 deletions(-)
> > 
> > diff --git a/drivers/mfd/twl-core.c b/drivers/mfd/twl-core.c
> > index ed71832..e87140b 100644
> > --- a/drivers/mfd/twl-core.c
> > +++ b/drivers/mfd/twl-core.c
> > @@ -282,11 +282,11 @@ static struct reg_default twl4030_49_defaults[] = {
> >  static bool twl4030_49_nop_reg(struct device *dev, unsigned int reg)
> >  {
> >  	switch (reg) {
> > -	case 0:
> > -	case 3:
> > -	case 40:
> > -	case 41:
> > -	case 42:
> > +	case 0x00:
> > +	case 0x03:
> > +	case 0x40:
> > +	case 0x41:
> > +	case 0x42:
> 
> Uhm, I can not be that @#$%^& that I did this... I have no idea how I left out
> the "0x"
> 
> Thanks for spotting it!
> 
> Acked-by Peter Ujfalusi <peter.ujfalusi@ti.com>

Peter, if this does not make it to the -rc series, care to send this to
the stable for inclusion after it hits mainline?

This fixes twl4030 audio regression at least on boards using HandsfreeL
for audio.

Regards,

Tony

  reply	other threads:[~2014-03-18 17:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-10 18:12 [PATCH] mfd: twl-core: Fix accessibility of some twl4030 audio registers Tomas Novotny
2014-03-11  6:51 ` Lee Jones
2014-03-11  6:52 ` Lee Jones
2014-03-11 12:16   ` Tomas Novotny
2014-03-11  8:29 ` Peter Ujfalusi
2014-03-18 17:26   ` Tony Lindgren [this message]
2014-03-18 20:19     ` Lee Jones
2014-03-19 15:31       ` Tony Lindgren

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=20140318172650.GA307@atomide.com \
    --to=tony@atomide.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=peter.ujfalusi@ti.com \
    --cc=tomas@novotny.cz \
    /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;
as well as URLs for NNTP newsgroup(s).