Skip to contentSkip to conversation

mfd: update Intel soc PMIC header file to support Broxton WC PMIC

PATCH In review Qipeng Zha 2 participants 6 messages Aug 25, 2015 – Sep 14, 2015

Subsystems (2)
lore
Share & tools
lore

Qipeng Zha

author
#0 lore raw

PATCH v5 1/2 mfd: update Intel soc PMIC header file to support Broxton WC PMIC

IRQ control registers of Intel Broxton Whisky Cove PMIC are separated in two parts, so add secondary IRQ chip.
And the new member of device will be used in PMC IPC regmap APIs.

---
 include/linux/mfd/intel_soc_pmic.h | 5 +++++
 1 file changed, 5 insertions(+)
include/linux/mfd/intel_soc_pmic.h +5 -0
index abcbfcf..a730f14 100644
@@ -21,10 +21,15 @@
 
 #include <linux/regmap.h>
 
+#define INIT_REGMAP_IRQ(_irq, _off, _mask)		\
+	[_irq] = { .reg_offset = (_off), .mask = (_mask) }
+
 struct intel_soc_pmic {
 	int irq;
 	struct regmap *regmap;
 	struct regmap_irq_chip_data *irq_chip_data;
+	struct regmap_irq_chip_data *irq_chip_data_level2;
+	struct device *dev;
 };
 
 #endif	/* __INTEL_SOC_PMIC_H__ */
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 14 lines · Qipeng Zha

IRQ control registers of Intel Broxton Whisky Cove PMIC are separated in two parts, so add secondary IRQ chip.
And the new member of device will be used in PMC IPC regmap APIs.

---
 include/linux/mfd/intel_soc_pmic.h | 5 +++++
 1 file changed, 5 insertions(+)
include/linux/mfd/intel_soc_pmic.h +0 -0
index abcbfcf..a730f14 100644

include/linux/mfd/intel_soc_pmic.h line 26

Quoted 6 lines
include/linux/mfd/intel_soc_pmic.h +3 -0
@@ -21,10 +21,15 @@
 
 #include <linux/regmap.h>
 
+#define INIT_REGMAP_IRQ(_irq, _off, _mask)		\
+	[_irq] = { .reg_offset = (_off), .mask = (_mask) }
+

No, that's not what I asked.

Either this macro is going to be useful to *everyone*, or it's probably not useful to *anyone*. If it's going to exist, it should exist in the core header file, not Intel's own.

Quoted 9 lines
include/linux/mfd/intel_soc_pmic.h +2 -0
 struct intel_soc_pmic {
 	int irq;
 	struct regmap *regmap;
 	struct regmap_irq_chip_data *irq_chip_data;
+	struct regmap_irq_chip_data *irq_chip_data_level2;
+	struct device *dev;
 };
 
 #endif	/* __INTEL_SOC_PMIC_H__ */
Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#2 lore raw
Quoted 8 lines

include/linux/mfd/intel_soc_pmic.h line 26

Quoted 4 lines
include/linux/mfd/intel_soc_pmic.h +3 -0
+#define INIT_REGMAP_IRQ(_irq, _off, _mask)		\
+	[_irq] = { .reg_offset = (_off), .mask = (_mask) }
+

No, that's not what I asked.

Either this macro is going to be useful to *everyone*, or it's probably not useful to *anyone*. If it's going to exist, it should exist in the core header file, not Intel's own.

Jones, can we keep current change as for intel's own ? not sure if Mark agree to merge this macro to core regmap header file. Maybe some driver want to initialize regmap_irq structure with different/customed way.
Thanks. ���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#3 lore raw
Quoted 7 lines · Qipeng
Quoted 6 lines

include/linux/mfd/intel_soc_pmic.h line 26

Quoted 4 lines
include/linux/mfd/intel_soc_pmic.h +3 -0
+#define INIT_REGMAP_IRQ(_irq, _off, _mask)		\
+	[_irq] = { .reg_offset = (_off), .mask = (_mask) }
+

No, that's not what I asked.

Quoted 5 lines
Quoted 1 line

Either this macro is going to be useful to *everyone*, or it's probably not useful to *anyone*. If it's going to exist, it should exist in the core header file, not Intel's own.

Jones, can we keep current change as for intel's own ? not sure if Mark agree to merge this macro to core regmap header file. Maybe some driver want to initialize regmap_irq structure with different/customed way.
Thanks.

Is that what Mark said when you submitted this to him?

Signature · 4 lines
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
#4 lore raw
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines

include/linux/mfd/intel_soc_pmic.h line 26

Quoted 4 lines
include/linux/mfd/intel_soc_pmic.h +3 -0
+#define INIT_REGMAP_IRQ(_irq, _off, _mask)		\
+	[_irq] = { .reg_offset = (_off), .mask = (_mask) }
+

No, that's not what I asked.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Either this macro is going to be useful to *everyone*, or it's probably not useful to *anyone*. If it's going to exist, it should exist in the core header file, not Intel's own.

Jones, can we keep current change as for intel's own ? not sure if Mark agree to merge this macro to core regmap header file. Maybe some driver want to initialize regmap_irq structure with different/customed way.
Thanks.

Is that what Mark said when you submitted this to him?

No, I don't get feedback from Mark. ���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m���� ������?�I�

#5 lore raw
Quoted 9 lines · Qipeng
Quoted 9 lines
Quoted 9 lines
Quoted 8 lines

include/linux/mfd/intel_soc_pmic.h line 26

Quoted 4 lines
include/linux/mfd/intel_soc_pmic.h +3 -0
+#define INIT_REGMAP_IRQ(_irq, _off, _mask)		\
+	[_irq] = { .reg_offset = (_off), .mask = (_mask) }
+

No, that's not what I asked.

Either this macro is going to be useful to *everyone*, or it's probably not useful to *anyone*. If it's going to exist, it should exist in the core header file, not Intel's own.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

Jones, can we keep current change as for intel's own ? not sure if Mark agree to merge this macro to core regmap header file. Maybe some driver want to initialize regmap_irq structure with different/customed way.
Thanks.

Is that what Mark said when you submitted this to him?

No, I don't get feedback from Mark.

Then please at least try. Don't forget to Cc me on the patch.

If Mark decides that it's not useful to others, then I will consider it for the Intel-only header.

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