TI中文支持网
TI专业的中文技术问题搜集分享网站

AM3352移植AP6212遇到内核卡死!!

使用内核版本 4.9

使用mmc3,设备数配置如下:

mmc@47810000 {
compatible = "ti,omap4-hsmmc";
ti,hwmods = "mmc3";
ti,needs-special-reset;
interrupts = <0x1d>;
interrupt-parent = <0x1>;
reg = <0x47810000 0x1000>;
status = "okay";
vmmc-supply = <0x3f>;
bus-width = <0x4>;
pinctrl-names = "default";
pinctrl-0 = <0x43>;
non-removable;
};

加载wifi驱动时log如下:

root@am335x-lte:/home# insmod bcmdhd.ko
[ 127.206717] dhd_module_init: in Dongle Host Driver, version 1.579.77.41.7 (r)
[ 127.221789] ======== dhd_wlan_init_plat_data ========
[ 127.226902] dhd_wifi_platform_load: Enter
[ 127.241614] Power-up adapter 'DHD generic adapter'
[ 127.259809] wifi_platform_set_power = 1
[ 127.269552] ======== PULL WL_REG_ON(45) HIGH! ========
[ 127.641001] wifi_platform_bus_enumerate device present 1
[ 127.646394] cp3 invoke mmc_rescan
[ 127.649723] in cp3_force_detect fun
[ 127.658204] after cp3_force_detect
[ 127.665033] after cp3_force_detect
[ 127.668470] ======== Card detection to detect SDIO card! cp3========
[ 127.678597] !!!!!!!!!!!!!!
[ 127.851116] mmc2: mmc_rescan_try_freq: trying to init card at 400000 Hz
[ 127.945981] mmc2: queuing unknown CIS tuple 0x80 (2 bytes)
[ 127.963285] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 127.982364] mmc2: queuing unknown CIS tuple 0x80 (3 bytes)
[ 128.004722] mmc2: queuing unknown CIS tuple 0x80 (7 bytes)
[ 128.024704] mmc2: queuing unknown CIS tuple 0x81 (9 bytes)
[ 128.193236] mmc2: new high speed SDIO card at address 0001
[ 128.252197] bcmsdh_register: register client driver
[ 128.279844] bcmsdh_sdmmc_probe: Enter num=1
[ 128.292558] bcmsdh_sdmmc_probe: Enter num=2
[ 128.296782] bus num (host idx)=2, slot num (rca)=1
[ 128.324384] found adapter info 'DHD generic adapter'
[ 128.341155] sdioh_attach: set sd_f2_blocksize 256
[ 128.361485] sdioh_attach: sd clock rate = 0
[ 128.406430] dhdsdio_probe : no mutex held. set lock

然后系统就卡在这里不懂了,请问是我mmc设备树配置的问题还是其他原因导致,多谢!!!!

user4716095:

追了一下wifi驱动的代码 发现驱动阻塞在*word = sdio_readl(sd->func[func], addr, &err_ret);这个sdio_readl函数上面,请问下是什么原因导致的

yongqing wang:

回复 user4716095:

参考一下这个帖子看看:www.cnblogs.com/…/6971216.html

赞(0)
未经允许不得转载:TI中文支持网 » AM3352移植AP6212遇到内核卡死!!
分享到: 更多 (0)