mmc: tegra: Use first valid full win for negative margins
authorPavan Kunapuli <pkunapuli@nvidia.com>
Mon, 3 Feb 2014 07:38:56 +0000 (12:38 +0530)
committerWinnie Hsu <whsu@nvidia.com>
Fri, 16 May 2014 22:58:07 +0000 (15:58 -0700)
commit322b2bd6c21d2bf7c4e7d9d2a42825c141d00f1f
tree8f129712368bb0b19ce33cb24d1d5a38351f98c7
parentc45b56e3fabee43c028b511b8d3746720a669223
mmc: tegra: Use first valid full win for negative margins

For negative margin calculations, use the first valid full window
in the first valid UI if Avg UI is found.
If Avg UI is not found, use first and second full windows to determine
the negative margin.
During negative margin calculation, marking each step as boundary.

Bug 1423429

Change-Id: I85cc57b1038bbce314d5bd89ef8aace117bdd8fe
Signed-off-by: Pavan Kunapuli <pkunapuli@nvidia.com>
(cherry picked from commit f3173ecf17d34644e482846d756e73fc67d9e7fa)
Reviewed-on: http://git-master/r/410195
GVS: Gerrit_Virtual_Submit
Reviewed-by: Shreshtha Sahu <ssahu@nvidia.com>
Tested-by: Shreshtha Sahu <ssahu@nvidia.com>
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/mmc/host/sdhci-tegra.c