linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V1] mfd: da9061: fix to remove BBAT_CONT register from chip model
@ 2017-06-05 14:35 Steve Twiss
  2017-06-06  7:16 ` Lee Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Twiss @ 2017-06-05 14:35 UTC (permalink / raw)
  To: LINUX-KERNEL, Lee Jones; +Cc: Support Opensource

From: Steve Twiss <stwiss.opensource@diasemi.com>

Remove the register DA9062AA_BBAT_CONT (0x0C5) from the DA9061 chip model
regmap access ranges. This applies to both da9061_aa_readable_ranges[]
and da9061_aa_writeable_ranges[].

This change is to correct the DA9061 chip model and align it with the
latest DA9061 Datasheet.

This register previously appeared in the DA9061 Datasheet, Revision 3.2,
01-Mar-2016 and has been removed from later DA9061 datasheet from Dialog,
Revision 3.3, 04-Apr-2017.

Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>

---

Hi Lee,

This is a fix to remove DA9062AA_BBAT_CONT register from the DA9061
regmap read/write access tables. It only applies to the DA9061 chip,
and does not affect the DA9062.

No existing kernel code tries to access this register, so the change is
just a formality to correct the DA9061 chip model and align it with the
DA9061 Datasheet.

This patch applies against linux-next and v4.12-rc3

Regards,
Steve Twiss, Dialog Semiconductor


 drivers/mfd/da9062-core.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c
index 7f5e8be..fe18115 100644
--- a/drivers/mfd/da9062-core.c
+++ b/drivers/mfd/da9062-core.c
@@ -429,9 +429,6 @@ static int da9062_get_device_type(struct da9062 *chip)
 		.range_min = DA9062AA_VLDO1_B,
 		.range_max = DA9062AA_VLDO4_B,
 	}, {
-		.range_min = DA9062AA_BBAT_CONT,
-		.range_max = DA9062AA_BBAT_CONT,
-	}, {
 		.range_min = DA9062AA_INTERFACE,
 		.range_max = DA9062AA_CONFIG_E,
 	}, {
@@ -514,9 +511,6 @@ static int da9062_get_device_type(struct da9062 *chip)
 		.range_min = DA9062AA_VLDO1_B,
 		.range_max = DA9062AA_VLDO4_B,
 	}, {
-		.range_min = DA9062AA_BBAT_CONT,
-		.range_max = DA9062AA_BBAT_CONT,
-	}, {
 		.range_min = DA9062AA_GP_ID_0,
 		.range_max = DA9062AA_GP_ID_19,
 	},
-- 
end-of-patch for PATCH V1

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

* Re: [PATCH V1] mfd: da9061: fix to remove BBAT_CONT register from chip model
  2017-06-05 14:35 [PATCH V1] mfd: da9061: fix to remove BBAT_CONT register from chip model Steve Twiss
@ 2017-06-06  7:16 ` Lee Jones
  2017-08-14 13:12   ` Steve Twiss
  0 siblings, 1 reply; 4+ messages in thread
From: Lee Jones @ 2017-06-06  7:16 UTC (permalink / raw)
  To: Steve Twiss; +Cc: LINUX-KERNEL, Support Opensource

On Mon, 05 Jun 2017, Steve Twiss wrote:

> From: Steve Twiss <stwiss.opensource@diasemi.com>
> 
> Remove the register DA9062AA_BBAT_CONT (0x0C5) from the DA9061 chip model
> regmap access ranges. This applies to both da9061_aa_readable_ranges[]
> and da9061_aa_writeable_ranges[].
> 
> This change is to correct the DA9061 chip model and align it with the
> latest DA9061 Datasheet.
> 
> This register previously appeared in the DA9061 Datasheet, Revision 3.2,
> 01-Mar-2016 and has been removed from later DA9061 datasheet from Dialog,
> Revision 3.3, 04-Apr-2017.
> 
> Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
> 
> ---
> 
> Hi Lee,
> 
> This is a fix to remove DA9062AA_BBAT_CONT register from the DA9061
> regmap read/write access tables. It only applies to the DA9061 chip,
> and does not affect the DA9062.
> 
> No existing kernel code tries to access this register, so the change is
> just a formality to correct the DA9061 chip model and align it with the
> DA9061 Datasheet.
> 
> This patch applies against linux-next and v4.12-rc3
> 
> Regards,
> Steve Twiss, Dialog Semiconductor
> 
> 
>  drivers/mfd/da9062-core.c | 6 ------
>  1 file changed, 6 deletions(-)

Applied, thanks.

> diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c
> index 7f5e8be..fe18115 100644
> --- a/drivers/mfd/da9062-core.c
> +++ b/drivers/mfd/da9062-core.c
> @@ -429,9 +429,6 @@ static int da9062_get_device_type(struct da9062 *chip)
>  		.range_min = DA9062AA_VLDO1_B,
>  		.range_max = DA9062AA_VLDO4_B,
>  	}, {
> -		.range_min = DA9062AA_BBAT_CONT,
> -		.range_max = DA9062AA_BBAT_CONT,
> -	}, {
>  		.range_min = DA9062AA_INTERFACE,
>  		.range_max = DA9062AA_CONFIG_E,
>  	}, {
> @@ -514,9 +511,6 @@ static int da9062_get_device_type(struct da9062 *chip)
>  		.range_min = DA9062AA_VLDO1_B,
>  		.range_max = DA9062AA_VLDO4_B,
>  	}, {
> -		.range_min = DA9062AA_BBAT_CONT,
> -		.range_max = DA9062AA_BBAT_CONT,
> -	}, {
>  		.range_min = DA9062AA_GP_ID_0,
>  		.range_max = DA9062AA_GP_ID_19,
>  	},

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

* RE: [PATCH V1] mfd: da9061: fix to remove BBAT_CONT register from chip model
  2017-06-06  7:16 ` Lee Jones
