]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdhci: add hooks for platform specific tuning
authorDong Aisheng <b29396@freescale.com>
Fri, 13 Sep 2013 11:11:30 +0000 (19:11 +0800)
committerChris Ball <cjb@laptop.org>
Thu, 26 Sep 2013 11:53:21 +0000 (07:53 -0400)
commit5cc07b1a48cb2cfadaf72db8e65134bd2ea74b62
tree78de589e5f22571e1421fb7bd1d8758977455f7e
parent0fea76410e333a9ffd62e826f43b84d3b67ba0d4
mmc: sdhci: add hooks for platform specific tuning

The tuning of some platforms may not follow the standard host control
spec v3.0, e.g. Freescale uSDHC on i.MX6Q/DL.
Add a hook here to allow execute platform specific tuning instead of
standard host controller tuning.

The hook only replaces the tuning process, so it's placed after tuning
checking and before the real tuning process.

Some notes for the tuning hook:
1) it needs handle lock itself if it wants to access host controller
according platform specific implementation.
2) do not need to handle runtime pm since it executes with runtime pm
get already.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h