double wl1271 probe on dm3730

I’m a really newbie abaut linux and english... Ive a similar beagle board with a wl1271 connected to dm3730 by sdio. on mmc2
The first problem is that i have a 2.6.32 kernel release so i try to use the sdio funcion of the kernel 2.6.37.

I defined in my file board.c the follow code, copied from http://e2e.ti.com/support

static struct wl12xx_platform_data wl1271_data = {
.set_power = wl1271_wifi_power,
.irq = OMAP3EVM_WLAN_IRQ,
.use_eeprom = false,
.board_ref_clock = WL12XX_REFCLOCK_38,
.board_tcxo_clock = 0,
.platform_quirks = WL12XX_PLATFORM_QUIRK_EDGE_IRQ,
};

static struct regulator_consumer_supply omap3evm_vmmc2_supply =
REGULATOR_SUPPLY(“vmmc”, “mmci-omap-hs.1”);

static struct regulator_init_data omap3evm_vmmc2 = {
.constraints = {
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
},
.num_consumer_supplies = 1,
.consumer_supplies = &omap3evm_vmmc2_supply,
};

static struct fixed_voltage_config omap3evm_vwlan = {
.supply_name = “vwl1271”,
.microvolts = 3200000, /* 1.80V */
.gpio = OMAP3EVM_WLAN_EN,
.enable_high = 1,
.enabled_at_boot = 0,
.init_data = &omap3evm_vmmc2,
};

static struct platform_device omap3evm_wlan_regulator = {
.name = “reg-fixed-voltage”,
.id = 1,
.dev = {
.platform_data = &omap3evm_vwlan,
},
};

static void omap3_evm_init_wl12xx( void)
{
if (wl12xx_set_platform_data(&wl1271_data))
printk(“error setting wl12xx data\n”);
printk("–CARLO-- wl12xx_set_platform_data DONE\n");

}

