Hi All,
Our project is designed and developed based on i.mx6 Sololite EVK, Android JB4.3. The wifi chips CWFA108 (RTL8189ES inside) is connected on the SD1. No problem on the wifi driver porting but it's unstable and keep reporting below similar errors:
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x00080 val=0x81
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x00080 val=0x40
RTL871X: rpwmtimeout_workitem_callback: FW already leave 32K!
RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x10210
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10522 val=0xff
RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x104dc
RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x10284
RTL871X: <3>_sd_cmd52_write: FAIL!(-110) addr=0x10284 val=0xff
RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x10284
RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x10284
RTL871X: <3>_sd_cmd52_read: FAIL!(-110) addr=0x10284
RTL871X: <3>_sd_cmd52_write: FAIL!(-110) addr=0x10214 val=0x00
RTL871X: <3>_sd_cmd52_write: FAIL!(-110) addr=0x10200 val=0x00
RTL871X: <3>_sd_cmd52_write: FAIL!(-110) addr=0x00014 val=0x00
RTL871X: =>rtl8188es_hal_deinit
RTL871X: =>hal_poweroff_rtl8188es
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x104ec val=0xfd
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10100 val=0x00
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10045 val=0xff
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10046 val=0xff
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10042 val=0xff
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10043 val=0xff
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10522 val=0x7f
RTL871X: Fail to polling Offset[0x5f8]
RTL871X: hal_poweroff_rtl8188es: run RF OFF flow fail!
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10003 val=0xfb
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10080 val=0x00
RTL871X: SetHwReg8188ES: bMacPwrCtrlOn=0
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x1001f val=0x00
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10023 val=0xff
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x10005 val=0xff
RTL871X: Fail to polling Offset[0x5]
RTL871X: hal_poweroff_rtl8188es: run CARD DISABLE flow fail!
RTL871X: <3>sd_write8: FAIL!(-110) addr=0x1001c val=0x0e
RTL871X: <=hal_poweroff_rtl8188es
RTL871X: <=rtl8188es_hal_deinit
Have consulted the FAE and checked the datasheets, found the suggested speed of this chip is 25mhz which is much slower than the default speeds of Sololite (50mhz/100mhz/200mhz). We have reviewed the board-mx6sl_evk.c but got no clue for the SD speed adjusting. Please kindly advise if you know the answer for this urgent project. Many thanks!
BTW, during a.m. code reviewing, we also tried to find the variable definitions in board-mx6sl_evk.c, such as: "mx6sl_sd1_50mhz" and "SD_PAD_MODE_LOW_SPEED", but cannot find the definitions in whole BSP... it's surprised me and raised the question mark for how can the kernel successfully make?
-tftu
have tried many times and still got errors, but this time we found the driver is trying to probe mmc2: "rtl8189es: probe of mmc2:0001:1 failed with error -110", however, as mentioned in the original post, it is connected on SD1 which means mmc0, does anyone know how could we trace and fix this situation?
And below are more logs, hope they are helpful.
RTL871X: cfg80211_rtw_scan(wlan0)
RTL871X: cfg80211_rtw_scan(wlan0)
RTL871X: cfg80211_rtw_scan(wlan0)
RTL871X: cfg80211_rtw_scan(wlan0)
RTL871X: cfg80211_rtw_change_station(wlan0)
RTL871X: cfg80211_rtw_change_station(wlan0)
RTL871X: (2)871x_drv - drv_close, bup=1, hw_init_completed=1
RTL871X: update_mgnt_tx_rate(): rate = 2
RTL871X: HW_VAR_BASIC_RATE: BrateCfg(0x15f)
RTL871X: -871x_drv - drv_close, bup=1
RTL871X: cfg80211_rtw_change_iface(wlan0)
RTL871X: cfg80211_rtw_change_iface(wlan0) call netdev_open
RTL871X: +871x_drv - drv_open, bup=1
RTL871X: -871x_drv - drv_open, bup=1
RTL871X: cfg80211_rtw_change_iface(wlan0) old_iftype=6, new_iftype=2
RTL871X: module exit start
RTL871X: rtw_wdev_unregister(wdev=db177c00)
RTL871X: error wiphy compare
RTL871X: rtw_wdev_unregister(wdev=db5f1000)
RTL871X: rtw_unregister_early_suspend
RTL871X: rtw_pm_set_ips IPS_NONE
RTL871X: rtw_hal_disable_interrupt: Secondary adapter return l
RTL871X: exit rtl8188es_xmit_thread
RTL871X: rtw_sta_flush(wlan0)
RTL871X: ### Clean STA_(1) info
RTL871X: exit rtl8188es_xmit_thread
RTL871X: +r871xu_dev_remove, hw_init_completed=1
RTL871X: rtw_wdev_free(wdev=db177c00)
RTL871X: rtw_unregister_early_suspend
RTL871X: rtw_wdev_free(wdev=db5f1000)
RTL871X: <3>sdio_deinit: sdio_disable_func(-5)
RTL871X: <3>sdio_deinit: sdio_release_irq(-110)
RTL871X: module exit success
RTL871X: module init start version:v4.1.8_9499.20131104
RTL871X: rtl8189es driver version=v4.1.8_9499.20131104
RTL871X: build time: Jun 3 2014 18:13:42
rtl8189es: probe of mmc2:0001:1 failed with error -110
RTL871X: module init ret=0
RTL871X: module exit start
RTL871X: module exit success
Hi Tsung-Fang
please look below
(one can test SDHCI_QUIRK_NO_HISPD_BIT, SDHCI_QUIRK_FORCE_1_BIT_DATA
seetings)
https://community.freescale.com/message/409934#409934
Best regards
chip