summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-09-24 11:26:09 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-09-24 11:26:09 +0200
commit918089c5e0964f64ebf218afaca1162bece914c3 (patch)
tree0f94779546607f5f5ac6ba0c8ed6431df5a8de12
parentebe1dd6b941633ac514328a718ac8bc3cb1b1fe6 (diff)
extcon: usb-gpio: increase debounce time
Testing on Colibri Evaluation board V3.x has shown even 50 ms not being enough to avoid unloading and immediately reloading the EHCI USB host controller driver upon OTG cable removal which is of course suboptimal. This patch increases it to 100 ms which should leave enough safety margin.
-rw-r--r--drivers/extcon/extcon-usb-gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/extcon/extcon-usb-gpio.c b/drivers/extcon/extcon-usb-gpio.c
index 3f0bad3ce8aa..f6d03457f04a 100644
--- a/drivers/extcon/extcon-usb-gpio.c
+++ b/drivers/extcon/extcon-usb-gpio.c
@@ -25,7 +25,7 @@
#include <linux/slab.h>
#include <linux/workqueue.h>
-#define USB_GPIO_DEBOUNCE_MS 20 /* ms */
+#define USB_GPIO_DEBOUNCE_MS 100 /* ms */
struct usb_extcon_info {
struct device *dev;