iMX31 and 88W8686 SDIO module
claud_yu
claud_yu at yahoo.com.tw
Fri Apr 25 06:50:45 EDT 2008
> Okay, good news: the interrupt handling seems to work.
>
> > libertas thread: interrupt: 0x1
> > libertas host: PREP_CMD: wait for response
> > libertas enter: if_sdio_card_to_host():258
> > libertas thread: packet size (50 bytes) from firmware
>
> Here the code says that there are 50 bytes for us.
>
> > libertas thread: packet of type 1 and size 0 bytes
>
> And now this has suddenly reduced to 0 bytes. Something
> must be
> wrong here. Maybe add lbs_dump_hex() around this lines to
> find
> the cause.
Do you mean lbs_deb_hex() ? I add lbs_deb_hex() to dump the buffer after sdio_readsb() and get following log
--------------------------------
libertas thread: interrupt: 0x2
libertas leave: if_sdio_interrupt():856, ret 0
libertas enter: if_sdio_interrupt():822
libertas thread: interrupt: 0x1
libertas enter: if_sdio_card_to_host():258
libertas thread: packet size (50 bytes) from firmware
libertas CARD_BUF: 00 00 01 00 03 80 2e 00 02 00 00 00 02 00 11 00
libertas CARD_BUF: 08 00 40 00 00 19 88 05 39 58 40 00 01 00 03 46
libertas CARD_BUF: 09 12 00 00 00 00 00 00 00 00 00 00 00 00 03 03
libertas CARD_BUF: 00 00
libertas thread: packet of type 1 and size 0 bytes
libertas thread: packet fragment (0 < 50)
libertas enter: if_sdio_handle_cmd():135
libertas thread: response packet too large (-4 bytes)
libertas leave: if_sdio_handle_cmd():164, ret -7
libertas: problem fetching packet from firmware
libertas leave: if_sdio_card_to_host():347, ret -7
libertas leave: if_sdio_interrupt():856, ret -7
--------------------------------
I don't know the relation between chunk size read from scratch register and data from sdio_readsb(). Does those should be the same ?
Claud Yu
_________________________________________________________________________________________________________
生活有問題?問大家,不如找知識 +,還可抽 MacBook Air http://ksk.search.yahoo.net/index.asp?WT.mc_id=023
More information about the libertas-dev
mailing list