static void __init wifi_power_init(void)
{
omap_mux_init_gpio(OMAP3EVM_WLAN_EN, OMAP_PIN_OUTPUT);
omap_mux_init_gpio(OMAP3EVM_WLAN_IRQ, OMAP_PIN_OUTPUT);
if (gpio_request(OMAP3EVM_WLAN_EN, “wlan_en”)) {
printk(KERN_ERR “Failed to request gpio OMAP3EVM_WLAN_EN\n”);
return;
}

printk("–CARLO-- wifi_power_init\n");

gpio_direction_output(OMAP3EVM_WLAN_EN, 1);
if (gpio_request(OMAP3EVM_WLAN_IRQ, “wlan_irq”)) {
printk(KERN_ERR “Failed to request gpio OMAP3EVM_WLAN_IRQ_GPIO\n”);
gpio_free(OMAP3EVM_WLAN_EN);
return;
}

platform_device_register(&omap3evm_wlan_regulator);

So, i add…

static struct twl4030_hsmmc_info mmc[] = {
{
.mmc = 1,
.wires = 4,
.gpio_cd = -EINVAL,
.gpio_wp = 63,
},

#ifdef WIFI_SES
{
.mmc = 2,
.wires = 4,
.gpio_cd = -EINVAL,
.gpio_wp = -EINVAL,
.ocr_mask = 0x00000080,
#ifndef CARLO
.name = “wl1271_wifi_sdio”,
.transceiver = true,
#endif
},
#endif
{} /* Terminator */
};

I also configure the mux…
OMAP3_MUX(SDMMC2_CLK, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
OMAP3_MUX(SDMMC2_CMD, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
OMAP3_MUX(SDMMC2_DAT0, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
OMAP3_MUX(SDMMC2_DAT1, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
OMAP3_MUX(SDMMC2_DAT2, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
OMAP3_MUX(SDMMC2_DAT3, OMAP_MUX_MODE0 | OMAP_PIN_INPUT_PULLUP),
OMAP3_MUX(UART3_CTS_RCTX, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
OMAP3_MUX(UART1_CTS, OMAP_MUX_MODE4 | OMAP_PIN_OUTPUT),
OMAP3_MUX(UART1_RTS, OMAP_MUX_MODE4 | OMAP_PIN_INPUT),

And i my omap3_evm_init i add…


omap3_evm_init_wl12xx();


#ifdef WIFI_SES
ret = gpio_request(OMAP3EVM_BT_EN, “WL1271_BT_EN”);
if (ret)
pr_warning(“OMAP3EVM_evm_init: can not open BT GPIO %d\n”,
OMAP3EVM_BT_EN);
gpio_direction_output(OMAP3EVM_BT_EN, 1);
udelay(1000);
gpio_direction_output(OMAP3EVM_BT_EN, 0);
gpio_free(OMAP3EVM_BT_EN);
wifi_power_init();
#endif

This is my dmesg

[ 5.222808] --CARLO-- device: ‘7:7’: device_add
[ 5.222839] loop: module loaded
[ 5.223541] --CARLO-- device: ‘twl4030_codec_audio’: device_add
[ 5.223541] --CARLO-- bus_probe_device bus platform driver twl4030_codec_audio
[ 5.224182] omap2-nand driver initializing
[ 5.224426] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron NAND 512MiB 1,8V 16-bit)
[ 5.224456] Creating 6 MTD partitions on “omap2-nand.0”:
[ 5.224456] 0x000000000000-0x000000080000 : “xloader-nand”
[ 5.224945] --CARLO-- device: ‘mtd0’: device_add
[ 5.225097] --CARLO-- device: ‘mtd0ro’: device_add
[ 5.225189] --CARLO-- device: ‘mtdblock0’: device_add
[ 5.225585] --CARLO-- device: ‘31:0’: device_add
[ 5.225616] 0x000000080000-0x000000240000 : “uboot-nand”
[ 5.226531] --CARLO-- device: ‘mtd1’: device_add
[ 5.226684] --CARLO-- device: ‘mtd1ro’: device_add
[ 5.226776] --CARLO-- device: ‘mtdblock1’: device_add
[ 5.227416] 0x000000240000-0x000000280000 : “params-nand”
[ 5.227752] --CARLO-- device: ‘mtd2’: device_add
[ 5.227905] --CARLO-- device: ‘mtd2ro’: device_add
[ 5.227996] --CARLO-- device: ‘mtdblock2’: device_add
[ 5.228210] 0x000000280000-0x000000780000 : “linux-nand”
[ 5.230407] --CARLO-- device: ‘mtd3’: device_add
[ 5.230590] --CARLO-- device: ‘mtd3ro’: device_add
[ 5.230651] --CARLO-- device: ‘mtdblock3’: device_add
[ 5.230895] 0x000000780000-0x000008780000 : “Appl-nand”
[ 5.283569] --CARLO-- device: ‘mtd4’: device_add
[ 5.283721] --CARLO-- device: ‘mtd4ro’: device_add
[ 5.283813] --CARLO-- device: ‘mtdblock4’: device_add
[ 5.284027] 0x000008780000-0x000020000000 : “jffs2-nand”
[ 5.438385] --CARLO-- device: ‘mtd5’: device_add
[ 5.438537] --CARLO-- device: ‘mtd5ro’: device_add
[ 5.438629] --CARLO-- device: ‘mtdblock5’: device_add
[ 5.439910] usbcore: registered new interface driver catc
[ 5.439941] catc: v2.8:CATC EL1210A NetMate USB Ethernet driver
[ 5.440063] usbcore: registered new interface driver cdc_ether
[ 5.440216] usbcore: registered new interface driver smsc95xx
[ 5.440368] usbcore: registered new interface driver rndis_host
[ 5.440490] usbcore: registered new interface driver cdc_subset
[ 5.440643] --CARLO-- wl1271_init
[ 5.440643] )
[ 5.440917] ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
[ 5.441101] ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
[ 5.441192] ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
[ 5.441284] ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
[ 5.453552] ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
[ 5.453643] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 5.453643] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.453674] usb usb1: Product: OMAP-EHCI Host Controller
[ 5.453674] usb usb1: Manufacturer: Linux 2.6.32 ehci_hcd
[ 5.453674] usb usb1: SerialNumber: ehci-omap.0
[ 5.454010] --CARLO-- device: ‘usb1’: device_add
[ 5.454010] --CARLO-- bus_probe_device bus usb driver usb1
[ 5.454254] --CARLO-- device: ‘1-0:1.0’: device_add
[ 5.454254] --CARLO-- bus_probe_device bus usb driver 1-0:1.0
[ 5.454284] hub 1-0:1.0: USB hub found
[ 5.454315] hub 1-0:1.0: 3 ports detected
[ 5.454376] --CARLO-- device: ‘ep_81’: device_add
[ 5.454559] --CARLO-- device: ‘usbdev1.1’: device_add
[ 5.454620] --CARLO-- device: ‘ep_00’: device_add
[ 5.484832] Initializing USB Mass Storage driver…
[ 5.485046] usbcore: registered new interface driver usb-storage
[ 5.485046] USB Mass Storage support registered.
[ 5.485107] g_ether gadget: using random self ethernet address
[ 5.485107] g_ether gadget: using random host ethernet address
[ 5.485443] --CARLO-- device: ‘usb0’: device_add
[ 5.485534] usb0: MAC 9a:d5:3d:ff:c6:ba
[ 5.485534] usb0: HOST MAC 92:9f:7d:f1:7b:b4
[ 5.485565] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[ 5.485595] g_ether gadget: g_ether ready
[ 5.485595] musb_hdrc musb_hdrc: MUSB HDRC host driver
[ 5.485626] musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 2
[ 5.485717] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 5.485717] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 5.485717] usb usb2: Product: MUSB HDRC host driver
[ 5.485748] usb usb2: Manufacturer: Linux 2.6.32 musb-hcd
[ 5.485748] usb usb2: SerialNumber: musb_hdrc
[ 5.486083] --CARLO-- device: ‘usb2’: device_add
[ 5.486083] --CARLO-- bus_probe_device bus usb driver usb2
[ 5.486297] --CARLO-- device: ‘2-0:1.0’: device_add
[ 5.486328] --CARLO-- bus_probe_device bus usb driver 2-0:1.0
[ 5.486328] hub 2-0:1.0: USB hub found
[ 5.486358] hub 2-0:1.0: 1 port detected
[ 5.486450] --CARLO-- device: ‘ep_81’: device_add
[ 5.486602] --CARLO-- device: ‘usbdev2.1’: device_add
[ 5.486694] --CARLO-- device: ‘ep_00’: device_add
[ 5.487030] --CARLO-- device: ‘input0’: device_add
[ 5.487030] input: TWL4030 Keypad as /devices/platform/i2c_omap.1/i2c-1/1-004a/twl4030_keypad/input/input0
[ 5.487243] --CARLO-- device: ‘event0’: device_add
[ 5.487243] evbug.c: Connected device: input0 (TWL4030 Keypad at twl4030_keypad/input0)
[ 5.488403] --CARLO-- device: ‘input1’: device_add
[ 5.488403] input: rotary-encoder as /devices/platform/rotary-encoder.0/input/input1
[ 5.488616] --CARLO-- device: ‘event1’: device_add
[ 5.488616] evbug.c: Connected device: input1 (rotary-encoder at unknown)
[ 5.489074] --CARLO-- device: ‘rtc0’: device_add
[ 5.489135] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 5.489257] twl_rtc twl_rtc: Power up reset detected.
[ 5.489532] twl_rtc twl_rtc: Enabling TWL-RTC.
[ 5.489959] i2c /dev entries driver
[ 5.490417] --CARLO-- device: ‘i2c-1’: device_add
[ 5.490631] --CARLO-- device: ‘i2c-2’: device_add
[ 5.490814] --CARLO-- device: ‘i2c-3’: device_add
[ 5.491302] --CARLO-- device: ‘watchdog’: device_add
[ 5.491333] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 5.491424] Bluetooth: Virtual HCI driver ver 1.3
[ 5.491638] --CARLO-- device: ‘vhci’: device_add
[ 5.491638] Bluetooth: HCI UART driver ver 2.2
[ 5.491638] Bluetooth: HCI H4 protocol initialized
[ 5.491668] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[ 5.491973] cpuidle: using governor ladder
[ 5.491973] cpuidle: using governor menu
[ 5.492218] sdhci: Secure Digital Host Controller Interface driver
[ 5.492218] sdhci: Copyright© Pierre Ossman
[ 5.493865] --CARLO-- device: ‘mmc0’: device_add
[ 5.602722] --CARLO-- device: ‘mmc1’: device_add
[ 5.603515] Skipping unavailable LED gpio -22 (omap3evm::ledb)
[ 5.603546] leds-gpio: probe of leds-gpio failed with error -16
[ 5.604125] usbcore: registered new interface driver usbhid
[ 5.604156] usbhid: USB HID core driver
[ 5.604309] Advanced Linux Sound Architecture Driver Version 1.0.21.
[ 5.604583] --CARLO-- device: ‘timer’: device_add
[ 5.604797] usbcore: registered new interface driver snd-usb-audio
[ 5.682769] No device for DAI omap-mcbsp-dai-0
[ 5.682769] No device for DAI omap-mcbsp-dai-1
[ 5.682800] No device for DAI omap-mcbsp-dai-2
[ 5.682800] No device for DAI omap-mcbsp-dai-3
[ 5.682800] No device for DAI omap-mcbsp-dai-4
[ 5.682800] OMAP3 EVM SoC init
[ 5.683013] --CARLO-- device: ‘soc-audio’: device_add
[ 5.683013] --CARLO-- bus_probe_device bus platform driver soc-audio
[ 5.683044] No device for DAI wl1271bt
[ 5.683471] asoc: twl4030 <-> omap-mcbsp-dai-0 mapping ok
[ 5.683868] asoc: wl1271bt <-> omap-mcbsp-dai-1 mapping ok
[ 5.685241] --CARLO-- device: ‘card0’: device_add
[ 5.685455] --CARLO-- device: ‘pcmC0D1p’: device_add
[ 5.685638] --CARLO-- device: ‘pcmC0D1c’: device_add
[ 5.685791] --CARLO-- device: ‘pcmC0D0p’: device_add
[ 5.685974] --CARLO-- device: ‘pcmC0D0c’: device_add
[ 5.686126] --CARLO-- device: ‘controlC0’: device_add
[ 5.686431] ALSA device list:
[ 5.686431] #0: omap3evm (twl4030)
[ 5.686523] TCP cubic registered
[ 5.686553] NET: Registered protocol family 17
[ 5.686584] NET: Registered protocol family 15
[ 5.686614] Bluetooth: L2CAP ver 2.14
[ 5.686614] Bluetooth: L2CAP socket layer initialized
[ 5.686614] Bluetooth: SCO (Voice Link) ver 0.6
[ 5.686645] Bluetooth: SCO socket layer initialized
[ 5.686676] lib80211: common routines for IEEE802.11 drivers
[ 5.686676] lib80211_crypt: registered algorithm ‘NULL’
[ 5.687347] Power Management for TI OMAP3.
[ 5.692962] Compensating OPP4 for 63mV Orig nvalue:0xaab2a1 New nvalue:0xaaa090
[ 5.692962] Compensating OPP3 for 63mV Orig nvalue:0xaae1c6 New nvalue:0xaac5ad
[ 5.692993] Compensating OPP2 for 50mV Orig nvalue:0x999684 New nvalue:0x9a82e5
[ 5.692993] Compensating OPP1 for 50mV Orig nvalue:0x898afa New nvalue:0x99d9c2
[ 5.693084] SmartReflex driver initialized
[ 5.695648] Disabling unused clock “sr2_fck”
[ 5.695770] Disabling unused clock “sr1_fck”
[ 5.695770] Disabling unused clock “mcbsp_fck”
[ 5.695800] Disabling unused clock “mcbsp_fck”
[ 5.695800] Disabling unused clock “mcbsp_fck”
[ 5.695800] Disabling unused clock “mcbsp_ick”
[ 5.695831] Disabling unused clock “mcbsp_ick”
[ 5.695831] Disabling unused clock “mcbsp_ick”
[ 5.695831] Disabling unused clock “gpt2_ick”
[ 5.695861] Disabling unused clock “gpt3_ick”
[ 5.695861] Disabling unused clock “gpt4_ick”
[ 5.695861] Disabling unused clock “gpt5_ick”
[ 5.695892] Disabling unused clock “gpt6_ick”
[ 5.695892] Disabling unused clock “gpt7_ick”
[ 5.695892] Disabling unused clock “gpt8_ick”
[ 5.695922] Disabling unused clock “gpt9_ick”
[ 5.695922] Disabling unused clock “wdt3_ick”
[ 5.695922] Disabling unused clock “wdt3_fck”
[ 5.695953] Disabling unused clock “gpio2_dbck”
[ 5.695953] Disabling unused clock “gpio3_dbck”
[ 5.695953] Disabling unused clock “gpio4_dbck”
[ 5.695983] Disabling unused clock “gpio5_dbck”
[ 5.695983] Disabling unused clock “gpio6_dbck”
[ 5.695983] Disabling unused clock “gpt9_fck”
[ 5.696014] Disabling unused clock “gpt8_fck”
[ 5.696014] Disabling unused clock “gpt7_fck”
[ 5.696014] Disabling unused clock “gpt6_fck”
[ 5.696044] Disabling unused clock “gpt5_fck”
[ 5.696044] Disabling unused clock “gpt4_fck”
[ 5.696044] Disabling unused clock “gpt3_fck”
[ 5.696075] Disabling unused clock “gpt2_fck”
[ 5.696075] Disabling unused clock “gpt12_ick”
[ 5.696075] Disabling unused clock “wdt1_ick”
[ 5.696105] Disabling unused clock “gpio1_dbck”
[ 5.696105] Disabling unused clock “cam_ick”
[ 5.696136] Disabling unused clock “cam_mclk”
[ 5.696166] Disabling unused clock “dss_ick”
[ 5.696197] Disabling unused clock “dss_96m_fck”
[ 5.696197] Disabling unused clock “dss1_alwon_fck”
[ 5.696228] Disabling unused clock “des1_ick”
[ 5.696258] Disabling unused clock “sha11_ick”
[ 5.696258] Disabling unused clock “rng_ick”
[ 5.696258] Disabling unused clock “aes1_ick”
[ 5.696258] Disabling unused clock “ssi_ick”
[ 5.696289] Disabling unused clock “mailboxes_ick”
[ 5.696289] Disabling unused clock “mcbsp_ick”
[ 5.696289] Disabling unused clock “mcbsp_ick”
[ 5.696319] Disabling unused clock “gpt10_ick”
[ 5.696319] Disabling unused clock “gpt11_ick”
[ 5.696350] Disabling unused clock “hdq_ick”
[ 5.696350] Disabling unused clock “mspro_ick”
[ 5.696350] Disabling unused clock “des2_ick”
[ 5.696380] Disabling unused clock “sha12_ick”
[ 5.696380] Disabling unused clock “aes2_ick”
[ 5.696380] Disabling unused clock “icr_ick”
[ 5.696411] Disabling unused clock “pka_ick”
[ 5.696411] Disabling unused clock “ssi_ssr_fck”
[ 5.696411] Disabling unused clock “hdq_fck”
[ 5.696441] Disabling unused clock “mcbsp_fck”
[ 5.696441] Disabling unused clock “mcbsp_fck”
[ 5.696441] Disabling unused clock “mspro_fck”
[ 5.696472] Disabling unused clock “gpt11_fck”
[ 5.696472] Disabling unused clock “gpt10_fck”
[ 5.696472] Disabling unused clock “sad2d_ick”
[ 5.696502] Disabling unused clock “dpll4_m6x2_ck”
[ 5.696502] Disabling unused clock “dpll4_m3x2_ck”
[ 5.696533] Disabling unused clock “dpll3_m3x2_ck”
[ 5.696533] Disabling unused clock “sys_clkout1”
[ 5.696960] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 5.697448] --CARLO-- device: ‘cpu_dma_latency’: device_add
[ 5.697601] --CARLO-- device: ‘network_latency’: device_add
[ 5.697784] --CARLO-- device: ‘network_throughput’: device_add
[ 5.699279] twl_rtc twl_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 5.702270] VFS: Mounted root (cramfs filesystem) readonly on device 31:5.
[ 5.702331] Freeing init memory: 172K
[ 5.926239] --CARLO-- mmc attach_sdio ocr a0ffffc0
[ 5.926239] mmc1: card claims to support voltages below the defined range. These will be ignored.
[ 5.954406] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 5.955230] mmc1: new SDIO card at address 0001
[ 5.955505] --CARLO-- device: ‘mmc1:0001’: device_add
[ 5.955505] --CARLO-- bus_probe_device bus mmc driver mmc1:0001
[ 5.955566] --CARLO-- sdio_add_func
[ 5.955749] --CARLO-- device: ‘mmc1:0001:1’: device_add
[ 5.955780] --CARLO-- bus_probe_device bus sdio driver mmc1:0001:1
[ 5.955841] --CARLO-- wl1271_probe
[ 5.956085] --CARLO-- device: ‘wl1271’: device_add
[ 5.956115] --CARLO-- bus_probe_device bus platform driver wl1271
[ 5.956329] --CARLO-- device: ‘phy0’: device_add
[ 6.008514] phy0: Selected rate control algorithm ‘minstrel’
[ 6.009002] --CARLO-- device: ‘wlan0’: device_add
[ 6.009124] wl1271: loaded
[ 6.009399] wl1271: initialized
[ 6.009429] --CARLO-- sdio_add_func
[ 6.009643] --CARLO-- device: ‘mmc1:0001:2’: device_add
[ 6.009643] --CARLO-- bus_probe_device bus sdio driver mmc1:0001:2
[ 6.009735] --CARLO-- wl1271_probe
[ 6.009765] request_irq() failed: -16
[ 6.009796] wl1271_sdio: probe of mmc1:0001:2 failed with error -16
[ 6.155975] g_ether gadget: high speed config #2: RNDIS
[ 6.156005] musb_hdrc periph: enabled ep2in for int IN, maxpacket 8
[ 6.156005] musb_hdrc periph: enabled ep1in for bulk IN, maxpacket 512
[ 6.156036] musb_hdrc periph: enabled ep1out for bulk OUT, maxpacket 512

