summaryrefslogtreecommitdiff
path: root/drivers/usb
diff options
context:
space:
mode:
authorRohith Seelaboyina <rseelaboyina@nvidia.com>2013-12-10 09:59:35 +0530
committerRohith Seelaboyina <rseelaboyina@nvidia.com>2013-12-18 01:47:04 -0800
commitfffe652f51182da7b0d0aee5b2e02f2b9f288479 (patch)
treeee391cff889c177df37145dcb7fbaa38f34a854f /drivers/usb
parentaae608aa2f6bf525fdb6c5c23c6263ace4e7ce2c (diff)
usb: gadget: otg: Allow device to charge in LP0
Add support for charging of device in LP0, when vbus detection happens through pmic. Bug 1406615 Change-Id: I97f92dc85de1a734dacb2446a353c89ec6f94cf4 Signed-off-by: Rohith Seelaboyina <rseelaboyina@nvidia.com> Reviewed-on: http://git-master/r/344710 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/phy/tegra-otg.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/usb/phy/tegra-otg.c b/drivers/usb/phy/tegra-otg.c
index 7d9646ab9c6e..94e42bc486fd 100644
--- a/drivers/usb/phy/tegra-otg.c
+++ b/drivers/usb/phy/tegra-otg.c
@@ -638,16 +638,16 @@ static int tegra_otg_conf(struct platform_device *pdev)
tegra->phy.otg->set_peripheral = tegra_otg_set_peripheral;
if (tegra->support_pmu_vbus) {
- if (!pdata->vbus_extcon_dev_name) {
+ if (!pdata->ehci_pdata->vbus_extcon_dev_name) {
dev_err(&pdev->dev, "Missing vbus_extcon_dev_name!\n");
err = -EINVAL;
goto err_vbus_extcon;
}
- tegra->vbus_extcon_dev =
- extcon_get_extcon_dev(pdata->vbus_extcon_dev_name);
+ tegra->vbus_extcon_dev = extcon_get_extcon_dev(pdata->
+ ehci_pdata->vbus_extcon_dev_name);
if (!tegra->vbus_extcon_dev) {
dev_err(&pdev->dev, "Cannot get the %s extcon dev\n",
- pdata->vbus_extcon_dev_name);
+ pdata->ehci_pdata->vbus_extcon_dev_name);
err = -ENODEV;
goto err_vbus_extcon;
}
@@ -656,16 +656,16 @@ static int tegra_otg_conf(struct platform_device *pdev)
}
if (tegra->support_pmu_id) {
- if (!pdata->id_extcon_dev_name) {
+ if (!pdata->ehci_pdata->id_extcon_dev_name) {
dev_err(&pdev->dev, "Missing id_extcon_dev_name!\n");
err = -EINVAL;
goto err_id_extcon;
}
- tegra->id_extcon_dev =
- extcon_get_extcon_dev(pdata->id_extcon_dev_name);
+ tegra->id_extcon_dev = extcon_get_extcon_dev(pdata->
+ ehci_pdata->id_extcon_dev_name);
if (!tegra->id_extcon_dev) {
dev_err(&pdev->dev, "Cannot get the %s extcon dev\n",
- pdata->id_extcon_dev_name);
+ pdata->ehci_pdata->id_extcon_dev_name);
err = -ENODEV;
goto err_id_extcon;
}