arm-trusted-firmware/plat/hisilicon/hikey
Leo Yan c9e8774cb8 hikey: Disable VBUS_DET interrupt for PMIC
After disconnect Jumper pin 1-2 in J15 header, the signal VBUS_DET is to
be pulled down to low level. This will assert the interrupt signal in
PMIC and trigger IRQ in GIC; the asserted signal from VBUS_DET is level
triggered and kernel reports the warning for unhooked interrupt handling;
and VBUS_DET stays with low level, this triggers IRQ storm in kernel.

This patch is to disable interrupt for VBUS_DET in PMIC, this can
dismiss the verbose log and IRQ storm after kernel booting.

[   40.835279] irq 57: nobody cared (try booting with the "irqpoll" option)
[   40.842075] CPU: 0 PID: 980 Comm: irq/57-hi655x-p Not tainted 4.4.77-568944-g576a0114dec8-dirty #667
[   40.851303] Hardware name: HiKey Development Board (DT)
[   40.856580] Call trace:
[   40.859060] [<ffffff800808c4cc>] dump_backtrace+0x0/0x1e0
[   40.864516] [<ffffff800808c8ac>] show_stack+0x20/0x28
[   40.869622] [<ffffff80084b9688>] dump_stack+0xa8/0xe0
[   40.874729] [<ffffff800812dd5c>] __report_bad_irq+0x40/0xec
[   40.880360] [<ffffff800812e0bc>] note_interrupt+0x1e4/0x2d8
[   40.885992] [<ffffff800812b11c>] handle_irq_event_percpu+0xd8/0x268
[   40.892324] [<ffffff800812b2f8>] handle_irq_event+0x4c/0x7c
[   40.897955] [<ffffff800812ecbc>] handle_level_irq+0xcc/0x178
[   40.903672] [<ffffff800812a778>] generic_handle_irq+0x34/0x4c
[   40.909481] [<ffffff80085074c8>] pl061_irq_handler+0xa8/0x124
[   40.915286] [<ffffff800812a778>] generic_handle_irq+0x34/0x4c
[   40.921092] [<ffffff800812a820>] __handle_domain_irq+0x90/0xf8
[   40.926985] [<ffffff8008082620>] gic_handle_irq+0x58/0xa8

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Leo Yan <leo.yan@linaro.org>
2017-07-26 14:47:57 +08:00
..
aarch64 hikey: Add BL32 (OP-TEE) support 2017-07-12 18:23:26 +09:00
include hikey: Disable VBUS_DET interrupt for PMIC 2017-07-26 14:47:57 +08:00
hikey_bl1_setup.c hikey: Disable VBUS_DET interrupt for PMIC 2017-07-26 14:47:57 +08:00
hikey_bl2_setup.c hikey: Add BL32 (OP-TEE) support 2017-07-12 18:23:26 +09:00
hikey_bl31_setup.c hikey: bl31: enable CCI port for cluster 0 2017-05-31 13:20:20 +08:00
hikey_ddr.c hikey: fix uninitialized variable in ddr code 2017-05-31 12:42:10 +08:00
hikey_def.h hikey: Add BL32 (OP-TEE) support 2017-07-12 18:23:26 +09:00
hikey_io_storage.c hikey: Add BL32 (OP-TEE) support 2017-07-12 18:23:26 +09:00
hikey_pm.c hikey: pm: finish PSCI hook functions 2017-05-31 13:22:02 +08:00
hikey_private.h hikey: support BL1 2017-05-24 17:34:35 +01:00
hikey_topology.c hikey: fix for CPU topology 2017-05-31 13:19:05 +08:00
hisi_dvfs.c hikey: support BL2 2017-05-24 17:34:41 +01:00
hisi_ipc.c hikey: support BL31 2017-05-24 17:34:41 +01:00
hisi_mcu.c hikey: support BL2 2017-05-24 17:34:41 +01:00
hisi_pwrc.c Fix order of remaining platform #includes 2017-07-14 10:50:41 +01:00
hisi_pwrc_sram.S Unique names for defines in the CPU libraries 2017-06-14 15:00:13 -07:00
hisi_sip_svc.c Fix order of remaining platform #includes 2017-07-14 10:50:41 +01:00
platform.mk hikey: Add BL32 (OP-TEE) support 2017-07-12 18:23:26 +09:00