root:~# ifconfig -a
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)

usb0 Link encap:Ethernet HWaddr 9A:D5:3D:FF:C6:BA
inet addr:192.168.1.21 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20 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:1799 (1.7 KiB) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 00:1F:DF:36:F9:FB
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:1799 (1.7 KiB) TX bytes:0 (0.0 B)

…the wl1271probe is calling 2 times… and naturally the second fail…

I don`t also understand (nothing) why when I try to configure the wlan interface i have non response from it. And the wake up of the wl1271 is never called…

Please help me

Which Beagleboard is this?

Gerald

Gerard,
Ive a dm3730 connect to the wl1271 by sdio on mmc2. I dont understand why the mmc scan give me 2 instance of my wl1271.
I work a lot on my kernel 2.6.32 for use it with the sdio function (2.6.32 have only spi drive).
But I haven`t touch the mmc driver…
At the prompt I dont control the interface…

So you are using a BeagleBone-xM. Correct? You need to let people know the exact board you are using so they can better help you.

Gerald

Carlo, take 3.0.17+ kernel. It works perfect with dm3730: 1ghz, dsp, wl1271. I have a custom bb-xm clone and everything works ad expected

lisarden,
I have a lot of change on my kernel 2.6.32 for other driver, so I dont want change my revision.

I manually transform the wl12xx driver for support the SDIO interface, with a probe for spi and a probe for sdio.
It seems run well, but I not so sure about it.

I dont apply the pm rumtime pacth but i dont think that is the problem.
Perhaps this cause that when I try to configure the interface there is non answer.

The kernel find the sdio card but when I read the ocr register on mmc1 the value is 0xa0ffffc0,
so the number of function to call are 2.
On this way there are two device add and two wl1271 probe called.

Thanks in advance