From 2e47130cf7e4a0aebca31ebdd74e3c52deadf53b Mon Sep 17 00:00:00 2001 From: Viswanath Puttagunta Date: Thu, 8 Dec 2011 14:48:04 -0600 Subject: omap-hsmmc: Increase debounce for SD card insert Increasing debounce time for SD card insert. Without this, we are seeing erroneous card insert detect interrupts coming in even while removal of SD card. Change-Id: I1e8fcaec22f438708fe40db2871a4ab565bfb9a5 Signed-off-by: Viswanath Puttagunta --- drivers/mfd/twl6030-irq.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'drivers/mfd') diff --git a/drivers/mfd/twl6030-irq.c b/drivers/mfd/twl6030-irq.c index 6148633..da60cd6 100644 --- a/drivers/mfd/twl6030-irq.c +++ b/drivers/mfd/twl6030-irq.c @@ -346,8 +346,9 @@ int twl6030_mmc_card_detect_config(void) return ret; } - ret = twl_i2c_write_u8(TWL6030_MODULE_ID0, MMC_MEXT_DEB_MASK, - TWL6030_MMCDEBOUNCING); + ret = twl_i2c_write_u8(TWL6030_MODULE_ID0, + (MMC_MINS_DEB_MASK | MMC_MEXT_DEB_MASK), + TWL6030_MMCDEBOUNCING); if (ret < 0){ pr_err("twl6030: Failed to write MMC_MEXT_DEB_MASK %d\n", ret); -- cgit v1.1