高通平台功耗 - How_to_determine_wakeup_trigger_from_suspend_caused_by_PMIC_IRQ

[ 366.151054] gic_show_resume_irq: 222 triggered

This debug message in the kernel log indicates that a PMIC SPMI IRQ was the wakeup trigger from suspend.

To enable additional debug message printing use the following cmds.

adb root
adb wait-for-devices
adb shell mount -t debugfs none /sys/kernel/debug
adb shell “echo 8 > /proc/sys/kernel/printk”
adb shell “echo ‘func qpnpint_handle_irq +p’ > /sys/kernel/debug/dynamic_debug/control”
Once the device wakes up from suspend, messages like the ones below will get printed out.

Example #1:

[ 26.935784] qpnpint_handle_irq: spec slave = 0 per = 18 irq = 0
slave = 0 indicates that it is PM8941. per = 18 indicates that it is PM8941 peripheral 0x12. If we look this up in the PM8941 register document it corresponds to SMBB_BAT_IF_PERPH. Looking at register 0x1218 indicates that irq = 0 corresponds to the BAT_PRES IRQ.

Example #2:

[ 23.708495] qpnpint_handle_irq: spec slave = 0 per = 19 irq = 1
slave = 0 indicates that it is PM8941. per = 19 indicates that it is PM8941 peripheral 0x13. If we look this up in the PM8941 register document it corresponds to SMBB_USB_CHGPTH_PERPH Looking at register 0x1318 indicates that irq = 1 corresponds to the USBIN_VALID IRQ.

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值