]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mmc: fsl_esdhc: Implement card-detect hook.
authorThierry Reding <thierry.reding@avionic-design.de>
Mon, 2 Jan 2012 01:15:38 +0000 (01:15 +0000)
committerAndy Fleming <afleming@freescale.com>
Mon, 9 Jan 2012 03:28:28 +0000 (21:28 -0600)
commitd48d2e21d4cec0f1ae70287a6d32413d3262675c
tree3915d4d4cecf7465cea830032f312d013b84823a
parent48972d907a28de17c2a5108a3ee3d5f3eb434376
mmc: fsl_esdhc: Implement card-detect hook.

This card-detect hook probably doesn't work. Perhaps somebody with more
knowledge about the hardware can comment on this. I think that perhaps
even the complete code from esdhc_init() could go into the getcd()
function instead or mmc_getcd() needs to be called at some later time
after mmc_init(), which, however, would require many other drivers to
change.

In addition to implementing the hook, this patch also removes the call
to the board_mmc_getcd() function which is now called from the MMC
framework and is no longer required here.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Tested-by: Jason Liu <jason.hui@linaro.org>
drivers/mmc/fsl_esdhc.c