【问题标题】:tcan4x5x driver returns -22 probe failed error [closed]tcan4x5x 驱动程序返回 -22 探测失败错误 [关闭]
【发布时间】:2021-09-24 01:35:34
【问题描述】:

我在 Linux 内核 v4.14.98 中使用 tcan4x5x 驱动程序,我面临以下问题

[ 27.788175] tcan4x5x spi0.0: Unsupported version number: 0
[ 28.034275] [<ffff0000087db7f0>] tcan4x5x_can_probe+0x318/0x550
[ 28.085188] [<ffff000009451ecc>] tcan4x5x_can_driver_init+0x18/0x20
[ 28.357443] [<ffff0000087db7f8>] tcan4x5x_can_probe+0x320/0x550
[ 28.408271] [<ffff000009451ecc>] tcan4x5x_can_driver_init+0x18/0x20
[ 28.681485] [<ffff0000087db804>] tcan4x5x_can_probe+0x32c/0x550
[ 28.732311] [<ffff000009451ecc>] tcan4x5x_can_driver_init+0x18/0x20
[ 29.004399] [<ffff0000087db80c>] tcan4x5x_can_probe+0x334/0x550
[ 29.055230] [<ffff000009451ecc>] tcan4x5x_can_driver_init+0x18/0x20
[ 29.088498] tcan4x5x spi0.0: Probe failed, err=-22
[ 29.097673] tcan4x5x: probe of spi0.0 failed with error -22

我该如何解决这个问题?

【问题讨论】:

  • 最后一个内核版本是 v5.13,在 v4.14.y 系列中是 v.4.14.239。您是否尝试过使用较新的并查看是否出现相同的问题?
  • 顺便说一句,在 v4.14.98 中没有名为 tcan4x5x_can_probe() 的函数。您正在使用自定义内核。然后询问该内核的供应商。祝你好运!
  • 我和 ti 有过对话,下面的链接支持我解决这个问题TCAN4550: tcan4x5x: probe failed with error -22

标签: linux-device-driver spi can-bus imx8


【解决方案1】:

建议启用动态调试控制并检查是否有更多关于错误 EINVAL 错误 22 的信息。

  • echo -n '+p' > /sys/kernel/debug/dynamic_debug/control
  • 再次卸载和加载驱动程序

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-07-10
    • 2011-11-12
    • 2022-09-26
    • 2015-11-14
    • 1970-01-01
    • 1970-01-01
    • 2015-09-02
    • 2019-08-24
    相关资源
    最近更新 更多