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>2020-02-09 22:42:31 +0100
commit57d1ad52a5ed436b0519e8e3bd2e634d47a6d9d8 (patch)
tree70de1ea08fa015bc9011c06dbed5b061d84e7088 /drivers/extcon
parentf6d1b24b135e2c66fb376743e5951114ddb6ecb7 (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/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 9c925b05b7aa..24c81aa3be6c 100644
--- a/drivers/extcon/extcon-usb-gpio.c
+++ b/drivers/extcon/extcon-usb-gpio.c
@@ -28,7 +28,7 @@
#include <linux/workqueue.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;