lkml.org 
[lkml]   [2013]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] extcon: palmas: Dont set USB state if ID pin is grounded
Date
In OMAP5 when USB-HOST is set true, the VBUS regulator  is turned ON.
This causes a VBUS interrupt, ignore the same if we are already in
USB-HOST.

Signed-off-by: George Cherian <george.cherian@ti.com>
---
drivers/extcon/extcon-palmas.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/extcon/extcon-palmas.c b/drivers/extcon/extcon-palmas.c
index 9672f31..91b31af 100644
--- a/drivers/extcon/extcon-palmas.c
+++ b/drivers/extcon/extcon-palmas.c
@@ -50,6 +50,9 @@ static irqreturn_t palmas_vbus_irq_handler(int irq, void *_palmas_usb)
struct palmas_usb *palmas_usb = _palmas_usb;
unsigned int vbus_line_state;

+ if (palmas_usb->linkstat == PALMAS_USB_STATE_ID)
+ return IRQ_HANDLED;
+
palmas_read(palmas_usb->palmas, PALMAS_INTERRUPT_BASE,
PALMAS_INT3_LINE_STATE, &vbus_line_state);

--
1.8.1.4


\
 
 \ /
  Last update: 2013-09-10 10:21    [W:0.111 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site