Dollar Cove TI PMIC support for Intel Cherry Trail
Subsystems (5)
v5 cover Dollar Cove TI PMIC support for Intel Cherry Trail
Hi,
this is the revised v5 patch set to add the support for Dollar Cove TI PMIC found on some Intel Cherry Trail laptops / tablets. All drivers are based on the original code from Intel downstream patches, with lots of rewrites and cleanups. MFD driver is implemented as a stand-alone driver like a few other variants, and the input driver got a diet in a minimalistic form.
The patch set has been tested on ASUS E100H and E200H, as well as on HP x210.
thanks,
Takashi
===
v4->5:
* Minor coding-style fixes in MFD driver suggested by Lee
* Put GPL text to MFD driver
v3->v4:
- Correct Kconfig / Makefile for ACPI opregion driver
- Minor fixes of powerbutton driver suggested by Dmitry
- Rephrase Kconfig help text for powerbutton driver
v2->v3:
- Rename dc_ti with chtdc_ti in all places
- Driver/kconfig renames accordingly
- A few constifications
- Added acks by Andy and Mika
v1->v2:
- Minor cleanups in mfd driver code as suggested by Andy
- Move power-button driver to platform/x86, driver renames accordingly
- Add missing wake-irq cleanup to power-button driver
- get_raw_temp cleanup in opregion driver, mention about register endianess
Takashi Iwai (3):
mfd: Add support for Cherry Trail Dollar Cove TI PMIC platform/x86: Add support for Dollar Cove TI power button ACPI / PMIC: Add opregion driver for Intel Dollar Cove TI PMIC
drivers/acpi/Kconfig | 6 + drivers/acpi/Makefile | 1 + drivers/acpi/pmic/intel_pmic_chtdc_ti.c | 137 ++++++++++++++++++++ drivers/mfd/Kconfig | 13 ++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 +++++++++++++++++++++++++++ drivers/platform/x86/Kconfig | 11 ++ drivers/platform/x86/Makefile | 1 + drivers/platform/x86/intel_chtdc_ti_pwrbtn.c | 94 ++++++++++++++ 9 files changed, 448 insertions(+) create mode 100644 drivers/acpi/pmic/intel_pmic_chtdc_ti.c create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.c create mode 100644 drivers/platform/x86/intel_chtdc_ti_pwrbtn.c
Signature · 1 line
2.14.1
PATCH v5 1/3 mfd: Add support for Cherry Trail Dollar Cove TI PMIC
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuilts
This is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
---v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Rename dc_ti with chtdc_ti in all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by Andy
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.c
drivers/mfd/Kconfig +13 -0
@@ -496,6 +496,19 @@ config INTEL_SOC_PMIC_CHTWC available before any devices using it are probed. This option also causes the designware-i2c driver to be builtin for the same reason. +config INTEL_SOC_PMIC_CHTDC_TI + tristate "Support for Intel Cherry Trail Dollar Cove TI PMIC" + depends on GPIOLIB + depends on I2C + depends on ACPI + depends on X86 + select MFD_CORE + select REGMAP_I2C + select REGMAP_IRQ + help + Select this option for supporting Dollar Cove (TI version) PMIC + device that is found on some Intel Cherry Trail systems. + config MFD_INTEL_LPSS tristate select COMMON_CLK
drivers/mfd/Makefile +1 -0
@@ -216,6 +216,7 @@ intel-soc-pmic-objs := intel_soc_pmic_core.o intel_soc_pmic_crc.o obj-$(CONFIG_INTEL_SOC_PMIC) += intel-soc-pmic.o obj-$(CONFIG_INTEL_SOC_PMIC_BXTWC) += intel_soc_pmic_bxtwc.o obj-$(CONFIG_INTEL_SOC_PMIC_CHTWC) += intel_soc_pmic_chtwc.o +obj-$(CONFIG_INTEL_SOC_PMIC_CHTDC_TI) += intel_soc_pmic_chtdc_ti.o obj-$(CONFIG_MFD_MT6397) += mt6397-core.o obj-$(CONFIG_MFD_ALTERA_A10SR) += altera-a10sr.o
drivers/mfd/intel_soc_pmic_chtdc_ti.c new file +184 -0
184 lines not on this page · raw message
Signature · 1 line
2.14.1
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by Andy
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.c
For my own reference:
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by Andy
Quoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
thanks,
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Hi,
Quoted 41 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+)create mode 100644
drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Thanks!
Quoted 8 lines
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Since the mfd driver only instantiates platform devices there is only a runtime dependency between the drivers AFAICT so each driver can be merged through it own subsystem without problem / without the need for an immutable branch, or am I missing something ?
Regards,
Hans
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 49 lines · Hans de Goede
Hi,
Quoted 46 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+)create mode 100644
drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Quoted 8 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Since the mfd driver only instantiates platform devices there is only a runtime dependency between the drivers AFAICT so each driver can be merged through it own subsystem without problem / without the need for an immutable branch, or am I missing something ?
Seconded.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
In reply to Hans de GoedeQuoted 50 lines · Hans de Goede
Hi,
Quoted 46 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+)create mode 100644
drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Quoted 8 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Since the mfd driver only instantiates platform devices there is only a runtime dependency between the drivers AFAICT so each driver can be merged through it own subsystem without problem / without the need for an immutable branch, or am I missing something ?
Yeah, it wouldn't do much harm other than containing the dead code.
I'm afraid of missing kconfig or such error splat spotted by build bot, if we merge each commit individually. But maybe I have just too strong trauma of the build bot complaints :)
thanks,
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
In reply to Takashi IwaiQuoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>
Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 7 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
thanks,
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
[0] git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 67 lines · Lee Jones
Quoted 64 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 7 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
Quoted 8 lines
Quoted 4 lines
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
And I won't be surprised if 0-day build bot gets a new feature to inspect the kconfig files, spot a dead kconfig entry and warn maintainers at each commit, too :)
thanks,
Takashi
Rafael J. Wysocki
maintainerRe: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 78 lines · Takashi Iwai
Quoted 67 lines · Lee Jones
Quoted 64 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 7 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
Quoted 8 lines
Quoted 4 lines
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 8 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
And I won't be surprised if 0-day build bot gets a new feature to inspect the kconfig files, spot a dead kconfig entry and warn maintainers at each commit, too :)
So I would prefer the whole series to go in via one tree in one go, because it is a series for a reason. :-)
The patches do depend on each other logically even though there may not be hard build-time dependencies between them. It would be sort of good if the git history reflected that logical dependency.
Thanks,
Rafael
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 88 lines · Rafael J. Wysocki
Quoted 78 lines · Takashi Iwai
Quoted 67 lines · Lee Jones
Quoted 64 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 7 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
Quoted 8 lines
Quoted 4 lines
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 8 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
And I won't be surprised if 0-day build bot gets a new feature to inspect the kconfig files, spot a dead kconfig entry and warn maintainers at each commit, too :)
Quoted 6 lines
So I would prefer the whole series to go in via one tree in one go, because it is a series for a reason. :-)
The patches do depend on each other logically even though there may not be hard build-time dependencies between them. It would be sort of good if the git history reflected that logical dependency.
We *never* do this. Only build-time dependencies warrant the hassle of immutable branches and cross-subsystem committing. Patches should be taken in via their own subsystems unless it would cause merge or build issues if we did.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 90 lines · CEST Lee Jones
Quoted 88 lines · Rafael J. Wysocki
Quoted 86 lines · Takashi Iwai
Quoted 67 lines · Lee Jones
Quoted 64 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 7 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
Quoted 8 lines
Quoted 4 lines
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
And I won't be surprised if 0-day build bot gets a new feature to inspect the kconfig files, spot a dead kconfig entry and warn maintainers at each commit, too :)
Quoted 8 lines
Quoted 6 lines
So I would prefer the whole series to go in via one tree in one go, because it is a series for a reason. :-)
The patches do depend on each other logically even though there may not be hard build-time dependencies between them. It would be sort of good if the git history reflected that logical dependency.
We *never* do this.
Who's we? I sometimes do that, for one. I guess Takashi does that too. The tip people do that on a regular basis and I know of at least several other top-level maintainers doing it at least occasionally.
Quoted 4 lines
Only build-time dependencies warrant the hassle
of immutable branches and cross-subsystem committing. Patches should be taken in via their own subsystems unless it would cause merge or build issues if we did.
I beg to differ, but whatever.
In any case, I wouldn't mind it if you took the [3/3] from this series, because if there are any conflicts with it, they will be trivial to resolve. And I don't need an immutable branch with it or anything like that.
Thanks,
Rafael
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 98 lines · Rafael J. Wysocki
Quoted 97 lines · CEST Lee Jones
Quoted 94 lines · Rafael J. Wysocki
Quoted 78 lines · Takashi Iwai
Quoted 67 lines · Lee Jones
Quoted 64 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 7 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
Quoted 8 lines
Quoted 4 lines
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 8 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
And I won't be surprised if 0-day build bot gets a new feature to inspect the kconfig files, spot a dead kconfig entry and warn maintainers at each commit, too :)
So I would prefer the whole series to go in via one tree in one go, because it is a series for a reason. :-)
The patches do depend on each other logically even though there may not be hard build-time dependencies between them. It would be sort of good if the git history reflected that logical dependency.
Quoted 5 lines
Quoted 1 line
We *never* do this.
Who's we? I sometimes do that, for one. I guess Takashi does that too. The tip people do that on a regular basis and I know of at least several other top-level maintainers doing it at least occasionally.
The Maintainers who normally interact with MFD; Regulator, GPIO/Pinctrl, Power, IIO, PWM, ARM-SoC, LED, HWMON, Input MTD, PHY, Regmap, I2C, RTC, etc.
Quoted 10 lines
Quoted 4 lines
Only build-time dependencies warrant the hassle
of immutable branches and cross-subsystem committing. Patches should be taken in via their own subsystems unless it would cause merge or build issues if we did.I beg to differ, but whatever.
In any case, I wouldn't mind it if you took the [3/3] from this series, because if there are any conflicts with it, they will be trivial to resolve. And I don't need an immutable branch with it or anything like that.
No problem.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 5 lines
Quoted 3 lines
In any case, I wouldn't mind it if you took the [3/3] from this series, because if there are any conflicts with it, they will be trivial to resolve. And I don't need an immutable branch with it or anything like that.
No problem.
Although you don't appear to have reviewed it?
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 7 lines · CEST Lee Jones
Quoted 5 lines
Quoted 3 lines
In any case, I wouldn't mind it if you took the [3/3] from this series, because if there are any conflicts with it, they will be trivial to resolve. And I don't need an immutable branch with it or anything like that.
No problem.
Although you don't appear to have reviewed it?
I have reviewed it, although I haven't sent a tag.
Generally speaking, for drivers/acpi/pmic/ Reviewed-bys from Mika and Andy are sufficient (they likely are more familiar with the code in there than I am), but please feel free to add an ACK from me to it too. :-)
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 5 lines · Rafael J. Wysocki
Quoted 4 lines · CEST Lee Jones
Quoted 4 lines
Quoted 3 lines
In any case, I wouldn't mind it if you took the [3/3] from this series, because if there are any conflicts with it, they will be trivial to resolve. And I don't need an immutable branch with it or anything like that.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
No problem.
Although you don't appear to have reviewed it?
I have reviewed it, although I haven't sent a tag.
Generally speaking, for
drivers/acpi/pmic/Reviewed-bys from Mika and Andy are sufficient (they likely are more familiar with the code in there than I am),
I don't see them in MAINTAINERS. I thought it was Len and yourself.
Quoted 1 line
but please feel free to add an ACK from me to it too. :-)
Will do, thank you.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 9 lines · CEST Lee Jones
Quoted 7 lines · Rafael J. Wysocki
Quoted 6 lines · CEST Lee Jones
Quoted 5 lines
Quoted 3 lines
In any case, I wouldn't mind it if you took the [3/3] from this series, because if there are any conflicts with it, they will be trivial to resolve. And I don't need an immutable branch with it or anything like that.
No problem.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Although you don't appear to have reviewed it?
I have reviewed it, although I haven't sent a tag.
Generally speaking, for
drivers/acpi/pmic/Reviewed-bys from Mika and Andy are sufficient (they likely are more familiar with the code in there than I am),I don't see them in
MAINTAINERS. I thought it was Len and yourself.
I do need help with code review at least in some areas, though.
Some of this information is missing from MAINTAINERS, but I guess that can be addressed in this particular case.
Mika, Andy, would it be OK to add you as reviewers for drivers/acpi/pmic/ to MAINTAINERS?
Thanks,
Rafael
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 19 lines · Rafael J. Wysocki
Quoted 9 lines · CEST Lee Jones
Quoted 7 lines · Rafael J. Wysocki
Quoted 6 lines · CEST Lee Jones
Quoted 5 lines
Quoted 3 lines
In any case, I wouldn't mind it if you took the [3/3] from this series, because if there are any conflicts with it, they will be trivial to resolve. And I don't need an immutable branch with it or anything like that.
No problem.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Although you don't appear to have reviewed it?
I have reviewed it, although I haven't sent a tag.
Generally speaking, for
drivers/acpi/pmic/Reviewed-bys from Mika and Andy are sufficient (they likely are more familiar with the code in there than I am),I don't see them in
MAINTAINERS. I thought it was Len and yourself.
Quoted 7 lines
I do need help with code review at least in some areas, though.
Some of this information is missing from
MAINTAINERS, but I guess that can be addressed in this particular case.Mika, Andy, would it be OK to add you as reviewers for
drivers/acpi/pmic/toMAINTAINERS?
Sure, fine by me. Andy is on vacation currently so can't speak for him. I suppose he does not have anything against it, though :)
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 22 lines · CEST Mika Westerberg
Quoted 21 lines · Rafael J. Wysocki
Quoted 9 lines · CEST Lee Jones
Quoted 7 lines · Rafael J. Wysocki
Quoted 6 lines · CEST Lee Jones
Quoted 5 lines
Quoted 3 lines
In any case, I wouldn't mind it if you took the [3/3] from this series, because if there are any conflicts with it, they will be trivial to resolve. And I don't need an immutable branch with it or anything like that.
No problem.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Although you don't appear to have reviewed it?
I have reviewed it, although I haven't sent a tag.
Generally speaking, for
drivers/acpi/pmic/Reviewed-bys from Mika and Andy are sufficient (they likely are more familiar with the code in there than I am),I don't see them in
MAINTAINERS. I thought it was Len and yourself.I do need help with code review at least in some areas, though.
Quoted 8 lines
Quoted 5 lines
Some of this information is missing from
MAINTAINERS, but I guess that can be addressed in this particular case.Mika, Andy, would it be OK to add you as reviewers for
drivers/acpi/pmic/toMAINTAINERS?Sure, fine by me. Andy is on vacation currently so can't speak for him. I suppose he does not have anything against it, though :)
OK, thanks!
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 26 lines · Rafael J. Wysocki
Quoted 25 lines · CEST Mika Westerberg
Quoted 24 lines · Rafael J. Wysocki
Quoted 9 lines · CEST Lee Jones
Quoted 7 lines · Rafael J. Wysocki
Quoted 6 lines · CEST Lee Jones
Quoted 5 lines
Quoted 3 lines
In any case, I wouldn't mind it if you took the [3/3] from this series, because if there are any conflicts with it, they will be trivial to resolve. And I don't need an immutable branch with it or anything like that.
No problem.
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Although you don't appear to have reviewed it?
I have reviewed it, although I haven't sent a tag.
Generally speaking, for
drivers/acpi/pmic/Reviewed-bys from Mika and Andy are sufficient (they likely are more familiar with the code in there than I am),I don't see them in
MAINTAINERS. I thought it was Len and yourself.I do need help with code review at least in some areas, though.
Some of this information is missing from
MAINTAINERS, but I guess that can be addressed in this particular case.
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Mika, Andy, would it be OK to add you as reviewers for
drivers/acpi/pmic/toMAINTAINERS?Sure, fine by me. Andy is on vacation currently so can't speak for him. I suppose he does not have anything against it, though :)
OK, thanks!
+1
Thanks Rafael, that should make things easier in the future.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
In reply to Takashi IwaiQuoted 74 lines · Takashi Iwai
Quoted 72 lines · Lee Jones
Quoted 68 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 7 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
Quoted 8 lines
Quoted 3 lines
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands. No one is going to bisect the function of a feature until it is present. So long as there aren't any build-time dependencies then we're good,
Quoted 3 lines
And I won't be surprised if 0-day build bot gets a new feature to inspect the kconfig files, spot a dead kconfig entry and warn maintainers at each commit, too :)
0-days don't check for that and static analysers only check releases.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 81 lines · Lee Jones
Quoted 78 lines · Takashi Iwai
Quoted 75 lines · Lee Jones
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 7 lines
Quoted 4 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands.
Why only building?
When merging through several tress, commits for the same series are scattered completely although they are softly tied. This sucks when you perform git bisection, e.g. if you have an issue in the middle of the patch series. It still works, but it jumps unnecessarily too far away and back before reaching to the point, and kconfig appears / disappears inconsistently (the dependent kconfig gone in the middle). And, this is about the release kernel (4.15 or whatever).
Basically, my complaint here comes with my user's hat on. It *is* indeed worse than a straight application of patches in some levels. It's unavoidable if you do in that way.
OTOH, with maintainer's hat on, I do agree with that it'll make things often easier. Judging with these merits and demerits, I find it's acceptable, too.
Quoted 10 lines
No one is going to bisect the function of a feature until it is present. So long as there aren't any build-time dependencies then we're good,
Quoted 3 lines
And I won't be surprised if 0-day build bot gets a new feature to inspect the kconfig files, spot a dead kconfig entry and warn maintainers at each commit, too :)
0-days don't check for that and static analysers only check releases.
How can you guarantee that 0-days will not do that in future? I learned that I shouldn't be too naive about 0-day bot facility :)
In anyway, as I already mentioned, I'm fine with taking changes individually in each tree. No need for further bike-shedding.
thanks,
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 93 lines · Takashi Iwai
Quoted 81 lines · Lee Jones
Quoted 78 lines · Takashi Iwai
Quoted 75 lines · Lee Jones
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 7 lines
Quoted 4 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands.
Why only building?
Quoted 7 lines
When merging through several tress, commits for the same series are scattered completely although they are softly tied. This sucks when you perform git bisection, e.g. if you have an issue in the middle of the patch series. It still works, but it jumps unnecessarily too far away and back before reaching to the point, and kconfig appears / disappears inconsistently (the dependent kconfig gone in the middle). And, this is about the release kernel (4.15 or whatever).
Think about how bisection works. You state a good commit and a bad one. The good commit will be when the feature last worked, which will not be until the feature has fully landed. Bisect will not check any point prior to this date.
If there aren't any build deps, each Maintainer will apply patches into their own tree. These will be merged together in -next where they can be tested, both manually and by the 0-days. Once the merge window is opened all patches will be sucked into -rc1. If the feature works here, then it you could use -rc1 as your 'good' commit. If it doesn't, then this could indicate a merge error or a missing piece of the set, either way bisect wouldn't help you.
Quoted 3 lines
Basically, my complaint here comes with my user's hat on. It *is* indeed worse than a straight application of patches in some levels. It's unavoidable if you do in that way.
I disagree. I user wouldn't set the 'good' commit at any point prior to the feature working at least once. This will not happen if any parts were missing. The order in which the pieces are applied is irrelevant if there aren't any build deps between them. If you bisect between them, then the driver simply will not build. No problem.
Quoted 13 lines
OTOH, with maintainer's hat on, I do agree with that it'll make things often easier. Judging with these merits and demerits, I find it's acceptable, too.
Quoted 9 lines
No one is going to bisect the function of a feature until it is present. So long as there aren't any build-time dependencies then we're good,
Quoted 3 lines
And I won't be surprised if 0-day build bot gets a new feature to inspect the kconfig files, spot a dead kconfig entry and warn maintainers at each commit, too :)
Quoted 4 lines
Quoted 1 line
0-days don't check for that and static analysers only check releases.
How can you guarantee that 0-days will not do that in future? I learned that I shouldn't be too naive about 0-day bot facility :)
Due to the way we operate, testing for dead code in between releases would be foolish, since there would be too many false positives. Static analysis is best for this and they are normally run on releases.
Quoted 2 lines
In anyway, as I already mentioned, I'm fine with taking changes individually in each tree. No need for further bike-shedding.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 109 lines · Lee Jones
Quoted 93 lines · Takashi Iwai
Quoted 81 lines · Lee Jones
Quoted 78 lines · Takashi Iwai
Quoted 75 lines · Lee Jones
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 7 lines
Quoted 4 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands.
Why only building?
Quoted 7 lines
When merging through several tress, commits for the same series are scattered completely although they are softly tied. This sucks when you perform git bisection, e.g. if you have an issue in the middle of the patch series. It still works, but it jumps unnecessarily too far away and back before reaching to the point, and kconfig appears / disappears inconsistently (the dependent kconfig gone in the middle). And, this is about the release kernel (4.15 or whatever).
Think about how bisection works. You state a good commit and a bad one. The good commit will be when the feature last worked, which will not be until the feature has fully landed. Bisect will not check any point prior to this date.
Quoted 7 lines
If there aren't any build deps, each Maintainer will apply patches into their own tree. These will be merged together in -next where they can be tested, both manually and by the 0-days. Once the merge window is opened all patches will be sucked into -rc1. If the feature works here, then it you could use -rc1 as your 'good' commit. If it doesn't, then this could indicate a merge error or a missing piece of the set, either way bisect wouldn't help you.
Not really.
First of all, most of user start testing from the release kernel, so you can't trust that RC covered all test cases. (Who can blame users who didn't use / test RC?)
Second, you ignore the fact that the development continues after merging *this* patchset. What if a breakage is introduced after this patch? (See below)
They often need a full bisection between the previous release and the current release.
Quoted 6 lines
Quoted 3 lines
Basically, my complaint here comes with my user's hat on. It *is* indeed worse than a straight application of patches in some levels. It's unavoidable if you do in that way.
I disagree. I user wouldn't set the 'good' commit at any point prior to the feature working at least once.
Again no, not all users do test at the same time. A device driver may support multiple devices / platforms, and it might be that the bug manifests itself only on a certain system that no one has tested beforehand; it's a typical case we often see after the releases.
Quoted 4 lines
This will not happen if any
parts were missing. The order in which the pieces are applied is irrelevant if there aren't any build deps between them. If you bisect between them, then the driver simply will not build. No problem.
The bisection is required not only for build errors but also for functional tests. Sometimes it's the only way to spot the culprit of a functional regression.
Imagine the following case: both MFD and platform drivers are merged into individual trees separately. And, some change in platform driver after this patch series broke some functionality mistakenly.
Now, suppose that the platform tree is merged to Linus tree before MFD tree, that is, the situation is like:
MFD (commit A1) -- ... -------------------------+
platform (commit B1) -> broken change (B2) -+ |
v v
--M1--M2--> Linus RC1git-bisection can inspect M2, which shows already broken. Then it inspects M1, but you can't evaluate it because the target platform driver can't be built without A1. At this point, you're stuck. But in this case, B1 is correct and B2 is the culprit. How can you spot it out?
OTOH, if the merge history honors the functional dependency, you can bisect properly.
thanks,
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 165 lines · CEST Takashi Iwai
Quoted 109 lines · Lee Jones
Quoted 93 lines · Takashi Iwai
Quoted 81 lines · Lee Jones
Quoted 78 lines · Takashi Iwai
Quoted 75 lines · Lee Jones
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 7 lines
Quoted 4 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands.
Why only building?
Quoted 7 lines
When merging through several tress, commits for the same series are scattered completely although they are softly tied. This sucks when you perform git bisection, e.g. if you have an issue in the middle of the patch series. It still works, but it jumps unnecessarily too far away and back before reaching to the point, and kconfig appears / disappears inconsistently (the dependent kconfig gone in the middle). And, this is about the release kernel (4.15 or whatever).
Think about how bisection works. You state a good commit and a bad one. The good commit will be when the feature last worked, which will not be until the feature has fully landed. Bisect will not check any point prior to this date.
Quoted 7 lines
If there aren't any build deps, each Maintainer will apply patches into their own tree. These will be merged together in -next where they can be tested, both manually and by the 0-days. Once the merge window is opened all patches will be sucked into -rc1. If the feature works here, then it you could use -rc1 as your 'good' commit. If it doesn't, then this could indicate a merge error or a missing piece of the set, either way bisect wouldn't help you.
Not really.
First of all, most of user start testing from the release kernel, so you can't trust that RC covered all test cases. (Who can blame users who didn't use / test RC?)
Second, you ignore the fact that the development continues after merging *this* patchset. What if a breakage is introduced after this patch? (See below)
They often need a full bisection between the previous release and the current release.
Quoted 6 lines
Quoted 3 lines
Basically, my complaint here comes with my user's hat on. It *is* indeed worse than a straight application of patches in some levels. It's unavoidable if you do in that way.
I disagree. I user wouldn't set the 'good' commit at any point prior to the feature working at least once.
Again no, not all users do test at the same time. A device driver may support multiple devices / platforms, and it might be that the bug manifests itself only on a certain system that no one has tested beforehand; it's a typical case we often see after the releases.
Quoted 4 lines
This will not happen if any
parts were missing. The order in which the pieces are applied is irrelevant if there aren't any build deps between them. If you bisect between them, then the driver simply will not build. No problem.The bisection is required not only for build errors but also for functional tests. Sometimes it's the only way to spot the culprit of a functional regression.
Imagine the following case: both MFD and platform drivers are merged into individual trees separately. And, some change in platform driver after this patch series broke some functionality mistakenly.
Now, suppose that the platform tree is merged to Linus tree before MFD tree, that is, the situation is like:
MFD (commit A1) -- ... -------------------------+
platform (commit B1) -> broken change (B2) -+ |v v --M1--M2--> Linus RC1
Quoted 8 lines
git-bisection can inspect M2, which shows already broken. Then it inspects M1, but you can't evaluate it because the target platform driver can't be built without A1. At this point, you're stuck. But in this case, B1 is correct and B2 is the culprit. How can you spot it out?
OTOH, if the merge history honors the functional dependency, you can bisect properly.
Exactly and not only that.
If the git history reflects the logical dependencies between patches, you should be able to figure out the reason why the code was changed this way (sometimes you can't anyway if commit logs suck, for example, but this is a different problem) which quite often is essential for debugging, backporting and similar.
Thanks,
Rafael
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 175 lines · Rafael J. Wysocki
Quoted 165 lines · CEST Takashi Iwai
Quoted 109 lines · Lee Jones
Quoted 93 lines · Takashi Iwai
Quoted 81 lines · Lee Jones
Quoted 78 lines · Takashi Iwai
Quoted 75 lines · Lee Jones
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 7 lines
Quoted 4 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands.
Why only building?
Quoted 7 lines
When merging through several tress, commits for the same series are scattered completely although they are softly tied. This sucks when you perform git bisection, e.g. if you have an issue in the middle of the patch series. It still works, but it jumps unnecessarily too far away and back before reaching to the point, and kconfig appears / disappears inconsistently (the dependent kconfig gone in the middle). And, this is about the release kernel (4.15 or whatever).
Think about how bisection works. You state a good commit and a bad one. The good commit will be when the feature last worked, which will not be until the feature has fully landed. Bisect will not check any point prior to this date.
Quoted 7 lines
If there aren't any build deps, each Maintainer will apply patches into their own tree. These will be merged together in -next where they can be tested, both manually and by the 0-days. Once the merge window is opened all patches will be sucked into -rc1. If the feature works here, then it you could use -rc1 as your 'good' commit. If it doesn't, then this could indicate a merge error or a missing piece of the set, either way bisect wouldn't help you.
Not really.
First of all, most of user start testing from the release kernel, so you can't trust that RC covered all test cases. (Who can blame users who didn't use / test RC?)
Second, you ignore the fact that the development continues after merging *this* patchset. What if a breakage is introduced after this patch? (See below)
They often need a full bisection between the previous release and the current release.
Quoted 6 lines
Quoted 3 lines
Basically, my complaint here comes with my user's hat on. It *is* indeed worse than a straight application of patches in some levels. It's unavoidable if you do in that way.
I disagree. I user wouldn't set the 'good' commit at any point prior to the feature working at least once.
Again no, not all users do test at the same time. A device driver may support multiple devices / platforms, and it might be that the bug manifests itself only on a certain system that no one has tested beforehand; it's a typical case we often see after the releases.
Quoted 4 lines
This will not happen if any
parts were missing. The order in which the pieces are applied is irrelevant if there aren't any build deps between them. If you bisect between them, then the driver simply will not build. No problem.The bisection is required not only for build errors but also for functional tests. Sometimes it's the only way to spot the culprit of a functional regression.
Imagine the following case: both MFD and platform drivers are merged into individual trees separately. And, some change in platform driver after this patch series broke some functionality mistakenly.
Now, suppose that the platform tree is merged to Linus tree before MFD tree, that is, the situation is like:
MFD (commit A1) -- ... -------------------------+
platform (commit B1) -> broken change (B2) -+ |v v --M1--M2--> Linus RC1Quoted 8 lines
git-bisection can inspect M2, which shows already broken. Then it inspects M1, but you can't evaluate it because the target platform driver can't be built without A1. At this point, you're stuck. But in this case, B1 is correct and B2 is the culprit. How can you spot it out?
OTOH, if the merge history honors the functional dependency, you can bisect properly.
Quoted 7 lines
Exactly and not only that.
If the git history reflects the logical dependencies between patches, you should be able to figure out the reason why the code was changed this way (sometimes you can't anyway if commit logs suck, for example, but this is a different problem) which quite often is essential for debugging, backporting and similar.
The example you reference is a really small corner case (I don't recall an occurrence) and is very easy to debug without bisect. The pros of taking patches in via their pre-defined subsystem trees far outweighs the slight possibility and the debugging complexity of this example.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
In reply to Takashi IwaiQuoted 119 lines · Takashi Iwai
Quoted 109 lines · Lee Jones
Quoted 93 lines · Takashi Iwai
Quoted 81 lines · Lee Jones
Quoted 78 lines · Takashi Iwai
Quoted 75 lines · Lee Jones
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 7 lines
Quoted 4 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands.
Why only building?
Quoted 7 lines
When merging through several tress, commits for the same series are scattered completely although they are softly tied. This sucks when you perform git bisection, e.g. if you have an issue in the middle of the patch series. It still works, but it jumps unnecessarily too far away and back before reaching to the point, and kconfig appears / disappears inconsistently (the dependent kconfig gone in the middle). And, this is about the release kernel (4.15 or whatever).
Think about how bisection works. You state a good commit and a bad one. The good commit will be when the feature last worked, which will not be until the feature has fully landed. Bisect will not check any point prior to this date.
Quoted 7 lines
If there aren't any build deps, each Maintainer will apply patches into their own tree. These will be merged together in -next where they can be tested, both manually and by the 0-days. Once the merge window is opened all patches will be sucked into -rc1. If the feature works here, then it you could use -rc1 as your 'good' commit. If it doesn't, then this could indicate a merge error or a missing piece of the set, either way bisect wouldn't help you.
Quoted 5 lines
Not really.
First of all, most of user start testing from the release kernel, so you can't trust that RC covered all test cases. (Who can blame users who didn't use / test RC?)
That's fine. We are not talking about spreading the merge of a patch-set over different releases, or even release candidates. All non-bugfix patches should be in by -rc1.
Quoted 6 lines
Second, you ignore the fact that the development continues after merging *this* patchset. What if a breakage is introduced after this patch? (See below)
They often need a full bisection between the previous release and the current release.
You cannot bisect a specific function back before it was merged. It's impossible.
P1 ---> P4 ---> P3 ---> P2
^
Bisect only starts working here. Prior to this point the feature doesn't build at all. If it builds, but breaks, then that is a build dependency and is a different use-case to what we are discussing here.
Quoted 11 lines
Quoted 6 lines
Quoted 3 lines
Basically, my complaint here comes with my user's hat on. It *is* indeed worse than a straight application of patches in some levels. It's unavoidable if you do in that way.
I disagree. I user wouldn't set the 'good' commit at any point prior to the feature working at least once.
Again no, not all users do test at the same time. A device driver may support multiple devices / platforms, and it might be that the bug manifests itself only on a certain system that no one has tested beforehand; it's a typical case we often see after the releases.
If it is possible for a patch-set to break functionality, then again, this is a dependency and needs to be handled differently.
That is not the case with your set.
Quoted 21 lines
Quoted 4 lines
This will not happen if any
parts were missing. The order in which the pieces are applied is irrelevant if there aren't any build deps between them. If you bisect between them, then the driver simply will not build. No problem.The bisection is required not only for build errors but also for functional tests. Sometimes it's the only way to spot the culprit of a functional regression.
Imagine the following case: both MFD and platform drivers are merged into individual trees separately. And, some change in platform driver after this patch series broke some functionality mistakenly.
Now, suppose that the platform tree is merged to Linus tree before MFD tree, that is, the situation is like:
MFD (commit A1) -- ... -------------------------+
platform (commit B1) -> broken change (B2) -+ |v v --M1--M2--> Linus RC1
Quoted 8 lines
git-bisection can inspect M2, which shows already broken. Then it inspects M1, but you can't evaluate it because the target platform driver can't be built without A1. At this point, you're stuck. But in this case, B1 is correct and B2 is the culprit. How can you spot it out?
OTOH, if the merge history honors the functional dependency, you can bisect properly.
You wouldn't use bisect for that use-case. We only use bisect for features that have a working commit in Mainline. The use-case you mention would be pretty trivial to debug without bisect.
When we tout "history must be bisectable", we mean that it must remain possible to bisect existing functionality. Bisecting functionality which is yet to fully land upstream is foolish.
New drivers almost never (if ever) go in as a fully working piece. The registration parts (DT, Platform, etc) go in via one (or several) tree(s) and the driver parts are normally split up into subsystems and go in via their own repos. If there are *build*, *API* or *merge* time dependencies, then we can use immutable branches and merge via a single tree. Failing that, we split them.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 139 lines · Lee Jones
Quoted 119 lines · Takashi Iwai
Quoted 109 lines · Lee Jones
Quoted 93 lines · Takashi Iwai
Quoted 81 lines · Lee Jones
Quoted 78 lines · Takashi Iwai
Quoted 75 lines · Lee Jones
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 7 lines
Quoted 4 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands.
Why only building?
Quoted 7 lines
When merging through several tress, commits for the same series are scattered completely although they are softly tied. This sucks when you perform git bisection, e.g. if you have an issue in the middle of the patch series. It still works, but it jumps unnecessarily too far away and back before reaching to the point, and kconfig appears / disappears inconsistently (the dependent kconfig gone in the middle). And, this is about the release kernel (4.15 or whatever).
Think about how bisection works. You state a good commit and a bad one. The good commit will be when the feature last worked, which will not be until the feature has fully landed. Bisect will not check any point prior to this date.
Quoted 7 lines
If there aren't any build deps, each Maintainer will apply patches into their own tree. These will be merged together in -next where they can be tested, both manually and by the 0-days. Once the merge window is opened all patches will be sucked into -rc1. If the feature works here, then it you could use -rc1 as your 'good' commit. If it doesn't, then this could indicate a merge error or a missing piece of the set, either way bisect wouldn't help you.
Quoted 5 lines
Not really.
First of all, most of user start testing from the release kernel, so you can't trust that RC covered all test cases. (Who can blame users who didn't use / test RC?)
That's fine. We are not talking about spreading the merge of a patch-set over different releases, or even release candidates. All non-bugfix patches should be in by -rc1.
Quoted 6 lines
Second, you ignore the fact that the development continues after merging *this* patchset. What if a breakage is introduced after this patch? (See below)
They often need a full bisection between the previous release and the current release.
Quoted 8 lines
You cannot bisect a specific function back before it was merged. It's impossible.
P1 ---> P4 ---> P3 ---> P2
^Bisect only starts working here. Prior to this point the feature doesn't build at all. If it builds, but breaks, then that is a build dependency and is a different use-case to what we are discussing here.
OK, let me rephrase. With the scenario above, user *cannot* perform bisect. Meanwhile, with the straight merge, you can bisect a breakage. That's a significant difference.
I.e. in the case where both commits A1, B1 and B2 are merged through tree A an B. B2 is the breakage. With separate tree merges, you cannot bisect, while the straight merge allows you to bisect B2.
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 150 lines · CEST Takashi Iwai
Quoted 139 lines · Lee Jones
Quoted 119 lines · Takashi Iwai
Quoted 109 lines · Lee Jones
Quoted 93 lines · Takashi Iwai
Quoted 81 lines · Lee Jones
Quoted 78 lines · Takashi Iwai
Quoted 75 lines · Lee Jones
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
Quoted 30 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with
ACPI INT33F5 that is found on some Intel Cherry Trail devices.
The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently,
only ACPI PMIC opregion and the external power-button are used.Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by: Mika Westerberg <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL text
v3->v4:
* no change for this patch
v2->v3:
* Rename dc_ti with chtdc_ti in all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mika
v1->v2:
* Minor cleanups as suggested by Andydrivers/mfd/Kconfig | 13 +++
drivers/mfd/Makefile | 1 +
drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++
3 files changed, 198 insertions(+)
create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 7 lines
Quoted 4 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands.
Why only building?
Quoted 7 lines
When merging through several tress, commits for the same series are scattered completely although they are softly tied. This sucks when you perform git bisection, e.g. if you have an issue in the middle of the patch series. It still works, but it jumps unnecessarily too far away and back before reaching to the point, and kconfig appears / disappears inconsistently (the dependent kconfig gone in the middle). And, this is about the release kernel (4.15 or whatever).
Think about how bisection works. You state a good commit and a bad one. The good commit will be when the feature last worked, which will not be until the feature has fully landed. Bisect will not check any point prior to this date.
Quoted 7 lines
If there aren't any build deps, each Maintainer will apply patches into their own tree. These will be merged together in -next where they can be tested, both manually and by the 0-days. Once the merge window is opened all patches will be sucked into -rc1. If the feature works here, then it you could use -rc1 as your 'good' commit. If it doesn't, then this could indicate a merge error or a missing piece of the set, either way bisect wouldn't help you.
Quoted 5 lines
Not really.
First of all, most of user start testing from the release kernel, so you can't trust that RC covered all test cases. (Who can blame users who didn't use / test RC?)
That's fine. We are not talking about spreading the merge of a patch-set over different releases, or even release candidates. All non-bugfix patches should be in by -rc1.
Quoted 6 lines
Second, you ignore the fact that the development continues after merging *this* patchset. What if a breakage is introduced after this patch? (See below)
They often need a full bisection between the previous release and the current release.
Quoted 8 lines
You cannot bisect a specific function back before it was merged. It's impossible.
P1 ---> P4 ---> P3 ---> P2
^Bisect only starts working here. Prior to this point the feature doesn't build at all. If it builds, but breaks, then that is a build dependency and is a different use-case to what we are discussing here.
Quoted 7 lines
OK, let me rephrase. With the scenario above, user *cannot* perform bisect. Meanwhile, with the straight merge, you can bisect a breakage. That's a significant difference.
I.e. in the case where both commits A1, B1 and B2 are merged through tree A an B. B2 is the breakage. With separate tree merges, you cannot bisect, while the straight merge allows you to bisect B2.
Right, and that's really fundamental, because then the user can tell you "look, this commit doesn't work for me" instead of just "this kernel doesn't work for me" and now you need to spend *your* time on trying to figure out which commit may be at fault.
So speaking of benefits, I really prefer to avoid spending my time on such things. :-)
Thanks,
Rafael
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 159 lines · Rafael J. Wysocki
Quoted 150 lines · CEST Takashi Iwai
Quoted 139 lines · Lee Jones
Quoted 119 lines · Takashi Iwai
Quoted 109 lines · Lee Jones
Quoted 93 lines · Takashi Iwai
Quoted 81 lines · Lee Jones
Quoted 78 lines · Takashi Iwai
Quoted 75 lines · Lee Jones
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 36 lines · Lee Jones
On Mon, 04 Sep 2017, Takashi Iwai wrote:
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with
ACPI INT33F5 that is found on some Intel Cherry Trail devices.
The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently,
only ACPI PMIC opregion and the external power-button are used.Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by: Mika Westerberg <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL text
v3->v4:
* no change for this patch
v2->v3:
* Rename dc_ti with chtdc_ti in all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mika
v1->v2:
* Minor cleanups as suggested by Andydrivers/mfd/Kconfig | 13 +++
drivers/mfd/Makefile | 1 +
drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++
3 files changed, 198 insertions(+)
create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by: Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or create an immutable branch (again). But how to handle it, when to do it, It's all up to you guys.
Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 7 lines
Quoted 4 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands.
Why only building?
Quoted 7 lines
When merging through several tress, commits for the same series are scattered completely although they are softly tied. This sucks when you perform git bisection, e.g. if you have an issue in the middle of the patch series. It still works, but it jumps unnecessarily too far away and back before reaching to the point, and kconfig appears / disappears inconsistently (the dependent kconfig gone in the middle). And, this is about the release kernel (4.15 or whatever).
Think about how bisection works. You state a good commit and a bad one. The good commit will be when the feature last worked, which will not be until the feature has fully landed. Bisect will not check any point prior to this date.
Quoted 7 lines
If there aren't any build deps, each Maintainer will apply patches into their own tree. These will be merged together in -next where they can be tested, both manually and by the 0-days. Once the merge window is opened all patches will be sucked into -rc1. If the feature works here, then it you could use -rc1 as your 'good' commit. If it doesn't, then this could indicate a merge error or a missing piece of the set, either way bisect wouldn't help you.
Quoted 5 lines
Not really.
First of all, most of user start testing from the release kernel, so you can't trust that RC covered all test cases. (Who can blame users who didn't use / test RC?)
That's fine. We are not talking about spreading the merge of a patch-set over different releases, or even release candidates. All non-bugfix patches should be in by -rc1.
Quoted 6 lines
Second, you ignore the fact that the development continues after merging *this* patchset. What if a breakage is introduced after this patch? (See below)
They often need a full bisection between the previous release and the current release.
Quoted 8 lines
You cannot bisect a specific function back before it was merged. It's impossible.
P1 ---> P4 ---> P3 ---> P2
^Bisect only starts working here. Prior to this point the feature doesn't build at all. If it builds, but breaks, then that is a build dependency and is a different use-case to what we are discussing here.
Quoted 7 lines
OK, let me rephrase. With the scenario above, user *cannot* perform bisect. Meanwhile, with the straight merge, you can bisect a breakage. That's a significant difference.
I.e. in the case where both commits A1, B1 and B2 are merged through tree A an B. B2 is the breakage. With separate tree merges, you cannot bisect, while the straight merge allows you to bisect B2.
Quoted 7 lines
Right, and that's really fundamental, because then the user can tell you "look, this commit doesn't work for me" instead of just "this kernel doesn't work for me" and now you need to spend *your* time on trying to figure out which commit may be at fault.
So speaking of benefits, I really prefer to avoid spending my time on such things. :-)
The toss-up is between splitting the patch-set up and *maybe* spending time on debugging in the small chance of this occurring OR *definitely* spending time creating immutable branches and sending out pull-requests in the *hope* that all the other Maintainers involved are diligent enough to merge it in order to avoid conflicts during merge time.
In the circles I spend time in ("we"), the former is the favourite.
Until this point (and from this point going forward) we have taken the decision that the default is to take individual patches through their own trees. The only time this differs (unless other arrangements are made e.g. PATCH 3/3) is when there are; build, merge or API dependencies between them. The same stance is taken with driver/platform data and driver/other driver.
Let me put one of the issues into context:
For those reading along that do not know, Multi-Functional Devices are usually single pieces of silicon which provide many functions (e.g. LED Controllers, Voltage Regulation, Power Management, Sensors, Timers, GPIO/Pinctrl Controllers, Watchdog Timers, Real-Time Clocks, etc etc). The driver which sits in drivers/mfd acts as the parent device and registers its children which live in their own subsystems.
Almost all of the patch-sets I receive touch multiple subsystems. Moreover, when the recently described dependencies occur, it is usually I who creates the immutable branches and sends out the pull-requests.
If I had to go through the immutable branch/pull-request process for every patch-set I receive, there would be very little time to conduct duties pertaining to my proper job. Ergo, why we apply our own patches, unless there is a good reason (already described) to apply others too.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 170 lines · Lee Jones
Quoted 159 lines · Rafael J. Wysocki
Quoted 150 lines · CEST Takashi Iwai
Quoted 139 lines · Lee Jones
Quoted 119 lines · Takashi Iwai
Quoted 109 lines · Lee Jones
Quoted 93 lines · Takashi Iwai
Quoted 81 lines · Lee Jones
Quoted 78 lines · Takashi Iwai
Quoted 75 lines · Lee Jones
Quoted 60 lines · Takashi Iwai
Quoted 42 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
On Tue, 05 Sep 2017 09:24:51 +0200,
Lee Jones wrote:On Mon, 04 Sep 2017, Takashi Iwai wrote:
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with
ACPI INT33F5 that is found on some Intel Cherry Trail devices.
The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently,
only ACPI PMIC opregion and the external power-button are used.Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by: Mika Westerberg <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL text
v3->v4:
* no change for this patch
v2->v3:
* Rename dc_ti with chtdc_ti in all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mika
v1->v2:
* Minor cleanups as suggested by Andydrivers/mfd/Kconfig | 13 +++
drivers/mfd/Makefile | 1 +
drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++
3 files changed, 198 insertions(+)
create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by: Lee Jones <[email protected]>Quoted 8 lines
Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things,
so I'm OK to postpone for 4.15. OTOH, it's really a new
device-specific stuff, thus it can't break anything else, and it'd be
fairly safe to add it for 4.14 although it's at a bit late stage.Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Quoted 4 lines
Quoted 3 lines
IMO, it'd be great if you can carry all stuff through MFD tree; or
create an immutable branch (again). But how to handle it, when to do
it, It's all up to you guys.Quoted 8 lines
Quoted 3 lines
If there aren't any build dependencies between the patches, each of the patches should be applied through their own trees. What are the build-time dependencies? Are there any?
No, there is no strict build-time dependency. It's just that I don't see it nice to have a commit for a dead code, partly for testing purpose and partly for code consistency. But if this makes maintenance easier, I'm happy with that, too, of course.
There won't be any dead code. All of the subsystem trees are pulled into -next [0] where the build bots can operate on the patches as a whole.
Quoted 7 lines
Quoted 4 lines
But the merge order isn't guaranteed, i.e. at the commit of other tree for this new stuff, it's a dead code without merging the MFD stuff beforehand. e.g. Imagine to perform the git bisection. It's not about the whole tree, but about the each commit.
Only *building* is relevant for bisection until the whole feature lands.
Why only building?
Quoted 7 lines
When merging through several tress, commits for the same series are scattered completely although they are softly tied. This sucks when you perform git bisection, e.g. if you have an issue in the middle of the patch series. It still works, but it jumps unnecessarily too far away and back before reaching to the point, and kconfig appears / disappears inconsistently (the dependent kconfig gone in the middle). And, this is about the release kernel (4.15 or whatever).
Think about how bisection works. You state a good commit and a bad one. The good commit will be when the feature last worked, which will not be until the feature has fully landed. Bisect will not check any point prior to this date.
Quoted 7 lines
If there aren't any build deps, each Maintainer will apply patches into their own tree. These will be merged together in -next where they can be tested, both manually and by the 0-days. Once the merge window is opened all patches will be sucked into -rc1. If the feature works here, then it you could use -rc1 as your 'good' commit. If it doesn't, then this could indicate a merge error or a missing piece of the set, either way bisect wouldn't help you.
Quoted 5 lines
Not really.
First of all, most of user start testing from the release kernel, so you can't trust that RC covered all test cases. (Who can blame users who didn't use / test RC?)
That's fine. We are not talking about spreading the merge of a patch-set over different releases, or even release candidates. All non-bugfix patches should be in by -rc1.
Quoted 6 lines
Second, you ignore the fact that the development continues after merging *this* patchset. What if a breakage is introduced after this patch? (See below)
They often need a full bisection between the previous release and the current release.
Quoted 8 lines
You cannot bisect a specific function back before it was merged. It's impossible.
P1 ---> P4 ---> P3 ---> P2
^Bisect only starts working here. Prior to this point the feature doesn't build at all. If it builds, but breaks, then that is a build dependency and is a different use-case to what we are discussing here.
Quoted 7 lines
OK, let me rephrase. With the scenario above, user *cannot* perform bisect. Meanwhile, with the straight merge, you can bisect a breakage. That's a significant difference.
I.e. in the case where both commits A1, B1 and B2 are merged through tree A an B. B2 is the breakage. With separate tree merges, you cannot bisect, while the straight merge allows you to bisect B2.
Quoted 7 lines
Right, and that's really fundamental, because then the user can tell you "look, this commit doesn't work for me" instead of just "this kernel doesn't work for me" and now you need to spend *your* time on trying to figure out which commit may be at fault.
So speaking of benefits, I really prefer to avoid spending my time on such things. :-)
Quoted 8 lines
The toss-up is between splitting the patch-set up and *maybe* spending time on debugging in the small chance of this occurring OR *definitely* spending time creating immutable branches and sending out pull-requests in the *hope* that all the other Maintainers involved are diligent enough to merge it in order to avoid conflicts during merge time.
In the circles I spend time in ("we"), the former is the favourite.
This certainly depends on the complexity. For a small patchset, merging in a shot is often a safer option. That is, when all parties agree, you can just apply all patches to your branch -- that's all. Other parties can simply pull this from your branch if needed. Of course, the branch needs to be immutable for that, but usually it's no big problem. (Ideally speaking, all the published branches should be persistent in anyway.)
IIUC, it's the way Andy and Rafael suggested in the thread, and also seen in many other subsystems occasionally.
Quoted 21 lines
Until this point (and from this point going forward) we have taken the decision that the default is to take individual patches through their own trees. The only time this differs (unless other arrangements are made e.g. PATCH 3/3) is when there are; build, merge or API dependencies between them. The same stance is taken with driver/platform data and driver/other driver.
Let me put one of the issues into context:
For those reading along that do not know, Multi-Functional Devices are usually single pieces of silicon which provide many functions (e.g. LED Controllers, Voltage Regulation, Power Management, Sensors, Timers, GPIO/Pinctrl Controllers, Watchdog Timers, Real-Time Clocks, etc etc). The driver which sits in
drivers/mfdacts as the parent device and registers its children which live in their own subsystems.Almost all of the patch-sets I receive touch multiple subsystems. Moreover, when the recently described dependencies occur, it is usually I who creates the immutable branches and sends out the pull-requests.
Quoted 5 lines
If I had to go through the immutable branch/pull-request process for every patch-set I receive, there would be very little time to conduct duties pertaining to my proper job. Ergo, why we apply our own patches, unless there is a good reason (already described) to apply others too.
Hm, I never thought that creating an immutable branch were so difficult. Isn't it just a simple branch-off either from the certain upstream point (final release or rc) or from your stable branch?
thanks,
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 55 lines
Quoted 8 lines
Quoted 7 lines
Right, and that's really fundamental, because then the user can tell you "look, this commit doesn't work for me" instead of just "this kernel doesn't work for me" and now you need to spend *your* time on trying to figure out which commit may be at fault.
So speaking of benefits, I really prefer to avoid spending my time on such things. :-)
Quoted 8 lines
The toss-up is between splitting the patch-set up and *maybe* spending time on debugging in the small chance of this occurring OR *definitely* spending time creating immutable branches and sending out pull-requests in the *hope* that all the other Maintainers involved are diligent enough to merge it in order to avoid conflicts during merge time.
In the circles I spend time in ("we"), the former is the favourite.
This certainly depends on the complexity. For a small patchset, merging in a shot is often a safer option. That is, when all parties agree, you can just apply all patches to your branch -- that's all. Other parties can simply pull this from your branch if needed. Of course, the branch needs to be immutable for that, but usually it's no big problem. (Ideally speaking, all the published branches should be persistent in anyway.)
IIUC, it's the way Andy and Rafael suggested in the thread, and also seen in many other subsystems occasionally.
Quoted 21 lines
Until this point (and from this point going forward) we have taken the decision that the default is to take individual patches through their own trees. The only time this differs (unless other arrangements are made e.g. PATCH 3/3) is when there are; build, merge or API dependencies between them. The same stance is taken with driver/platform data and driver/other driver.
Let me put one of the issues into context:
For those reading along that do not know, Multi-Functional Devices are usually single pieces of silicon which provide many functions (e.g. LED Controllers, Voltage Regulation, Power Management, Sensors, Timers, GPIO/Pinctrl Controllers, Watchdog Timers, Real-Time Clocks, etc etc). The driver which sits in
drivers/mfdacts as the parent device and registers its children which live in their own subsystems.Almost all of the patch-sets I receive touch multiple subsystems. Moreover, when the recently described dependencies occur, it is usually I who creates the immutable branches and sends out the pull-requests.
Quoted 5 lines
If I had to go through the immutable branch/pull-request process for every patch-set I receive, there would be very little time to conduct duties pertaining to my proper job. Ergo, why we apply our own patches, unless there is a good reason (already described) to apply others too.
Quoted 3 lines
Hm, I never thought that creating an immutable branch were so difficult. Isn't it just a simple branch-off either from the certain upstream point (final release or rc) or from your stable branch?
You'd be surprised.
When applying patches, I normally apply them to a mail folder for further processing. This works great for patches that are applied to my main branch, but this does not work for immutable branches. These have to be applied on their own, thus need a 'special' or at least an empty folder.
- Checkout a new branch based on the same (or earlier, but I always use the same) commit as the main branch.
- Apply the patches in the normal way, only this time you usually need to interactively rebase and 'reword' them to add any missing Acks/Reviewed-bys.
- Tag and sign the branch with a suitable tag name and tag description.
- Push branch and tag
- Create pull-request text
- Send a formatted email with the pull-request text.
This process is quite a lot more involved than simply applying relevant patches to your main branch, and as I say, if this was required for all patch-sets I am sent or involved in, it would really eat into my day.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 60 lines · Lee Jones
Quoted 56 lines
Quoted 9 lines
Quoted 8 lines
Right, and that's really fundamental, because then the user can tell you "look, this commit doesn't work for me" instead of just "this kernel doesn't work for me" and now you need to spend *your* time on trying to figure out which commit may be at fault.
So speaking of benefits, I really prefer to avoid spending my time on such things. :-)
Quoted 8 lines
The toss-up is between splitting the patch-set up and *maybe* spending time on debugging in the small chance of this occurring OR *definitely* spending time creating immutable branches and sending out pull-requests in the *hope* that all the other Maintainers involved are diligent enough to merge it in order to avoid conflicts during merge time.
In the circles I spend time in ("we"), the former is the favourite.
This certainly depends on the complexity. For a small patchset, merging in a shot is often a safer option. That is, when all parties agree, you can just apply all patches to your branch -- that's all. Other parties can simply pull this from your branch if needed. Of course, the branch needs to be immutable for that, but usually it's no big problem. (Ideally speaking, all the published branches should be persistent in anyway.)
IIUC, it's the way Andy and Rafael suggested in the thread, and also seen in many other subsystems occasionally.
Quoted 21 lines
Until this point (and from this point going forward) we have taken the decision that the default is to take individual patches through their own trees. The only time this differs (unless other arrangements are made e.g. PATCH 3/3) is when there are; build, merge or API dependencies between them. The same stance is taken with driver/platform data and driver/other driver.
Let me put one of the issues into context:
For those reading along that do not know, Multi-Functional Devices are usually single pieces of silicon which provide many functions (e.g. LED Controllers, Voltage Regulation, Power Management, Sensors, Timers, GPIO/Pinctrl Controllers, Watchdog Timers, Real-Time Clocks, etc etc). The driver which sits in
drivers/mfdacts as the parent device and registers its children which live in their own subsystems.Almost all of the patch-sets I receive touch multiple subsystems. Moreover, when the recently described dependencies occur, it is usually I who creates the immutable branches and sends out the pull-requests.
Quoted 5 lines
If I had to go through the immutable branch/pull-request process for every patch-set I receive, there would be very little time to conduct duties pertaining to my proper job. Ergo, why we apply our own patches, unless there is a good reason (already described) to apply others too.
Quoted 3 lines
Hm, I never thought that creating an immutable branch were so difficult. Isn't it just a simple branch-off either from the certain upstream point (final release or rc) or from your stable branch?
Quoted 7 lines
You'd be surprised.
When applying patches, I normally apply them to a mail folder for further processing. This works great for patches that are applied to my main branch, but this does not work for immutable branches. These have to be applied on their own, thus need a 'special' or at least an empty folder.
Well, this isn't always requested -- at least, the simple case like this one doesn't need to treat so much specially. We just need a persistent branch that will be never rebased. It's the only requirement.
That said, it's even enough just to branch off from your normal MFD development branch, by a simple guarantee that you won't rebase *that* branch any longer.
So, it's also a kind of "immutable branch", but it's much easier than your regular workflow for the complex merge below.
Of course, a "cleaner" branch is preferred, but it doesn't matter much as long as all stuff there will be merged to upstream sooner or later.
thanks,
Takashi
Quoted 28 lines
- Checkout a new branch based on the same (or earlier, but I always use the same) commit as the main branch.
- Apply the patches in the normal way, only this time you usually need to interactively rebase and 'reword' them to add any missing Acks/Reviewed-bys.
- Tag and sign the branch with a suitable tag name and tag description.
- Push branch and tag
- Create pull-request text
- Send a formatted email with the pull-request text.
This process is quite a lot more involved than simply applying relevant patches to your main branch, and as I say, if this was required for all patch-sets I am sent or involved in, it would really eat into my day.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
In reply to Takashi IwaiQuoted 46 lines · Takashi Iwai
Quoted 44 lines · Lee Jones
Quoted 41 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Thanks!
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 54 lines · Lee Jones
Quoted 51 lines · Takashi Iwai
Quoted 49 lines · Lee Jones
Quoted 45 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
BTW, was patch 2/3 applied? I miss your notification mail.
thanks,
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 58 lines · Takashi Iwai
Quoted 56 lines · Lee Jones
Quoted 53 lines · Takashi Iwai
Quoted 50 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Since there are no deps between the patches, they should be applied into their own trees (as previously discussed). I only applied the ACPI patch because Rafael asked me nicely. Normally this should have gone in separately too.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 69 lines · CEST Lee Jones
Quoted 58 lines · Takashi Iwai
Quoted 56 lines · Lee Jones
Quoted 53 lines · Takashi Iwai
Quoted 50 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
Quoted 7 lines
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Actually, that's drivers/platform/x86/ so it falls under X86 PLATFORM DRIVERS and it has already been ACKed by Andy who is one of the maintainers of that.
Andy, Darren, can patch [2/3] from this series go in via the MFD tree?
Thanks,
Rafael
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 76 lines · Rafael J. Wysocki
Quoted 75 lines · CEST Lee Jones
Quoted 58 lines · Takashi Iwai
Quoted 56 lines · Lee Jones
Quoted 53 lines · Takashi Iwai
Quoted 50 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Quoted 7 lines
Quoted 1 line
Patch 2 needs to be applied into the Platform tree.
Actually, that's
drivers/platform/x86/so it falls under X86 PLATFORM DRIVERS and it has already been ACKed by Andy who is one of the maintainers of that.Andy, Darren, can patch [2/3] from this series go in via the MFD tree?
... without an immutable branch. Which also means all changes to this file due for v4.15 would have to come in via the MFD tree too.
This is sub optimal IMHO. I'd rather it was fed through the proper tree(s), so we can continue our normal flow for subsequent changes.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 81 lines · Lee Jones
Quoted 78 lines · Rafael J. Wysocki
Quoted 76 lines · CEST Lee Jones
Quoted 58 lines · Takashi Iwai
Quoted 56 lines · Lee Jones
Quoted 53 lines · Takashi Iwai
Quoted 50 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Quoted 7 lines
Quoted 5 lines
Actually, that's
drivers/platform/x86/so it falls under X86 PLATFORM DRIVERS and it has already been ACKed by Andy who is one of the maintainers of that.Andy, Darren, can patch [2/3] from this series go in via the MFD tree?
... without an immutable branch.
Why can't it be immutable? You just don't branch off the commit containing these three patches, and don't touch any longer on that, so that other trees can pull it in; it's all what we need.
Quoted 5 lines
Which also means all changes to this
file due for v4.15 would have to come in via the MFD tree too.This is sub optimal IMHO. I'd rather it was fed through the proper tree(s), so we can continue our normal flow for subsequent changes.
Other trees sometimes pull this kind of "immutable" branches, too. I see no big problem there.
thanks,
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 87 lines · Takashi Iwai
Quoted 85 lines · Lee Jones
Quoted 82 lines · Rafael J. Wysocki
Quoted 69 lines · CEST Lee Jones
Quoted 58 lines · Takashi Iwai
Quoted 56 lines · Lee Jones
Quoted 53 lines · Takashi Iwai
Quoted 50 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
Quoted 7 lines
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Actually, that's
drivers/platform/x86/so it falls under X86 PLATFORM DRIVERS and it has already been ACKed by Andy who is one of the maintainers of that.
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Andy, Darren, can patch [2/3] from this series go in via the MFD tree?
... without an immutable branch.
Why can't it be immutable? You just don't branch off the commit containing these three patches, and don't touch any longer on that, so that other trees can pull it in; it's all what we need.
Firstly, the MFD main branch is not immutable.
Secondly, you cannot simply pull a patch in from another tree. All of the patches before it and your local base will be pulled in too. This is why we create purposely created immutable branches which *only* contain the patches required by other repos.
Quoted 8 lines
Quoted 5 lines
Which also means all changes to this
file due for v4.15 would have to come in via the MFD tree too.This is sub optimal IMHO. I'd rather it was fed through the proper tree(s), so we can continue our normal flow for subsequent changes.
Other trees sometimes pull this kind of "immutable" branches, too. I see no big problem there.
There are no valid reason to create an IB for this case.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 92 lines · Lee Jones
Quoted 89 lines · Takashi Iwai
Quoted 87 lines · Lee Jones
Quoted 83 lines · Rafael J. Wysocki
Quoted 69 lines · CEST Lee Jones
Quoted 58 lines · Takashi Iwai
Quoted 56 lines · Lee Jones
Quoted 53 lines · Takashi Iwai
Quoted 50 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
Quoted 7 lines
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Actually, that's
drivers/platform/x86/so it falls under X86 PLATFORM DRIVERS and it has already been ACKed by Andy who is one of the maintainers of that.Andy, Darren, can patch [2/3] from this series go in via the MFD tree?
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
... without an immutable branch.
Why can't it be immutable? You just don't branch off the commit containing these three patches, and don't touch any longer on that, so that other trees can pull it in; it's all what we need.
Firstly, the MFD main branch is not immutable.
That's bad in general :)
Quoted 1 line
Secondly, you cannot simply pull a patch in from another tree.
Many trees do it sometimes as long as the branch is guaranteed to be persistent / immutable, prepared for the next kernel.
Quoted 4 lines
All of
the patches before it and your local base will be pulled in too. This is why we create purposely created immutable branches which *only* contain the patches required by other repos.
Yes, ideally we should have a clean base for such a shared branch.
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines
Which also means all changes to this
file due for v4.15 would have to come in via the MFD tree too.This is sub optimal IMHO. I'd rather it was fed through the proper tree(s), so we can continue our normal flow for subsequent changes.
Other trees sometimes pull this kind of "immutable" branches, too. I see no big problem there.
There are no valid reason to create an IB for this case.
I don't understand why makes it so difficult. Looking at the procedure you mentioned in this thread:
==
1. Checkout a new branch based on the same (or earlier, but I always use the same) commit as the main branch.
2. Apply the patches in the normal way, only this time you usually need to interactively rebase and 'reword' them to add any missing Acks/Reviewed-bys.
3. Tag and sign the branch with a suitable tag name and tag description.
4. Push branch and tag
5. Create pull-request text
6. Send a formatted email with the pull-request text. ==
1 is easy, you can take 4.14-rc1 once when released. This kind of
thing is done by many people regularly for opening a topic development branch.
2 is the very standard procedure. You'd need to add tags in anyway
even for normal branches.
3, the signed tagging can be optional, only when requested.
Of course, it's safer to have one, but not mandatory. Branch naming? It's not more difficult than thinking of the next android version code name :)
4, normal procedure.
5 and 6 are relaxed in this case, just a one-line notification mail to
this thread should suffice.
... so I really can't see any specially time-consuming or exhausting step in the above. Usually most time-consuming stuff is rather the code review and the build test. But this isn't different from the normal case.
Or am I missing anything?
thanks,
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 166 lines · Takashi Iwai
Quoted 92 lines · Lee Jones
Quoted 89 lines · Takashi Iwai
Quoted 87 lines · Lee Jones
Quoted 83 lines · Rafael J. Wysocki
Quoted 69 lines · CEST Lee Jones
Quoted 58 lines · Takashi Iwai
Quoted 56 lines · Lee Jones
Quoted 53 lines · Takashi Iwai
Quoted 50 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with
ACPI INT33F5 that is found on some Intel Cherry Trail devices.
The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently,
only ACPI PMIC opregion and the external power-button are used.Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by: Mika Westerberg <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL text
v3->v4:
* no change for this patch
v2->v3:
* Rename dc_ti with chtdc_ti in all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mika
v1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++
drivers/mfd/Makefile | 1 +
drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++
3 files changed, 198 insertions(+)
create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
Quoted 7 lines
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Actually, that's
drivers/platform/x86/so it falls under X86 PLATFORM DRIVERS and it has already been ACKed by Andy who is one of the maintainers of that.Andy, Darren, can patch [2/3] from this series go in via the MFD tree?
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
... without an immutable branch.
Why can't it be immutable? You just don't branch off the commit containing these three patches, and don't touch any longer on that, so that other trees can pull it in; it's all what we need.
Firstly, the MFD main branch is not immutable.
That's bad in general :)
Quoted 1 line
Secondly, you cannot simply pull a patch in from another tree.
Many trees do it sometimes as long as the branch is guaranteed to be persistent / immutable, prepared for the next kernel.
Quoted 4 lines
All of
the patches before it and your local base will be pulled in too. This is why we create purposely created immutable branches which *only* contain the patches required by other repos.Yes, ideally we should have a clean base for such a shared branch.
Quoted 10 lines
Quoted 8 lines
Quoted 5 lines
Which also means all changes to this
file due for v4.15 would have to come in via the MFD tree too.This is sub optimal IMHO. I'd rather it was fed through the proper tree(s), so we can continue our normal flow for subsequent changes.
Other trees sometimes pull this kind of "immutable" branches, too. I see no big problem there.
There are no valid reason to create an IB for this case.
I don't understand why makes it so difficult. Looking at the procedure you mentioned in this thread:
==
1. Checkout a new branch based on the same (or earlier, but I always use the same) commit as the main branch.2. Apply the patches in the normal way, only this time you usually need to interactively rebase and 'reword' them to add any missing Acks/Reviewed-bys.
3. Tag and sign the branch with a suitable tag name and tag description.
4. Push branch and tag
5. Create pull-request text
6. Send a formatted email with the pull-request text. ==
1 is easy, you can take 4.14-rc1 once when released. This kind of
thing is done by many people regularly for opening a topic development branch.2 is the very standard procedure. You'd need to add tags in anyway
even for normal branches.3, the signed tagging can be optional, only when requested.
Of course, it's safer to have one, but not mandatory. Branch naming? It's not more difficult than thinking of the next android version code name :)4, normal procedure.
5 and 6 are relaxed in this case, just a one-line notification mail to
this thread should suffice.
Quoted 6 lines
... so I really can't see any specially time-consuming or exhausting step in the above. Usually most time-consuming stuff is rather the code review and the build test. But this isn't different from the normal case.
Or am I missing anything?
Yes, clearly. ;)
Okay, I think we've spent enough time discussing this now. All of the information you need is contained in my previous emails. You now know all of the reasons for why we don't create immutable branches for every patch-set that comes in -- just ones which real dependencies.
It's time to agree to disagree and get on with some real work. :)
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
In reply to Lee JonesQuoted 74 lines · Lee Jones
Quoted 58 lines · Takashi Iwai
Quoted 56 lines · Lee Jones
Quoted 53 lines · Takashi Iwai
Quoted 50 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 8 lines
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Since there are no deps between the patches, they should be applied into their own trees (as previously discussed). I only applied the ACPI patch because Rafael asked me nicely. Normally this should have gone in separately too.
Andy already expressed his preference about the patch going through MFD tree in the v5 thread. Below is the excerpt.
Takashi
Quoted 32 lines · Andy Shevchenko
Quoted 14 lines · Takashi Iwai
Quoted 11 lines · Andy Shevchenko
Quoted 7 lines · Takashi Iwai
This provides a new input driver for supporting the power button on Dollar Cove TI PMIC, found on Cherrytrail-based devices. The patch is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsBugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Signed-off-by Takashi Iwai <[email protected]>Are you going to submit it via MFD?
Quoted 8 lines
I really don't mind who takes what. The driver codes are small, so it should be OK to go through a single tree, presumably MFD, if all people agree.
OTOH, if Lee can prepare an immutable branch, other two can go via other trees, too.
What do you guys think better?
As a co-maintainer of PDx86 I prefer to go with MFD or whatever first patch is related to.
Signature · 2 lines
With Best Regards, Andy Shevchenko
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 80 lines · Takashi Iwai
Quoted 78 lines · Lee Jones
Quoted 58 lines · Takashi Iwai
Quoted 56 lines · Lee Jones
Quoted 53 lines · Takashi Iwai
Quoted 50 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Quoted 7 lines
Quoted 4 lines
Since there are no deps between the patches, they should be applied into their own trees (as previously discussed). I only applied the ACPI patch because Rafael asked me nicely. Normally this should have gone in separately too.
Andy already expressed his preference about the patch going through MFD tree in the v5 thread. Below is the excerpt.
If Andy is happy for me to apply the patch without an immutable branch, then I'll take it. But as I've already said, this it non-optimal.
There is no reason why it can't be taken in via the Platform tree. Nothing depends on it and it depends on nothing, since it is new code.
Quoted 30 lines
Quoted 28 lines · Andy Shevchenko
Quoted 14 lines · Takashi Iwai
Quoted 11 lines · Andy Shevchenko
Quoted 7 lines · Takashi Iwai
This provides a new input driver for supporting the power button on Dollar Cove TI PMIC, found on Cherrytrail-based devices. The patch is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsBugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Signed-off-by Takashi Iwai <[email protected]>Are you going to submit it via MFD?
Quoted 8 lines
I really don't mind who takes what. The driver codes are small, so it should be OK to go through a single tree, presumably MFD, if all people agree.
OTOH, if Lee can prepare an immutable branch, other two can go via other trees, too.
What do you guys think better?
As a co-maintainer of PDx86 I prefer to go with MFD or whatever first patch is related to.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 91 lines · Lee Jones
Quoted 80 lines · Takashi Iwai
Quoted 78 lines · Lee Jones
Quoted 58 lines · Takashi Iwai
Quoted 56 lines · Lee Jones
Quoted 53 lines · Takashi Iwai
Quoted 50 lines · Lee Jones
Quoted 39 lines · Takashi Iwai
Quoted 28 lines · Lee Jones
Quoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Quoted 7 lines
Quoted 4 lines
Since there are no deps between the patches, they should be applied into their own trees (as previously discussed). I only applied the ACPI patch because Rafael asked me nicely. Normally this should have gone in separately too.
Andy already expressed his preference about the patch going through MFD tree in the v5 thread. Below is the excerpt.
Quoted 7 lines
If Andy is happy for me to apply the patch without an immutable branch, then I'll take it. But as I've already said, this it non-optimal.
There is no reason why it can't be taken in via the Platform tree. Nothing depends on it and it depends on nothing, since it is new code.
That approach is also far from optimal, too, as Rafael and I explained.
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 72 lines
Quoted 72 lines
Quoted 60 lines
Quoted 60 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 42 lines
Quoted 34 lines
Quoted 25 lines
Quoted 25 lines
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Quoted 7 lines
Quoted 4 lines
Since there are no deps between the patches, they should be applied into their own trees (as previously discussed). I only applied the ACPI patch because Rafael asked me nicely. Normally this should have gone in separately too.
Andy already expressed his preference about the patch going through MFD tree in the v5 thread. Below is the excerpt.
If Andy is happy for me to apply the patch without an immutable branch, then I'll take it. But as I've already said, this it non-optimal.
Quoted 6 lines
Quoted 3 lines
There is no reason why it can't be taken in via the Platform tree. Nothing depends on it and it depends on nothing, since it is new code.
That approach is also far from optimal, too, as Rafael and I explained.
That's just my point. This approach is optimal.
The alternative is that I (or someone else) jumps through the required hoops to create an immutable branch. As a one off, it's not actually that big of a deal. However, if I do it for you, I have to do it for every submitter, else it's not fair to them.
MFD patch-sets inherently cross subsystem boundaries, which means I would end up taking many more patches than I do already. Subsequently the per-cycle MFD pull-request exponentially grows in size, as does my work load.
This is the way we've been working for years, and it works really well. I'm not about to change something which isn't broken, just to avoid the really tiny corner-case you described before.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 80 lines · Lee Jones
Quoted 73 lines
Quoted 73 lines
Quoted 61 lines
Quoted 61 lines
Quoted 44 lines
Quoted 44 lines
Quoted 44 lines
Quoted 43 lines
Quoted 35 lines
Quoted 26 lines
Quoted 26 lines
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Quoted 7 lines
Quoted 4 lines
Since there are no deps between the patches, they should be applied into their own trees (as previously discussed). I only applied the ACPI patch because Rafael asked me nicely. Normally this should have gone in separately too.
Andy already expressed his preference about the patch going through MFD tree in the v5 thread. Below is the excerpt.
If Andy is happy for me to apply the patch without an immutable branch, then I'll take it. But as I've already said, this it non-optimal.
Quoted 6 lines
Quoted 3 lines
There is no reason why it can't be taken in via the Platform tree. Nothing depends on it and it depends on nothing, since it is new code.
That approach is also far from optimal, too, as Rafael and I explained.
Quoted 6 lines
That's just my point. This approach is optimal.
The alternative is that I (or someone else) jumps through the required hoops to create an immutable branch. As a one off, it's not actually that big of a deal. However, if I do it for you, I have to do it for every submitter, else it's not fair to them.
Lee, that's an overreaction. No one would think that I'm special even if you would do that :)
I can create such a branch by myself, and send you pull requests, if it's a preferred way. That's no problem. It'd be much less time than discussing in a too lengthy thread, honestly speaking. But maybe the problem isn't that...
Quoted 4 lines
MFD patch-sets inherently cross subsystem boundaries, which means I would end up taking many more patches than I do already. Subsequently the per-cycle MFD pull-request exponentially grows in size, as does my work load.
Yeah, I understand that. OTOH, I don't understand the reason to refuse the IB as much possible -- there are several ways to manage that more easily.
For example, you can keep a persistent branch that can be branched off at any time for a new IB, while keeping another branch for regular, rather unstable patch applications. For linux-next, you can provide the temporary merged branch, too. It's a way some trees deploy.
Quoted 3 lines
This is the way we've been working for years, and it works really well. I'm not about to change something which isn't broken, just to avoid the really tiny corner-case you described before.
I'd disagree about it being a tiny corner-case. It's fundamental to provide a solid code basis which user can test / development on. If we do release kernels more frequently, it shouldn't be a problem. (e.g. for a fix between RC's, it's fine to merge through individual trees.) But if the merge will be done first after 3 months, no one can guarantee what would happen in these 3 months. That's why we need the solid merge point to begin with. It allows a way to debug for potential breakage after that point.
thanks,
Takashi
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
Quoted 84 lines · Takashi Iwai
Quoted 82 lines · Lee Jones
Quoted 73 lines
Quoted 73 lines
Quoted 61 lines
Quoted 61 lines
Quoted 44 lines
Quoted 44 lines
Quoted 44 lines
Quoted 43 lines
Quoted 35 lines
Quoted 26 lines
Quoted 26 lines
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with
ACPI INT33F5 that is found on some Intel Cherry Trail devices.
The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently,
only ACPI PMIC opregion and the external power-button are used.Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by: Mika Westerberg <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL text
v3->v4:
* no change for this patch
v2->v3:
* Rename dc_ti with chtdc_ti in all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mika
v1->v2:
* Minor cleanups as suggested by AndyQuoted 8 lines
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++
drivers/mfd/Makefile | 1 +
drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++
3 files changed, 198 insertions(+)
create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.cFor my own reference:
Acked-for-MFD-by Lee Jones <[email protected]>Quoted 6 lines
Thanks!
Now the question is how to deal with these. It's no critical things, so I'm OK to postpone for 4.15. OTOH, it's really a new device-specific stuff, thus it can't break anything else, and it'd be fairly safe to add it for 4.14 although it's at a bit late stage.
Yes, you are over 2 weeks late for v4.14. It will have to be v4.15.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OK, I'll ring your bells again once when 4.15 development is opened.
Please don't. Just collect all the Acks you have received and sent out the set again changing [PATCH] for [RESEND]. Only if there haven't been any code changes of course.
You seem to have applied the patches in some branch, but still do I need to resend the whole patches?
That's up to the Platform Maintainers.
Since the MFD and ACPI are applied, you do not need to resend those.
Quoted 1 line
BTW, was patch 2/3 applied? I miss your notification mail.
Patch 2 needs to be applied into the Platform tree.
Quoted 7 lines
Quoted 4 lines
Since there are no deps between the patches, they should be applied into their own trees (as previously discussed). I only applied the ACPI patch because Rafael asked me nicely. Normally this should have gone in separately too.
Andy already expressed his preference about the patch going through MFD tree in the v5 thread. Below is the excerpt.
If Andy is happy for me to apply the patch without an immutable branch, then I'll take it. But as I've already said, this it non-optimal.
Quoted 6 lines
Quoted 3 lines
There is no reason why it can't be taken in via the Platform tree. Nothing depends on it and it depends on nothing, since it is new code.
That approach is also far from optimal, too, as Rafael and I explained.
That's just my point. This approach is optimal.
Quoted 7 lines
Quoted 4 lines
The alternative is that I (or someone else) jumps through the required hoops to create an immutable branch. As a one off, it's not actually that big of a deal. However, if I do it for you, I have to do it for every submitter, else it's not fair to them.
Lee, that's an overreaction. No one would think that I'm special even if you would do that :)
I'm not saying you'd be special. I'm saying if I do it for one, I have to do it for others.
Quoted 1 line
I can create such a branch by myself, and send you pull requests, if
That is also an acceptable solution.
Quoted 3 lines
it's a preferred way. That's no problem. It'd be much less time than discussing in a too lengthy thread, honestly speaking. But maybe the problem isn't that...
The problem isn't time in the first instance. It's the attempt to avoid setting a precedence and for this to become the norm.
Quoted 5 lines
Quoted 4 lines
MFD patch-sets inherently cross subsystem boundaries, which means I would end up taking many more patches than I do already. Subsequently the per-cycle MFD pull-request exponentially grows in size, as does my work load.
Quoted 8 lines
Yeah, I understand that. OTOH, I don't understand the reason to refuse the IB as much possible -- there are several ways to manage that more easily.
For example, you can keep a persistent branch that can be branched off at any time for a new IB, while keeping another branch for regular, rather unstable patch applications. For linux-next, you can provide the temporary merged branch, too. It's a way some trees deploy.
Yes, I am aware that some repos split themselves up into immutable branches, which can be independently pulled from. They clearly have more spare time than I do.
These branches are usually only split up by topic within their own subject area/subsystem. They tend not to be full of cross-sub system patch-sets.
Quoted 4 lines
Quoted 3 lines
This is the way we've been working for years, and it works really well. I'm not about to change something which isn't broken, just to avoid the really tiny corner-case you described before.
Quoted 8 lines
I'd disagree about it being a tiny corner-case. It's fundamental to provide a solid code basis which user can test / development on. If we do release kernels more frequently, it shouldn't be a problem. (e.g. for a fix between RC's, it's fine to merge through individual trees.) But if the merge will be done first after 3 months, no one can guarantee what would happen in these 3 months. That's why we need the solid merge point to begin with. It allows a way to debug for potential breakage after that point.
I agree. Which is exactly what the current release model provides:
All patches get dumped into a pile and tagged (-rc1), then developers get ~8 weeks to test their work and spot issues created by the merge and have a chance to fix any problems found prior to final release. It is this final release which forms the solid code base which you speak of.
I haven't seen any issues that would warrant the over-the-top cautionary steps which you suggest, where IMHO the maintenance burden far outweighs the potential benefit.
Right, this really is enough now.
/out
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
Re: [PATCH v5 1/3] mfd: Add support for Cherry Trail Dollar Cove TI PMIC
In reply to Takashi IwaiQuoted 25 lines · Takashi Iwai
This patch adds the MFD driver for Dollar Cove (TI version) PMIC with ACPI INT33F5 that is found on some Intel Cherry Trail devices. The driver is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuiltsThis is a minimal version for adding the basic resources. Currently, only ACPI PMIC opregion and the external power-button are used.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* Minor coding-style fixes suggested by Lee
* Put GPL textv3->v4:
* no change for this patchv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Added acks by Andy and Mikav1->v2:
* Minor cleanups as suggested by Andy
Quoted 5 lines
drivers/mfd/Kconfig | 13 +++ drivers/mfd/Makefile | 1 + drivers/mfd/intel_soc_pmic_chtdc_ti.c | 184 ++++++++++++++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 drivers/mfd/intel_soc_pmic_chtdc_ti.c
Applied for v4.15, thanks.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog
PATCH v5 2/3 platform/x86: Add support for Dollar Cove TI power button
In reply to Takashi IwaiThis provides a new input driver for supporting the power button on Dollar Cove TI PMIC, found on Cherrytrail-based devices. The patch is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuilts
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
---v4->v5:
* no change in this driverv3->v4:
* Minor fixes suggested by Dmitry
* Rephrase Kconfig help textsv2->v3:
* Rename dc_ti with chtdc_ti in all places
* Driver/kconfig renames accordingly
* Constification
* Added acks by Andy and Mikav1->v2:
* Move power-button driver to platform/x86, driver renames accordingly
* Add missing wake-irq cleanup to power-button driver
drivers/platform/x86/Kconfig | 11 ++++ drivers/platform/x86/Makefile | 1 + drivers/platform/x86/intel_chtdc_ti_pwrbtn.c | 94 ++++++++++++++++++++++++++++ 3 files changed, 106 insertions(+) create mode 100644 drivers/platform/x86/intel_chtdc_ti_pwrbtn.c
drivers/platform/x86/Kconfig +11 -0
@@ -1139,6 +1139,17 @@ config SILEAD_DMI with the OS-image for the device. This option supplies the missing information. Enable this for x86 tablets with Silead touchscreens. +config INTEL_CHTDC_TI_PWRBTN + tristate "Intel Cherry Trail Dollar Cove TI power button driver" + depends on INTEL_SOC_PMIC_CHTDC_TI + depends on INPUT + ---help--- + This option adds a power button driver driver for Dollar Cove TI + PMIC on Intel Cherry Trail devices. + + To compile this driver as a module, choose M here: the module + will be called intel_chtdc_ti_pwrbtn. + endif # X86_PLATFORM_DEVICES config PMC_ATOM
drivers/platform/x86/Makefile +1 -0
@@ -83,3 +83,4 @@ obj-$(CONFIG_PMC_ATOM) += pmc_atom.o obj-$(CONFIG_MLX_PLATFORM) += mlx-platform.o obj-$(CONFIG_MLX_CPLD_PLATFORM) += mlxcpld-hotplug.o obj-$(CONFIG_INTEL_TURBO_MAX_3) += intel_turbo_max_3.o +obj-$(CONFIG_INTEL_CHTDC_TI_PWRBTN) += intel_chtdc_ti_pwrbtn.o
drivers/platform/x86/intel_chtdc_ti_pwrbtn.c new file +94 -0
94 lines not on this page · raw message
Signature · 1 line
2.14.1
PATCH v5 3/3 ACPI / PMIC: Add opregion driver for Intel Dollar Cove TI PMIC
In reply to Takashi IwaiThis patch adds the opregion driver for Dollar Cove TI PMIC on Intel Cherry Trail devices. The patch is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuilts
with many cleanups and rewrites.
The driver is currently provided only as built-in to follow other PMIC opregion drivers convention.
The re-enumeration of devices at probe is required for fixing the issues on HP x2 210 G2. See bug#195689.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195689
---v4->v5:
* no change in this driverv3->v4:
* Rename dc_ti with chtdc_ti in all placesv2->v3:
* Rename dc_ti with chtdc_ti in all places
* Driver/kconfig renames accordingly
* Constification
* Added acks by Andy and Mikav1->v2:
* get_raw_temp cleanup in opregion driver, mention about register endianess
drivers/acpi/Kconfig | 6 ++ drivers/acpi/Makefile | 1 + drivers/acpi/pmic/intel_pmic_chtdc_ti.c | 137 ++++++++++++++++++++++++++++++++ 3 files changed, 144 insertions(+) create mode 100644 drivers/acpi/pmic/intel_pmic_chtdc_ti.c
drivers/acpi/Kconfig +6 -0
@@ -521,6 +521,12 @@ config CHT_WC_PMIC_OPREGION help This config adds ACPI operation region support for CHT Whiskey Cove PMIC. +config CHT_DC_TI_PMIC_OPREGION + bool "ACPI operation region support for Dollar Cove TI PMIC" + depends on INTEL_SOC_PMIC_CHTDC_TI + help + This config adds ACPI operation region support for Dollar Cove TI PMIC. + endif config ACPI_CONFIGFS
drivers/acpi/Makefile +1 -0
@@ -103,6 +103,7 @@ obj-$(CONFIG_CRC_PMIC_OPREGION) += pmic/intel_pmic_crc.o obj-$(CONFIG_XPOWER_PMIC_OPREGION) += pmic/intel_pmic_xpower.o obj-$(CONFIG_BXT_WC_PMIC_OPREGION) += pmic/intel_pmic_bxtwc.o obj-$(CONFIG_CHT_WC_PMIC_OPREGION) += pmic/intel_pmic_chtwc.o +obj-$(CONFIG_CHT_DC_TI_PMIC_OPREGION) += pmic/intel_pmic_chtdc_ti.o obj-$(CONFIG_ACPI_CONFIGFS) += acpi_configfs.o
drivers/acpi/pmic/intel_pmic_chtdc_ti.c new file +137 -0
137 lines not on this page · raw message
Signature · 1 line
2.14.1
Re: [PATCH v5 3/3] ACPI / PMIC: Add opregion driver for Intel Dollar Cove TI PMIC
Quoted 31 lines · Takashi Iwai
This patch adds the opregion driver for Dollar Cove TI PMIC on Intel Cherry Trail devices. The patch is based on the original work by Intel, found at:
https://github.com/01org/ProductionKernelQuilts
with many cleanups and rewrites.The driver is currently provided only as built-in to follow other PMIC opregion drivers convention.
The re-enumeration of devices at probe is required for fixing the issues on HP x2 210 G2. See bug#195689.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=193891
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195689Reviewed-by Mika Westerberg <[email protected]>Reviewed-by Andy Shevchenko <[email protected]>Signed-off-by Takashi Iwai <[email protected]>---
v4->v5:
* no change in this driverv3->v4:
* Renamedc_tiwithchtdc_tiin all placesv2->v3:
* Renamedc_tiwithchtdc_tiin all places
* Driver/kconfig renames accordingly
* Constification
* Added acks by Andy and Mikav1->v2:
*get_raw_tempcleanup in opregion driver, mention about register endianess
Quoted 5 lines
drivers/acpi/Kconfig | 6 ++ drivers/acpi/Makefile | 1 + drivers/acpi/pmic/intel_pmic_chtdc_ti.c | 137 ++++++++++++++++++++++++++++++++ 3 files changed, 144 insertions(+) create mode 100644 drivers/acpi/pmic/intel_pmic_chtdc_ti.c
Applied for v4.15, thanks.
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog