Skip to contentSkip to conversation

sdio sn8000 wifi module

DISCUSSION angelo 1 participant 1 message Feb 25, 2015 MMC, SD and SDIO

lore
Share & tools
lore

angelo

author
#0 lore raw

Dear all,

i am trying to have working this module with kernel 3.10 over sdio, 4 lines, high speed, on a imx6q.

The bcm43362 CHIP_ID is still missing in kernel 3.10 so i merged some small parts of 3.14 wifi drivers into 3.10.

Actually, seems this module does not reply to the SDIO probing commands, i am getting err 110 (time out).

Seems its failing here, into sdio_ops.c

int mmc_send_io_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr)

{
    struct mmc_command cmd = {0};
    int i, err = 0;

    BUG_ON(!host);

    cmd.opcode = SD_IO_SEND_OP_COND;
    cmd.arg = ocr;
    cmd.flags = MMC_RSP_SPI_R4 | MMC_RSP_R4 | MMC_CMD_BCR;

    for (i = 100; i; i--) {
Quoted 1 line
Quoted 1 line
Quoted 1 line
  err = mmc_wait_for_cmd(host, &cmd, MMC_CMD_RETRIES);
        if (err)
            break;

I checked trough oscilloscope, the command is sent but the recognize operation terminates in time out.

I am using device tree. usdhc controller is set as 4 lines SDIO.

Every help or suggestion is appreciated.

Many thanks,
angelo