From: Alexander Shishkin Date: Fri, 11 May 2012 14:25:47 +0000 (+0300) Subject: usb: chipidea: add support for roles X-Git-Tag: v3.5-rc1~149^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f36e231e9dbffb5264612e5b5817ab574a5e5db;p=pandora-kernel.git usb: chipidea: add support for roles Add some generic code for roles and implement simple role switching based on ID pin state and/or a sysfs file. At this, we also rename the device to ci_hdrc, which is what it is. The "manual" switch is made into a sysfs file and not debugfs, because it might be useful even in non-debug context. For some boards, like sheevaplug, it seems to be the only way to switch roles without modifying the hardware, since the ID pin is always grounded. Signed-off-by: Alexander Shishkin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed