]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci-msm: Make tuning block table endian agnostic
authorStephen Boyd <sboyd@codeaurora.org>
Mon, 22 Sep 2014 19:26:09 +0000 (12:26 -0700)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 23 Sep 2014 07:05:28 +0000 (09:05 +0200)
commit880e1aeb5f02a55c3792c13883473103f6a779fb
tree6c1ce71029c2ac9754766ab16ce3818bb175a19d
parentf93b8cd40764d699a99e0390ee80235b7321dbd7
mmc: sdhci-msm: Make tuning block table endian agnostic

If we're tuning on a big-endian CPU we'll never determine we properly
tuned the device because we compare the data we received from the
controller with a table that assumes the CPU is little-endian.
Change the table to be an array of bytes instead of 32-bit words
so we can use memcmp() without needing to byte-swap every word
depending on the endianess of the CPU.

Cc: Asutosh Das <asutoshd@codeaurora.org>
Cc: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Reviewed-by: Georgi Djakov <gdjakov@mm-sol.com>
Fixes: a39339fb9e3b "mmc: sdhci-msm: Add platform_execute_tuning implementation"
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c