@ 2017-08-14 13:12   ` Steve Twiss
  2017-08-15  8:29     ` Lee Jones
  0 siblings, 1 reply; 4+ messages in thread
From: Steve Twiss @ 2017-08-14 13:12 UTC (permalink / raw)
  To: Lee Jones; +Cc: LINUX-KERNEL, Support Opensource

On 06 June 2017 08:16, Lee Jones wrote:

Hi Lee,

> To: Steve Twiss
> Cc: LINUX-KERNEL; Support Opensource
> Subject: Re: [PATCH V1] mfd: da9061: fix to remove BBAT_CONT register from chip model
> 
> On Mon, 05 Jun 2017, Steve Twiss wrote:
> 
> > From: Steve Twiss <stwiss.opensource@diasemi.com>
> >
> > Remove the register DA9062AA_BBAT_CONT (0x0C5) from the DA9061 chip model
> > regmap access ranges. This applies to both da9061_aa_readable_ranges[]
> > and da9061_aa_writeable_ranges[].
> >
> > This change is to correct the DA9061 chip model and align it with the
> > latest DA9061 Datasheet.
> >
> > This register previously appeared in the DA9061 Datasheet, Revision 3.2,
> > 01-Mar-2016 and has been removed from later DA9061 datasheet from Dialog,
> > Revision 3.3, 04-Apr-2017.
> >
> > Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
> >
> > ---
> >
> > Hi Lee,
> >
> > This is a fix to remove DA9062AA_BBAT_CONT register from the DA9061
> > regmap read/write access tables. It only applies to the DA9061 chip,
> > and does not affect the DA9062.
> >
> > No existing kernel code tries to access this register, so the change is
> > just a formality to correct the DA9061 chip model and align it with the
> > DA9061 Datasheet.
> >
> > This patch applies against linux-next and v4.12-rc3
> >
> > Regards,
> > Steve Twiss, Dialog Semiconductor
> >
> >
> >  drivers/mfd/da9062-core.c | 6 ------
> >  1 file changed, 6 deletions(-)
> 
> Applied, thanks.

$ git describe
v4.13-rc5

Looking at linux-mainline today, I noticed a commit that seems to be applied
twice. This patch I sent on 5th June seems to have been duplicated and applied for
a second time (to the same file), and this has resulted in an error.

$ git log --oneline --author="diasemi.com" -2

b77eb79 mfd: da9061: Fix to remove BBAT_CONT register from chip model
2cd6496 mfd: da9061: Fix to remove BBAT_CONT register from chip model

