]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00289406-1 mmc: sdhci: add quirk for get max timeout counter
authorDong Aisheng <b29396@freescale.com>
Fri, 22 Nov 2013 12:34:38 +0000 (20:34 +0800)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:18:00 +0000 (21:18 -0600)
commitb8258ae3d0b8b708539232ba0a69d12f0842c8e8
treee26827fb60d3568b61d63d914a29d1233c96a8bb
parent1fc2158934dc8e99c017dc0b9b00954ab6f31357
ENGR00289406-1 mmc: sdhci: add quirk for get max timeout counter

The max timeout counter of some SoCs like i.MX6 uSDHC may not be standard,
add SDHCI_QUIRK2_NOSTD_TIMEOUT_COUNTER quirk to get the correct max timeout
counter from platform specific code.
Then we can calculate the correct max_discard_to value.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 0469c7c4c683547f7923fb54882f681ad6d23ca8)
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h
include/linux/mmc/sdhci.h