From: Peter Chen Date: Wed, 14 Aug 2013 09:44:04 +0000 (+0300) Subject: usb: chipidea: host: add vbus regulator control X-Git-Tag: v3.12-rc1~186^2~60 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40ed51a4b8588055ccd8e5420c76290659c4c974;p=pandora-kernel.git usb: chipidea: host: add vbus regulator control For boards which have board level vbus control (eg, through gpio), we need to vbus operation according to below rules: - For host, we need open vbus before start hcd, and close it after remove hcd. - For otg, the vbus needs to be on/off when usb role switches. When the host roles begins, it opens vbus; when the host role finishes, it closes vbus. We put vbus operation to host as host is the only vbus user, When we are at host mode, the vbus is on, when we are not at host mode, vbus should be off. Tested-by: Marek Vasut Signed-off-by: Peter Chen Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed