From: Tomoya MORINAGA Date: Fri, 3 Feb 2012 07:14:18 +0000 (+0900) Subject: usb: gadget: pch_udc: Detecting VBUS through GPIO with interrupt X-Git-Tag: v3.4-rc1~184^2~22^2~39^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=637b78eb31e0b167ed913f1750bb645dfeda38f0;p=pandora-kernel.git usb: gadget: pch_udc: Detecting VBUS through GPIO with interrupt Problem: pch_udc continues operation even if VBUS becomes Low. pch_udc performs D+ pulling up before VBUS becomes High. USB device should be controlled according to VBUS state. Root cause: The current pch_udc is not always monitoring VBUS. Solution: The change of VBUS is detected using an interrupt of GPIO. If VBUS became Low, pch_udc handles 'disconnect'. After VBUS became High, a pull improves D+, and pch_udc handles 'connect'. [ balbi@ti.com : make it actually compile ] Signed-off-by: Tomoya MORINAGA Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed