summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/ci13xxx_msm.c
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2012-05-11 17:25:47 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-11 16:52:10 -0700
commit5f36e231e9dbffb5264612e5b5817ab574a5e5db (patch)
treea71027cded532334d3d51cbf737925240d34e7df /drivers/usb/chipidea/ci13xxx_msm.c
parente443b333629f82ca0da91a05ca638050943bbedd (diff)
downloadtalos-op-linux-5f36e231e9dbffb5264612e5b5817ab574a5e5db.tar.gz
talos-op-linux-5f36e231e9dbffb5264612e5b5817ab574a5e5db.zip
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 <alexander.shishkin@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/chipidea/ci13xxx_msm.c')
-rw-r--r--drivers/usb/chipidea/ci13xxx_msm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/chipidea/ci13xxx_msm.c b/drivers/usb/chipidea/ci13xxx_msm.c
index 27427931b681..9b09f0cd3d5a 100644
--- a/drivers/usb/chipidea/ci13xxx_msm.c
+++ b/drivers/usb/chipidea/ci13xxx_msm.c
@@ -62,9 +62,9 @@ static int ci13xxx_msm_probe(struct platform_device *pdev)
dev_dbg(&pdev->dev, "ci13xxx_msm_probe\n");
- plat_ci = platform_device_alloc("ci_udc", -1);
+ plat_ci = platform_device_alloc("ci_hdrc", -1);
if (!plat_ci) {
- dev_err(&pdev->dev, "can't allocate ci_udc platform device\n");
+ dev_err(&pdev->dev, "can't allocate ci_hdrc platform device\n");
return -ENOMEM;
}
OpenPOWER on IntegriCloud