mmc: tegra: Abort tuning if device is removed
authorJeetesh Burman <jburman@nvidia.com>
Tue, 24 Mar 2015 17:46:48 +0000 (22:46 +0530)
committerMatthew Pedro <mapedro@nvidia.com>
Mon, 4 May 2015 20:46:42 +0000 (13:46 -0700)
commit0bb08ee76692a7ded9fb063b3bd77e1848658ced
treeb8e6364e4fe4d2366a28f07945b3e7cb4a5a416a
parent28c9354b7cbade8813e0e5dbe9937300219fbeb9
mmc: tegra: Abort tuning if device is removed

For removable devices, check for the card presence status before
issuing each tuning command. If the device is removed, abort tuning
and return -ENOMEDIUM error.

bug 1625262

Change-Id: I19d5dfe8e8bf4b9fc7ecc2c00cdfa01343012e68
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-on: http://git-master/r/398855
(cherry picked from commit 6e82d03dca5b421138e1c4f348efee71df2a865f)
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/721906
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>
drivers/mmc/host/sdhci-tegra.c