summaryrefslogtreecommitdiff
path: root/sta_dk_4_0_4_32/pform/linux
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2009-07-30 11:40:22 -0700
committerDmitry Shmidt <dimitrysh@google.com>2009-07-30 11:40:22 -0700
commit05b011d3cd04f6b16c5d97a23d52d79e0716cf57 (patch)
tree7add164c8cdc40ae7f61852fce7338ef7bc3386a /sta_dk_4_0_4_32/pform/linux
parent899e73ea04542662999c77a0ffa125c3f96bd879 (diff)
downloadti-05b011d3cd04f6b16c5d97a23d52d79e0716cf57.tar.gz
Release host before sdio_reset_comm()
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Diffstat (limited to 'sta_dk_4_0_4_32/pform/linux')
-rw-r--r--sta_dk_4_0_4_32/pform/linux/src/tnetw_sdio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sta_dk_4_0_4_32/pform/linux/src/tnetw_sdio.c b/sta_dk_4_0_4_32/pform/linux/src/tnetw_sdio.c
index 51171d5..082cbae 100644
--- a/sta_dk_4_0_4_32/pform/linux/src/tnetw_sdio.c
+++ b/sta_dk_4_0_4_32/pform/linux/src/tnetw_sdio.c
@@ -107,8 +107,11 @@ SDIO_Status SDIO_Reset(SDIO_Handle Handle)
{
struct sdio_func *func = (struct sdio_func *)Handle;
- if(func && func->card)
+ if (func && func->card) {
+ sdio_release_host(func);
sdio_reset_comm(func->card);
+ sdio_claim_host(func);
+ }
return SDIO_SUCCESS;
}