From: James Hogan Date: Mon, 17 Nov 2014 17:49:05 +0000 (+0000) Subject: mmc: dw_mmc: avoid write to CDTHRCTL on older versions X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~28^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66dfd10173159cafa9cb0d39936b8daeaab8e3e0;p=pandora-kernel.git mmc: dw_mmc: avoid write to CDTHRCTL on older versions Commit f1d2736c8156 (mmc: dw_mmc: control card read threshold) added dw_mci_ctrl_rd_thld() with an unconditional write to the CDTHRCTL register at offset 0x100. However before version 240a, the FIFO region started at 0x100, so the write messes with the FIFO and completely breaks the driver. If the version id < 240A, return early from dw_mci_ctl_rd_thld() so as not to hit this problem. Fixes: f1d2736c8156 (mmc: dw_mmc: control card read threshold) Signed-off-by: James Hogan Cc: # v3.13+ Acked-by: Jaehoon Chung Signed-off-by: Ulf Hansson --- Reading git-diff-tree failed