Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755429Ab3IJIbi (ORCPT ); Tue, 10 Sep 2013 04:31:38 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:55824 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752943Ab3IJIbg (ORCPT ); Tue, 10 Sep 2013 04:31:36 -0400 Message-ID: <522ED8E0.1030803@ti.com> Date: Tue, 10 Sep 2013 14:01:28 +0530 From: George Cherian User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Kishon Vijay Abraham I CC: , , , Subject: Re: [PATCH] extcon: palmas: Dont set USB state if ID pin is grounded References: <1378799369-15803-1-git-send-email-george.cherian@ti.com> <522ED75B.4070809@ti.com> In-Reply-To: <522ED75B.4070809@ti.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 856 Lines: 25 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/