]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
mmc: sdhci: Increase SW time out value for sanitize command.
authorNaveen Kumar Arepalli <naveenk@nvidia.com>
Wed, 20 Jan 2016 05:36:55 +0000 (11:06 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 27 Jan 2016 19:43:28 +0000 (11:43 -0800)
->As per eMMC part data sheet, worst case time out value for
sanitize command is 8 mins.
->Increase SW time out value to 600 seconds for
sanitize command.

Bug 200137087

Change-Id: Ia7397cdb93542f16f4041ff388501f534ecaf56c
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/934880
(cherry picked from commit 0c22e4fdd465585d0253f946fc57fd96de09f0ee)
Reviewed-on: http://git-master/r/936929
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
drivers/mmc/host/sdhci.c

index a2eb2cdd9bed295b1b34ef885e7546d97b983e4c..f815513e609205673cb57a4e0ec12eb0c19a5efb 100644 (file)
@@ -2,7 +2,7 @@
  *  linux/drivers/mmc/host/sdhci.c - Secure Digital Host Controller Interface driver
  *
  *  Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved.
- *  Copyright (C) 2012-2015, NVIDIA CORPORATION.  All rights reserved.
+ *  Copyright (C) 2012-2016, NVIDIA CORPORATION.  All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -1495,7 +1495,7 @@ static void sdhci_send_command(struct sdhci_host *host, struct mmc_command *cmd)
        if ((cmd->opcode == MMC_SWITCH) &&
                (((cmd->arg >> 16) & EXT_CSD_SANITIZE_START)
                == EXT_CSD_SANITIZE_START))
-               timeout = 100;
+               timeout = 600;
        else
                timeout = 30;