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.

mmc2: error -22 whilst initialising SDIO card

Other Parts Discussed in Thread: WL1271

Hello all,

     I am trying to setup a wifi module (wl12xx) in MMC2 (mmc0, MMC1, MMC2) in AM335x, but I'm always getting the same  message:

[ 15.480617] mmc2: queuing unknown CIS tuple 0x0f (0 bytes)
[ 15.487081] mmc2: queuing unknown CIS tuple 0x03 (0 bytes)
[ 15.589693] mmc2: queuing unknown CIS tuple 0x01 (0 bytes)
[ 15.595537] mmc2: queuing unknown CIS tuple 0x10 (0 bytes)
[ 15.601843] mmc2: queuing unknown CIS tuple 0x04 (0 bytes)
[ 15.610737] mmc2: queuing unknown CIS tuple 0x3f (0 bytes)
[ 15.703955] mmc2: queuing unknown CIS tuple 0x04 (0 bytes)
[ 15.710504] mmc2: queuing unknown CIS tuple 0x01 (0 bytes)
[ 15.717756] mmc2: queuing unknown CIS tuple 0x3f (0 bytes)
[ 15.811368] mmc2: queuing unknown CIS tuple 0x04 (0 bytes)

[ 18.602396] mmc2: error -22 whilst initialising SDIO card

I checked all the signs as suggested in:

processors.wiki.ti.com/.../WL18xx_Platform_Integration_Guide

My device tree:

mmc3_pins: pinmux_mmc3_pins {

    pinctrl-single,pins = <
           0x74 (PIN_INPUT_PULLUP | MUX_MODE7) /* gpmc_wpn.gpio0_31 */
           0x44 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a1.mmc2_dat0 */
           0x48 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a2.mmc2_dat1 */  
           0x4C (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_a3.mmc2_dat2 */
           0x78 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_ben1.mmc2_dat3 */
           0x88 (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_csn3.mmc2_cmd */
           0x8C (PIN_INPUT_PULLUP | MUX_MODE3) /* gpmc_clk.mmc2_clk */ 
    >;
};

wl12xx_gpio: pinmux_wl12xx_gpio {
     pinctrl-single,pins = <
           0x7c (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_csn0.gpio1_29 */
    >;
};

wl12xx_vmmc: fixedregulator@2 {
          pinctrl-names = "default";
          pinctrl-0 = <&wl12xx_gpio>;
          compatible = "regulator-fixed";
          regulator-name = "vwl1271";
          regulator-min-microvolt = <3300000>;
          regulator-max-microvolt = <3300000>;
          gpio = <&gpio1 29 0>;
          startup-delay-us = <70000>;
          enable-active-high;
};

&edma {
          ti,edma-xbar-event-map = /bits/ 16 <1 12
                                                                    2 13>;
};

&mmc3 {
           /*these are on the crossbar and are outlined in the
             xbar-event-map element */
           dmas = <&edma 12
                          &edma 13>;
            dma-names = "tx", "rx";
             status = "okay";
             vmmc-supply = <&wl12xx_vmmc>;
             bus-width = <4>;
             pinctrl-names = "default";
             pinctrl-0 = <&mmc3_pins>;
             ti,dual-volt;
             ti,non-removable;
             cap-power-off-card;
             keep-power-in-suspend;
};

Any error in my configuration?
This error may be hardware?

I'm using the kernel by Robert Nelson. eewiki.net/.../BeagleBone+Black

Thanks

Fabio