]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
mmc: host: Handle re-tuning request event
authorR Raj Kumar <rrajk@nvidia.com>
Tue, 25 Mar 2014 13:22:00 +0000 (18:52 +0530)
committerPavan Kunapuli <pkunapuli@nvidia.com>
Tue, 5 May 2015 21:06:12 +0000 (14:06 -0700)
Handled the re-tuning request event when Data or
Command CRC errors are seen during data transfers by
enabling RETUNING flag in the host.

Bug 1462358

Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: http://git-master/r/386337
(cherry picked from commit a2b9a94e2e20c1a8de3366c3334e4ca392b2b220)
Change-Id: Id2b5671dfeccc52eb474adbf00d5f5d69471e960
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/739277
Reviewed-by: Automatic_Commit_Validation_User
drivers/mmc/host/sdhci.c

index 09b54621cae7c0f39dd774807c36db8da668fdb4..183349db367b41385d660bb7a4a4812a29668a43 100644 (file)
@@ -2848,6 +2848,9 @@ static irqreturn_t sdhci_irq(int irq, void *dev_id)
                        if (host->ops->sd_error_stats)
                                host->ops->sd_error_stats(host, intmask);
 
+               if (intmask & SDHCI_INT_RETUNING_EVENT)
+                       host->flags |= SDHCI_NEEDS_RETUNING;
+
                if (intmask & SDHCI_INT_CMD_MASK)
                        sdhci_cmd_irq(host, intmask & SDHCI_INT_CMD_MASK,
                                      &intmask);