]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/mmc/core/sdio_io.c
sdio: fix the use of hard coded timeout value.
[mirror_ubuntu-artful-kernel.git] / drivers / mmc / core / sdio_io.c
index 3ccf6919877ca80cf7e92d9eed10fc942b96c78c..0888df64581f12b3200e7c4f1d61c120cffbd932 100755 (executable)
@@ -76,11 +76,7 @@ int sdio_enable_func(struct sdio_func *func)
        if (ret)
                goto err;
 
-       /*
-        * FIXME: This should timeout based on information in the CIS,
-        * but we don't have card to parse that yet.
-        */
-       timeout = jiffies + HZ;
+       timeout = jiffies + msecs_to_jiffies(func->enable_timeout);
 
        while (1) {
                ret = mmc_io_rw_direct(func->card, 0, 0, SDIO_CCCR_IORx, 0, &reg);