mmc: sdhci: put together into one condition checking
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 7 Oct 2016 05:08:43 +0000 (14:08 +0900)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:48 +0000 (15:36 -0500)
commitfc0f96c61a97ed7ae3ff368f4a9732647897643c
treea26217a2cf74b84d7a8aebd3d981965dd6d1f47f
parent7061c2e5dba85cdcd8a855301352f20236ad3497
mmc: sdhci: put together into one condition checking

value of ios->timing is not related with SDCHI v3.0.  If Controller version
is v3.0, SDHCI_QUIRK_NO_HISPD_BIT is meaningless.  To prevent the setting
wrong bit moves into one condition checking.  (e.g sdhci-s3c doesn't use
SDHCI_CTRL_HISPD bit, instead using this bit as other purpose.)

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
(cherry picked from commit 273c5414e3a4465733fa55c9070692c724bf6726)
drivers/mmc/host/sdhci.c