regulator: da9061: BUCK and LDO regulator driver
Subsystems (4)
PATCH RESEND v7 5/7 regulator: da9061: BUCK and LDO regulator driver
In reply to a message not in the archiveFrom: Steve Twiss <[email protected]>
Regulator support for the DA9061 is added into the DA9062 regulator driver.
The regulators for DA9061 differ from those of DA9062.
A new DA9061 enumeration list for the LDOs and Bucks supported by this device is added. Regulator information added: the old regulator information for DA9062 is renamed from local_regulator_info[] to local_da9062_regulator_info[] and a new array is added to support local_da9061_regulator_info[].
The probe() function switches on the da9062_compatible_types enumeration and configures the correct da9062_regulator_info array and number of regulator entries.
Kconfig is updated to reflect support for DA9061 and DA9062 regulators.
---
Hi Mark,
Quoted 7 lines · Mark Brown
Subject: Re: [RESEND PATCH V7 5/7] regulator: da9061: BUCK and LDO regulator driver
Quoted 3 lines · Lee Jones
Quoted 1 line · Mark Brown
On Wed, May 24, 2017 at 09:32:43AM +0100, Lee Jones wrote:
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 1 line
Plan is to push this through the MFD tree.
Great, thanks.
Just taking a look at this now. It looks like the dependency:
656211b1dfb9mfd: Add support for DA9061
... is now in Mainline. Therefore it should be okay to take this directly through the Regulator repo.OK, can you resend please Steve?
Thanks for taking this patch.
Regards,
Steve
This patch was Acked by Mark Brown, a long time ago, way back in Oct 2016
(https://patchwork.kernel.org/patch/9397787/).
I have kept Mark Brown's Ack attached because there have been no real code changes since then, but I have recently updated the copyright header slightly, rebased the code (no changes necessary) and compile tested it against x86_64.
The MFD files which this patch depended on were accepted into linux-mainline by Lee Jones. If there is anything in the way of this patch acceptance, could you please let me know?
This patch applies against linux-next and v4.12-rc2
v6 -> v7
- NO CODE CHANGE
- Compile tested ARCH=x86_64
v5 -> v6
- Rebased from v4.9 to v4.11-rc3
- Modify Copyright to match Dialog latest legal statement
v4 -> v5
- Rebased from v4.8 to v4.9
- NO CODE CHANGE
v3 -> v4
- NO CODE CHANGE
- Patch renamed from [PATCH V3 6/9] to [PATCH V4 5/8]
v2 -> v3
- NO CODE CHANGE
- Patch renamed from [PATCH V2 06/10] to [PATCH V3 6/9]
- Added Ack from Mark Brown
v1 -> v2
- Patch renamed from [PATCH V1 02/10] to [PATCH V2 06/10] -- these changes were made to fix checkpatch warnings caused by the patch set dependency order
- Updated header to use DA9061 and DA9062
As previously:
These changes depend on a header file provided as part of an earlier patch [V7,4/7] mfd: da9061: MFD core support from this set. The regulator probe() switches on the chip_type which uses enum da9062_compatible_types in core.h from this patch.
Regards,
Steve Twiss, Dialog Semiconductor
drivers/regulator/Kconfig | 4 +- drivers/regulator/da9062-regulator.c | 303 +++++++++++++++++++++++++++++++++-- 2 files changed, 293 insertions(+), 14 deletions(-)
drivers/regulator/Kconfig +2 -2
@@ -214,11 +214,11 @@ config REGULATOR_DA9055 will be called da9055-regulator. config REGULATOR_DA9062 - tristate "Dialog Semiconductor DA9062 regulators" + tristate "Dialog Semiconductor DA9061/62 regulators" depends on MFD_DA9062 help Say y here to support the BUCKs and LDOs regulators found on - DA9062 PMICs. + DA9061 and DA9062 PMICs. This driver can also be built as a module. If so, the module will be called da9062-regulator.
drivers/regulator/da9062-regulator.c +291 -12
356 lines not on this page · raw message
Signature · 1 line
end-of-patch for RESEND PATCH V7
Mark Brown
maintainerQuoted 3 lines · Steve Twiss
From: Steve Twiss <[email protected]>
Regulator support for the DA9061 is added into the DA9062 regulator driver.
I'm missing the other patches in this series and the cover letter, what are the dependencies here?
Hi Mark,
Quoted 9 lines · Mark Brown
Subject: Re: [RESEND PATCH V7 5/7] regulator: da9061: BUCK and LDO regulator driver
Quoted 3 lines · Steve Twiss
From: Steve Twiss <[email protected]>
Regulator support for the DA9061 is added into the DA9062 regulator driver.
I'm missing the other patches in this series and the cover letter, what are the dependencies here?
My apologies Mark. I didn't re-send the cover letter because this regulator patch is the last one and I assumed it would not add anything. Am I confusing you here by not renaming the patch and leaving its subject as [PATCH V7 5/7]?
This whole DA9061 patch set was a very long time in the submission process. You Acked the DA9061 regulator patch back in 2016, but it had a compile dependency with the DA9061 MFD patch so it had to wait until that got approved. If the regulator patch had got in first, it would have broken the build.
The MFD patch contained a change to the ./include/linux/mfd/da9062/core.h file -- it had a new enum for da9062_compatible_types and these values were used in the MFD, but also appeared in the regulator patch as part of the da9062_regulator_probe().
According to my records, I think the MFD made it into linux-mainline/v4.12-rc1 as part of Lee Jones' e-mail "[GIT PULL] MFD for v4.12"
https://lkml.org/lkml/2017/5/3/91 [I can't check that link, LKML is down atm]. Once the MFD change for DA9062/1 had been added, this unblocked the patch for the regulators.
In my test environment here, I've tested the DA9061 and the build by patching v4.12-rc2 with the remaining DA9061 regulator patch.
I'm not sure the cover letter for the original V7 patch set will explain much, but I will resend again, this time with the cover letter.
Regards,
Steve
The original components of the PATCH V7 are as follows:
[v7,1] https://patchwork.kernel.org/patch/9649905/
[v7,2] https://patchwork.kernel.org/patch/9649921/
[v7,3] https://patchwork.kernel.org/patch/9649889/
[v7,4] https://patchwork.kernel.org/patch/9649927/
[v7,5] https://patchwork.kernel.org/patch/9649895/
[v7,6] https://patchwork.kernel.org/patch/9649917/
[v7,7] https://patchwork.kernel.org/patch/9649913/
Mark Brown
maintainerQuoted 9 lines · Steve Twiss
Quoted 2 lines · Mark Brown
I'm missing the other patches in this series and the cover letter, what are the dependencies here?
My apologies Mark. I didn't re-send the cover letter because this regulator patch is the last one and I assumed it would not add anything. Am I confusing you here by not renaming the patch and leaving its subject as [PATCH V7 5/7]?
Yes, you are confusing things. You're missing the point of numbering patches in a series, it's so that when working with a set of patches that have been posted pople know what order to apply them in. The numbering only means anything in a given posting of the series, if something is resent it doesn't matter if it was posted before the numbering should reflect what's being posted at the current time.