This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Always timeout even a response generated by a SDIO device

Other Parts Discussed in Thread: AM3715

I have a board that connect a Marvell 88WM8686 (WIFI module) to AM3715 through the MMC2 interface in SDIO mode. When the AM3715 MMC controller issues a CMD5 to the WIFI module, it always returns with a timeout (the CTO bit of the status register always set). From the AM3715 datasheet, it states as below:

When I capture the waveform by a logic analyzer, I found that the wifi module generates a response exactly at the 5th clock and ends at  53th clock after the end bit of CMD5. Does it mean this will result in timeout? If yes, the repsonse must be received from 6 clocks to 64 clocks or the timeout error will be generated.

If this is the case, is there any suggestion to fix the problem?

Regards,

Colman

 

 

 

  • I have fix the timeout problem by enabling the input function of AM3715's mmc clk pin. It can proble the 88WM8686 wifi. But when I execute a "iwlist wlan0 scan", the libertas driver report a command 0x0006 timed out, below is the logged message:

    root@dm3730-am3715-evm:~# ifconfig
    lo        Link encap:Local Loopback
              inet addr:127.0.0.1  Mask:255.0.0.0
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    wlan0     Link encap:Ethernet  HWaddr 00:0B:6C:C4:17:C3
              UP BROADCAST MULTICAST  MTU:1500  Metric:1
              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000
              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

    root@dm3730-am3715-evm:~# cd /usr/test/
    root@dm3730-am3715-evm:/usr/test# ./iwlist wlan0 scan
    libertas: command 0x0006 timed out
    libertas: requeueing command 0x0006 due to timeout (#1)
    libertas: Received result 0 to command 6 after 1 retries
    libertas: command 0x0006 timed out
    libertas: requeueing command 0x0006 due to timeout (#1)
    wlan0     Failed to read scan data : Resource temporarily unavailable

    Does anyone know what the problem is?

    By the way, I am using the driver that come with the AM3715 Linux kernel SDK.

    Regards,

    Colman