]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9842d3f52a663d5390685b22f174e68667c8f081
tree0c351375c3a47fa7791d3d8b2ff383f663a136eb
parent4091b359f5f81c4f99292ea5d94b408b34be5e9c
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