Re: [PATCH] extcon: palmas: Dont set USB state if ID pin is grounded

From: George Cherian
Date: Tue Sep 10 2013 - 04:31:42 EST


On 9/10/2013 1:54 PM, Kishon Vijay Abraham I wrote:
Hi,

On Tuesday 10 September 2013 01:19 PM, George Cherian wrote:
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.
You'll get VBUS interrupt when detaching USB-HOST cable also no? (because you
do a regulator disable to SMPS10).
Yes since we are ignoring the previous interrupt(for attach), the detach is accounted as a spurious one.
If we dont igonre the attach then the USB is set to true, which is wrong.

Thanks
Kishon


--
-George

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/