lkml.org 
[lkml]   [2012]   [Feb]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3 v2] pch_udc: Detecting VBUS through GPIO
On Fri, Feb 03, 2012 at 04:35:26PM +0900, Tomoya MORINAGA wrote:
> Problem:
> In USB Suspend, pch_udc handles 'disconnect'.
>
> Root cause:
> The current pch_udc is not monitoring VBUS.
> When USB cable is disconnected, USB Device Controller generates
> an interrupt of USB Suspend.
> pch_udc cannot distinguish it is USB Suspend or disconnect.
> Therefore, pch_udc handles 'disconnect' after an interrupt of
> USB Suspend happend.
>
> Solution:
> VBUS is detected through GPIO.
> After an interrupt produced USB Suspend, if VBUS is Low,
> pch_udc handles 'disconnect'.
> If VBUS is High, pch_udc handles 'suspend'.
>
> Signed-off-by: Tomoya MORINAGA <tomoya.rohm@gmail.com>

applied, thanks

--
balbi
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-02-09 09:01    [W:0.030 / U:1.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site