使用WARN_ON来追溯函数的调用关系

这篇博客介绍了在ZynqMP平台上遇到的一个bug,系统在启动时显示了关于SPI驱动spidev的警告。通过分析内核日志,特别是WARN_ON的调用,我们可以追踪到spidev_probe函数的问题。文章详细展示了从spidev_probe到cdns_spi_probe的调用栈,揭示了驱动注册和设备添加的过程。
摘要由CSDN通过智能技术生成

[    6.660489] spidev spi32766.1: buggy DT: spidev listed directly in DT
[    6.666878] ------------[ cut here ]------------
[    6.671443] WARNING: at /home/cctv/YOCTO/poky/build/tmp/work-shared/zynqmp/kernel-source/drivers/spi/spidev.c:9
[    6.682906] Modules linked in:
[    6.685935]
[    6.687415] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W       4.4.0-xilinx #1
[    6.695057] Hardware name: ZynqMP (DT)
[    6.699392] task: ffffffc87b878b80 ti: ffffffc87b87c000 task.ti: ffffffc87b87c000
[    6.706866] PC is at spidev_probe+0x1a0/0x1c0
[    6.711198] LR is at spidev_probe+0x19c/0x1c0
[    6.715537] pc : [<ffffffc000521ac0>] lr : [<ffffffc000521abc>] pstate: 60000045
[    6.722920] sp : ffffffc87b87f980
[    6.726212] x29: ffffffc87b87f980 x28: 0000000000000000
[    6.731505] x27: ffffffc000a5eed0 x26: 0000
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值