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.

SD Card Dead and SDIO -110 errors after "ifconfig tiwlan0 down"

Other Parts Discussed in Thread: OMAP3503

We are using Linux-2.6.32-ts-armv7l on a OMAP3503 SOM from LogicPD.

We are seeing a problem where doing "ifconfig tiwlan0 down" causes a problem with the SD Card. We first noticed this because issuing the down sometimes causes a number of error -110 messages and the SD card is dead. On a scope it appears that VMMC1 (BDDS_MMC1) drops to .6V from 3.8 leaving the SD card with no power. Here is a typical sample:

# ifconfig tiwlan0 down
hPlatform_DevicePowerOff
unplug_device
tiwlan_sdio_remove
mmc1: card 0001 removed
# Spurious DMA IRQ
mmcblk0: error -110 sending status comand
mmcblk0: error -110 sending read/write command, response 0x0, card status 0x0
mmcblk0: error -110 transferring data, sector 64, nr 1, card status 0x0
mmcblk0: error -110 requesting status
end_request: I/O error, dev mmcblk0, sector 64
Buffer I/O error on device mmcblk0p1, logical block 1
lost page write due to I/O error on mmcblk0p1

We can't bring the card back up without a reset. Here is where tiwlan is loaded at boot.

Loading ti-wilink wireless service
sdioDrv_init
setting SDIO F&I clock Configuration
done setting SDIO F&I clock Configuration
TI WiLink 1271 SDIO: Driver loaded
TI WLAN: driver loading
hPlatform_Wlan_Hardware_Init
wlan_muxcfg
setting GPIO PMENA_GPIO[3]=1
wifi_probe_irq
wifi_probe_irq: got wlan irq 162
wifi_probe_irq: got wlan irq trigger falling flag
hPlatform_DevicePowerOff
unplug_device
hPlatform_initInterrupt
 IRQ= 162 FLAGS= 2
TIWLAN: 3098.649189: pInitParams->RoamingScanning_2_4G_enable 0
hPlatform_DevicePowerOn
mmc1: card claims to support voltages below the defined range. These will be ignored.
mmc1: new SDIO card at address 0001
tiwlan_sdio_probe
tiwlan_sdio_probe called
TIWLAN: Found TI/WLAN SDIO controller (vendor 0x104c, device 0x9066, class 0x7)
TIWLAN: 3099.736835: CHIP VERSION... set 1273 chip top registers
TIWLAN: 3099.743915: Working on a 1273 PG 2.0 board.
TIWLAN: 3099.748706: Starting to process NVS...
TIWLAN: 3099.753040: NVS found, EEPROM Image addr=0xcde94e00, EEPROM Len=0x0x1d4
TIWLAN: 3099.760852: Chip ID is 0x4030111.
TIWLAN: 3099.765766: FEM Type 1
TIWLAN: 3099.862232: Firmware successfully downloaded.
TIWLAN: 3099.867145: FW download OK...
TIWLAN: 3099.894153: Firmware successfully downloaded.
TIWLAN: 3099.899067: FW download OK...
TIWLAN: 3099.903064: Firmware successfully downloaded.
TIWLAN: 3099.907978: FW download OK...
TIWLAN: 3099.919574: Firmware successfully downloaded.
TIWLAN: 3099.924488: FW download OK...
TIWLAN: 3099.932361: Firmware successfully downloaded.
TIWLAN: 3099.937275: FW download OK...
TIWLAN: 3099.942981: Finished downloading firmware.
TIWLAN: 3099.947742: Firmware running.
TIWLAN: 3099.951343: Starting to download firmware...
TIWLAN: 3099.987079:
TIWLAN: 3099.989154: --------------------------------------------------------------------
TIWLAN: 3099.997119: Driver Version  : WiLink_Driver_6.1.0.0.130
TIWLAN: 3100.002948: Firmware Version: Rev 6.1.0.0.313
TIWLAN: 3100.007831: Station ID      : 00-08-EE-04-53-29
TIWLAN: 3100.012928: --------------------------------------------------------------------
TIWLAN: 3100.020923:
## The tiwlan configration tool can use started using the following command:
wlan_cu -i/var/run/tiwlan0

Anyone have any ideas why "iwconfig tiwlan0 down" would crash my SD?

Thanks,

John