diff options
author | Robin Gong <yibin.gong@nxp.com> | 2016-04-28 21:15:38 +0800 |
---|---|---|
committer | Anson Huang <Anson.Huang@nxp.com> | 2017-06-08 19:25:21 +0800 |
commit | 95534d92af67de90d13b627540f752964f1ab565 (patch) | |
tree | 3a6033dc36f8c2ce7056d36b8c2e9bc995179501 /include/linux/mfd | |
parent | 09da16006cddacb829f09d974a9c044b9acf5065 (diff) |
MLK-12928-10 mfd: pf1550: correct virtual irqs for every sub-driver of pf1550
Correct virtual irqs macro from zero for every sub-driver of pf1550,
otherwise,below warning will be triggered:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 1 at kernel/irq/irqdomain.c:280 irq_domain_associate+0x148/0x1d4()
error: hwirq 0xb is too large for (null)
Modules linked in:
CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.15-01689-gb67ecb6-dirty #195
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015e04>] (unwind_backtrace) from [<80012754>] (show_stack+0x10/0x14)
[<80012754>] (show_stack) from [<807909c0>] (dump_stack+0x84/0xc4)
[<807909c0>] (dump_stack) from [<80034914>] (warn_slowpath_common+0x84/0xb4)
[<80034914>] (warn_slowpath_common) from [<80034974>] (warn_slowpath_fmt+0x30/0x40)
[<80034974>] (warn_slowpath_fmt) from [<800717fc>] (irq_domain_associate+0x148/0x1d4)
[<800717fc>] (irq_domain_associate) from [<80071da4>] (irq_create_mapping+0x60/0xc4)
[<80071da4>] (irq_create_mapping) from [<804910a4>] (pf1550_onkey_probe+0xe8/0x230)
[<804910a4>] (pf1550_onkey_probe) from [<803823e8>] (platform_drv_probe+0x44/0xa4)
[<803823e8>] (platform_drv_probe) from [<80380ca0>] (driver_probe_device+0x174/0x2b4)
[<80380ca0>] (driver_probe_device) from [<80380eb0>] (__driver_attach+0x8c/0x90)
[<80380eb0>] (__driver_attach) from [<8037f1e8>] (bus_for_each_dev+0x6c/0xa0)
[<8037f1e8>] (bus_for_each_dev) from [<8038043c>] (bus_add_driver+0x148/0x1f0)
[<8038043c>] (bus_add_driver) from [<803814b4>] (driver_register+0x78/0xf8)
[<803814b4>] (driver_register) from [<80009730>] (do_one_initcall+0x8c/0x1d4)
[<80009730>] (do_one_initcall) from [<80a8bdac>] (kernel_init_freeable+0x144/0x1e4)
[<80a8bdac>] (kernel_init_freeable) from [<8078ca20>] (kernel_init+0x8/0xe8)
[<8078ca20>] (kernel_init) from [<8000f568>] (ret_from_fork+0x14/0x2c)
---[ end trace dc402f301115a3b2 ]---
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/pf1550.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/mfd/pf1550.h b/include/linux/mfd/pf1550.h index 8066b8c204b1..f19c4933d2d4 100644 --- a/include/linux/mfd/pf1550.h +++ b/include/linux/mfd/pf1550.h @@ -182,7 +182,7 @@ enum pf1550_pmic_reg { #define CHARG_IRQ_DPMI BIT(6) #define CHARG_IRQ_THMI BIT(7) -enum pf1550_irq { +enum pf1550_pmic_irq { PF1550_PMIC_IRQ_SW1_LS, PF1550_PMIC_IRQ_SW2_LS, PF1550_PMIC_IRQ_SW3_LS, @@ -194,14 +194,18 @@ enum pf1550_irq { PF1550_PMIC_IRQ_LDO3_FAULT, PF1550_PMIC_IRQ_TEMP_110, PF1550_PMIC_IRQ_TEMP_125, +}; +enum pf1550_onkey_irq { PF1550_ONKEY_IRQ_PUSHI, PF1550_ONKEY_IRQ_1SI, PF1550_ONKEY_IRQ_2SI, PF1550_ONKEY_IRQ_3SI, PF1550_ONKEY_IRQ_4SI, PF1550_ONKEY_IRQ_8SI, +}; +enum pf1550_charg_irq { PF1550_CHARG_IRQ_BAT2SOCI, PF1550_CHARG_IRQ_BATI, PF1550_CHARG_IRQ_CHGI, |