mmc: extend the slot-gpio card-detection to use host's .card_event() method
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Tue, 4 Dec 2012 15:51:36 +0000 (16:51 +0100)
committerChris Ball <cjb@laptop.org>
Fri, 7 Dec 2012 18:55:50 +0000 (13:55 -0500)
commit451c89578eb4791b9d329eb71a79e6715e60f89e
tree0c351375c3a47fa7791d3d8b2ff383f663a136eb
parent9f1fb60a2338aa2202ca94d67f84c582f31dbf5a
mmc: extend the slot-gpio card-detection to use host's .card_event() method

The slot-gpio API provides a generic card-detection handler. To support a
wider range of hosts it has to call the host's card-event callback, if
implemented. Also increase the debounce interval to 200ms to match the
SDHCI driver.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Reviewed-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/slot-gpio.c