[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1359083551-8524-9-git-send-email-kishon@ti.com>
Date: Fri, 25 Jan 2013 08:42:31 +0530
From: Kishon Vijay Abraham I <kishon@...com>
To: <rob.herring@...xeda.com>, <rob@...dley.net>, <balbi@...com>,
<sameo@...ux.intel.com>, <gg@...mlogic.co.uk>, <s-guiriec@...com>,
<broonie@...nsource.wolfsonmicro.com>, <linux-usb@...r.kernel.org>,
<linux-omap@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<linux-doc@...r.kernel.org>, <devicetree-discuss@...ts.ozlabs.org>
CC: <grant.likely@...retlab.ca>, <gregkh@...uxfoundation.org>,
<kishon@...com>
Subject: [PATCH v1 8/8] usb: otg: palmas-usb: fix cold plug issue
if the cable is connected even before the palmas-usb is loaded, the
cable connect detection event will be missed. It's fixed here by checking
for VBUS line states when palmas-usb is loaded.
Signed-off-by: Kishon Vijay Abraham I <kishon@...com>
---
drivers/usb/otg/palmas-usb.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/usb/otg/palmas-usb.c b/drivers/usb/otg/palmas-usb.c
index 07629cd..d62f673 100644
--- a/drivers/usb/otg/palmas-usb.c
+++ b/drivers/usb/otg/palmas-usb.c
@@ -187,6 +187,11 @@ static int palmas_enable_irq(struct palmas_usb *palmas_usb)
palmas_usb_write(palmas_usb->palmas, PALMAS_USB_ID_INT_EN_HI_SET,
PALMAS_USB_ID_INT_EN_HI_SET_ID_GND);
+ palmas_vbus_wakeup_irq(palmas_usb->irq4, palmas_usb);
+
+ if (palmas_usb->linkstat == OMAP_DWC3_UNKNOWN)
+ palmas_id_wakeup_irq(palmas_usb->irq2, palmas_usb);
+
return 0;
}
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists