|
发表于 2022-6-17 10:02:16
1942 浏览 0 回复
Linux GPIO驱动 Gpio request[0] failed:-16!
[ 11.832200] c7 vbc-rxpx-codec-sc27xx sound@0: stream_name : BE_ST_VOICE_PCM_P
[ 11.839403] c7 sprd_asoc_card_parse_hook
[ 11.843380] c7 [ASoC:BOARD] ext_ctrl_type 0 hook_sel 0 priv_data 3 gpio 136
[ 11.843389] c7 vbc-rxpx-codec-sc27xx sound@0: Gpio request[0] failed:-16!
[ 11.857092] c7 [Audio:AGDSP_ACCESS] agdsp_access_enable out
在驱动中调用devm_gpio_request_one()函数失败,返回错误值是-16,如下是错误码对应的描述
EBUSY 16 Device or resource busy
说明这个接口处于繁忙状态,大致推测是在被使用了。
通过搜索设备树,发现这个gpio号确实被另一个驱动调用了,先把他注销掉,释放出来给我试用
下面是linux错误代码含义,方便下次查询
- C Name Value Description
- EPERM -1 Operation not permitted
- ENOENT -2 No such file or directory
- ESRCH -3 No such process
- EINTR -4 Interrupted system call
- EIO -5 I/O error
- ENXIO -6 No such device or address
- E2BIG -7 Arg list too long
- ENOEXEC - 8 Exec format error
- EBADF -9 Bad file number
- ECHILD -10 No child processes
- EAGAIN -11 Try again
- ENOMEM -12 Out of memory
- EACCES -13
复制代码
|
|
手机微信同号:13682654092
|
|
|
|
|
登录或注册
|