summaryrefslogtreecommitdiff
path: root/drivers/extcon
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-09-24 11:26:09 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-01-10 23:11:52 +0100
commitcec9878838472ce8fedad917b949a6cc8843af4c (patch)
tree2641e46790d5a8e100e3a5f321daea24b27831c9 /drivers/extcon
parentad4081e687b53b220ab10d24c778d23bc7acd6fe (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. Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com> (cherry picked from commit fc11c312c493c262a5f8a60d13e539862db3efd1)
Diffstat (limited to 'drivers/extcon')
-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 e45d1f13f445..f6bf758e4b38 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;