All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: twl-core: Fix accessibility of some twl4030 audio registers
@ 2014-03-10 18:12 Tomas Novotny
  2014-03-11  6:51 ` Lee Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Tomas Novotny @ 2014-03-10 18:12 UTC (permalink / raw)
  To: linux-omap; +Cc: peter.ujfalusi

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:
 		return false;
 	default:
 		return true;
-- 
1.8.4.5


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH] mfd: twl-core: Fix accessibility of some twl4030 audio registers
  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  8:29 ` Peter Ujfalusi
  2 siblings, 0 replies; 8+ messages in thread
From: Lee Jones @ 2014-03-11  6:51 UTC (permalink / raw)
  To: Tomas Novotny; +Cc: linux-omap, peter.ujfalusi

> 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(-)

Applied, thanks.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] mfd: twl-core: Fix accessibility of some twl4030 audio registers
  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
  2 siblings, 1 reply; 8+ messages in thread
From: Lee Jones @ 2014-03-11  6:52 UTC (permalink / raw)
  To: Tomas Novotny; +Cc: linux-omap, peter.ujfalusi

> 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(-)

In future, please don't forget to CC LKML.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] mfd: twl-core: Fix accessibility of some twl4030 audio registers
  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  8:29 ` Peter Ujfalusi
  2014-03-18 17:26   ` Tony Lindgren
  2 siblings, 1 reply; 8+ messages in thread
From: Peter Ujfalusi @ 2014-03-11  8:29 UTC (permalink / raw)
  To: Tomas Novotny, linux-omap

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>


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] mfd: twl-core: Fix accessibility of some twl4030 audio registers
  2014-03-11  6:52 ` Lee Jones
@ 2014-03-11 12:16   ` Tomas Novotny
  0 siblings, 0 replies; 8+ messages in thread
From: Tomas Novotny @ 2014-03-11 12:16 UTC (permalink / raw)
  To: Lee Jones; +Cc: linux-omap, peter.ujfalusi

On Tue, 11 Mar 2014 06:52:17 +0000
Lee Jones <lee.jones@linaro.org> 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(-)
> 
> In future, please don't forget to CC LKML.
> 

Ok and thanks for applying.

Tomas

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] mfd: twl-core: Fix accessibility of some twl4030 audio registers
  2014-03-11  8:29 ` Peter Ujfalusi
@ 2014-03-18 17:26   ` Tony Lindgren
  2014-03-18 20:19     ` Lee Jones
  0 siblings, 1 reply; 8+ messages in thread
From: Tony Lindgren @ 2014-03-18 17:26 UTC (permalink / raw)
  To: Peter Ujfalusi; +Cc: Tomas Novotny, linux-omap

* 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] mfd: twl-core: Fix accessibility of some twl4030 audio registers
  2014-03-18 17:26   ` Tony Lindgren
@ 2014-03-18 20:19     ` Lee Jones
  2014-03-19 15:31       ` Tony Lindgren
  0 siblings, 1 reply; 8+ messages in thread
From: Lee Jones @ 2014-03-18 20:19 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: Peter Ujfalusi, Tomas Novotny, linux-omap

> > > 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.

I think it's a little late in the cycle to send this to the -rcs.

Stable will be Cc'ed however.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH] mfd: twl-core: Fix accessibility of some twl4030 audio registers
  2014-03-18 20:19     ` Lee Jones
@ 2014-03-19 15:31       ` Tony Lindgren
  0 siblings, 0 replies; 8+ messages in thread
From: Tony Lindgren @ 2014-03-19 15:31 UTC (permalink / raw)
  To: Lee Jones; +Cc: Peter Ujfalusi, Tomas Novotny, linux-omap

* Lee Jones <lee.jones@linaro.org> [140318 13:23]:
> > > > 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.
> 
> I think it's a little late in the cycle to send this to the -rcs.
> 
> Stable will be Cc'ed however.

That's fine with me thanks.

Tony

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-03-19 15:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2014-03-18 20:19     ` Lee Jones
2014-03-19 15:31       ` Tony Lindgren

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.