summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2015-09-24 11:26:09 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-12-24 01:27:23 +0100
commit309f5bd6d4da60c6bbc084c86c91dbdc37c76657 (patch)
treebf9871668f382f43e199efb255e1c2b17db00423 /drivers
parent8c2a807447f6785f52608716a4a03f93ea76c9e6 (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) (cherry picked from commit cec9878838472ce8fedad917b949a6cc8843af4c)
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 d47573a31e17..4e6388236e17 100644
--- a/drivers/extcon/extcon-usb-gpio.c
+++ b/drivers/extcon/extcon-usb-gpio.c
@@ -29,7 +29,7 @@
#include <linux/acpi.h>
#include <linux/pinctrl/consumer.h>
-#define USB_GPIO_DEBOUNCE_MS 20 /* ms */
+#define USB_GPIO_DEBOUNCE_MS 100 /* ms */
struct usb_extcon_info {
struct device *dev;