summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-09-24 11:26:09 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2015-12-26 14:48:14 +0100
commitfc11c312c493c262a5f8a60d13e539862db3efd1 (patch)
tree0f71923674ba187fa2aba5d3cd79dbc67836e262 /drivers
parent2281809ab6b442b4f1671fe2189a2ec7585b74fa (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.
Diffstat (limited to 'drivers')
-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;