From 2d0db57166a8e966cafd9435bd67e50f53c7cf6b Mon Sep 17 00:00:00 2001 From: Rakesh Bodla Date: Thu, 23 Jan 2014 16:35:08 +0530 Subject: usb: otg: tegra: add delay for y-cable detection Sometimes id status is not reflected immediately after connect y-cable connection. Adding dealy for proper detection. Bug 1375608 Bug 1439649 Change-Id: Ice38bcbc19ba6242820ff38a676b9b7e6fdeef72 Signed-off-by: Rakesh Bodla Reviewed-on: http://git-master/r/359338 (cherry picked from commit b3eba21a230eef069b7fb7c789ac1fa5cfd417d4) Reviewed-on: http://git-master/r/360202 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Venkat Moganty --- drivers/usb/otg/tegra-otg.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/usb/otg/tegra-otg.c b/drivers/usb/otg/tegra-otg.c index df4806a5c6b5..1e7d2957f81b 100644 --- a/drivers/usb/otg/tegra-otg.c +++ b/drivers/usb/otg/tegra-otg.c @@ -3,7 +3,7 @@ * * OTG transceiver driver for Tegra UTMI phy * - * Copyright (C) 2010-2013 NVIDIA CORPORATION. All rights reserved. + * Copyright (C) 2010-2014 NVIDIA CORPORATION. All rights reserved. * Copyright (C) 2010 Google, Inc. * * This program is free software; you can redistribute it and/or modify it @@ -316,6 +316,9 @@ static void irq_work(struct work_struct *work) unsigned long flags; unsigned long status; + /* Adding delay for proper detection of y-cable */ + msleep(150); + mutex_lock(&tegra->irq_work_mutex); spin_lock_irqsave(&tegra->lock, flags); -- cgit v1.2.3