$ git log --pretty=format:"%h, %cn, %s" | grep b77eb79
b77eb79, Lee Jones, mfd: da9061: Fix to remove BBAT_CONT register from chip model

Could you revert the b77eb79 commit please?

The original patch only applies to the DA9061 chip model and by duplicating my original
submission and applying b77eb79, it has also made the same change to the DA9062 chip
model. This is incorrect. The DA9062 and DA90861 chip models are different.

Regards,
Steve

> 
> > diff --git a/drivers/mfd/da9062-core.c b/drivers/mfd/da9062-core.c
> > index 7f5e8be..fe18115 100644
> > --- a/drivers/mfd/da9062-core.c
> > +++ b/drivers/mfd/da9062-core.c
> > @@ -429,9 +429,6 @@ static int da9062_get_device_type(struct da9062 *chip)
> >  		.range_min = DA9062AA_VLDO1_B,
> >  		.range_max = DA9062AA_VLDO4_B,
> >  	}, {
> > -		.range_min = DA9062AA_BBAT_CONT,
> > -		.range_max = DA9062AA_BBAT_CONT,
> > -	}, {
> >  		.range_min = DA9062AA_INTERFACE,
> >  		.range_max = DA9062AA_CONFIG_E,
> >  	}, {
> > @@ -514,9 +511,6 @@ static int da9062_get_device_type(struct da9062 *chip)
> >  		.range_min = DA9062AA_VLDO1_B,
> >  		.range_max = DA9062AA_VLDO4_B,
> >  	}, {
> > -		.range_min = DA9062AA_BBAT_CONT,
> > -		.range_max = DA9062AA_BBAT_CONT,
> > -	}, {
> >  		.range_min = DA9062AA_GP_ID_0,
> >  		.range_max = DA9062AA_GP_ID_19,
> >  	},
> 
> --
> Lee Jones
> Linaro STMicroelectronics Landing Team Lead
> Linaro.org │ Open source software for ARM SoCs
> Follow Linaro: Facebook | Twitter | Blog

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

* Re: [PATCH V1] mfd: da9061: fix to remove BBAT_CONT register from chip model
  2017-08-14 13:12   ` Steve Twiss
@ 2017-08-15  8:29     ` Lee Jones
  0 siblings, 0 replies; 4+ messages in thread
From: Lee Jones @ 2017-08-15  8:29 UTC (permalink / raw)
  To: Steve Twiss; +Cc: LINUX-KERNEL, Support Opensource

On Mon, 14 Aug 2017, Steve Twiss wrote:
> On 06 June 2017 08:16, Lee Jones wrote:

> > >  drivers/mfd/da9062-core.c | 6 ------
> > >  1 file changed, 6 deletions(-)
> > 
> > Applied, thanks.
> 
> $ git describe
> v4.13-rc5
> 
> Looking at linux-mainline today, I noticed a commit that seems to be applied
> twice. This patch I sent on 5th June seems to have been duplicated and applied for
> a second time (to the same file), and this has resulted in an error.
> 
> $ git log --oneline --author="diasemi.com" -2
> 
> b77eb79 mfd: da9061: Fix to remove BBAT_CONT register from chip model
> 2cd6496 mfd: da9061: Fix to remove BBAT_CONT register from chip model
> 
> $ git log --pretty=format:"%h, %cn, %s" | grep b77eb79
> b77eb79, Lee Jones, mfd: da9061: Fix to remove BBAT_CONT register from chip model
> 
> Could you revert the b77eb79 commit please?
> 
> The original patch only applies to the DA9061 chip model and by duplicating my original
> submission and applying b77eb79, it has also made the same change to the DA9062 chip
> model. This is incorrect. The DA9062 and DA90861 chip models are different.

Interesting.  Not sure how that happened.

Sorry for not noticing that sooner.

Will fix.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

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

end of thread, other threads:[~2017-08-15  8:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-05 14:35 [PATCH V1] mfd: da9061: fix to remove BBAT_CONT register from chip model Steve Twiss
2017-06-06  7:16 ` Lee Jones
2017-08-14 13:12   ` Steve Twiss
2017-08-15  8:29     ` Lee Jones

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