diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/ci13xxx_msm.c | 4 | ||||
-rw-r--r-- | drivers/usb/gadget/ci13xxx_udc.c | 10 | ||||
-rw-r--r-- | drivers/usb/gadget/fsl_udc_core.c | 4 | ||||
-rw-r--r-- | drivers/usb/gadget/langwell_udc.c | 4 | ||||
-rw-r--r-- | drivers/usb/gadget/mv_udc_core.c | 2 | ||||
-rw-r--r-- | drivers/usb/gadget/omap_udc.c | 14 | ||||
-rw-r--r-- | drivers/usb/gadget/pxa25x_udc.c | 8 | ||||
-rw-r--r-- | drivers/usb/gadget/pxa27x_udc.c | 6 | ||||
-rw-r--r-- | drivers/usb/gadget/s3c-hsudc.c | 6 | ||||
-rw-r--r-- | drivers/usb/host/ehci-fsl.c | 2 | ||||
-rw-r--r-- | drivers/usb/host/ehci-msm.c | 14 | ||||
-rw-r--r-- | drivers/usb/host/ehci-mv.c | 6 | ||||
-rw-r--r-- | drivers/usb/host/ehci-mxc.c | 10 | ||||
-rw-r--r-- | drivers/usb/host/ehci-tegra.c | 6 | ||||
-rw-r--r-- | drivers/usb/host/ohci-omap.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/am35x.c | 4 | ||||
-rw-r--r-- | drivers/usb/musb/blackfin.c | 4 | ||||
-rw-r--r-- | drivers/usb/musb/da8xx.c | 4 | ||||
-rw-r--r-- | drivers/usb/musb/davinci.c | 6 | ||||
-rw-r--r-- | drivers/usb/musb/musb_core.c | 11 | ||||
-rw-r--r-- | drivers/usb/musb/musb_gadget.c | 2 | ||||
-rw-r--r-- | drivers/usb/musb/omap2430.c | 22 | ||||
-rw-r--r-- | drivers/usb/musb/tusb6010.c | 6 | ||||
-rw-r--r-- | drivers/usb/musb/ux500.c | 8 |
24 files changed, 84 insertions, 81 deletions
diff --git a/drivers/usb/gadget/ci13xxx_msm.c b/drivers/usb/gadget/ci13xxx_msm.c index 1fc612914c52..d07e44c05e9b 100644 --- a/drivers/usb/gadget/ci13xxx_msm.c +++ b/drivers/usb/gadget/ci13xxx_msm.c | |||
@@ -37,10 +37,10 @@ static void ci13xxx_msm_notify_event(struct ci13xxx *udc, unsigned event) | |||
37 | * Put the transceiver in non-driving mode. Otherwise host | 37 | * Put the transceiver in non-driving mode. Otherwise host |
38 | * may not detect soft-disconnection. | 38 | * may not detect soft-disconnection. |
39 | */ | 39 | */ |
40 | val = otg_io_read(udc->transceiver, ULPI_FUNC_CTRL); | 40 | val = usb_phy_io_read(udc->transceiver, ULPI_FUNC_CTRL); |
41 | val &= ~ULPI_FUNC_CTRL_OPMODE_MASK; | 41 | val &= ~ULPI_FUNC_CTRL_OPMODE_MASK; |
42 | val |= ULPI_FUNC_CTRL_OPMODE_NONDRIVING; | 42 | val |= ULPI_FUNC_CTRL_OPMODE_NONDRIVING; |
43 | otg_io_write(udc->transceiver, val, ULPI_FUNC_CTRL); | 43 | usb_phy_io_write(udc->transceiver, val, ULPI_FUNC_CTRL); |
44 | break; | 44 | break; |
45 | default: | 45 | default: |
46 | dev_dbg(dev, "unknown ci13xxx_udc event\n"); | 46 | dev_dbg(dev, "unknown ci13xxx_udc event\n"); |
diff --git a/drivers/usb/gadget/ci13xxx_udc.c b/drivers/usb/gadget/ci13xxx_udc.c index 27e313718422..68ad160f2589 100644 --- a/drivers/usb/gadget/ci13xxx_udc.c +++ b/drivers/usb/gadget/ci13xxx_udc.c | |||
@@ -2537,7 +2537,7 @@ static int ci13xxx_vbus_draw(struct usb_gadget *_gadget, unsigned mA) | |||
2537 | struct ci13xxx *udc = container_of(_gadget, struct ci13xxx, gadget); | 2537 | struct ci13xxx *udc = container_of(_gadget, struct ci13xxx, gadget); |
2538 | 2538 | ||
2539 | if (udc->transceiver) | 2539 | if (udc->transceiver) |
2540 | return otg_set_power(udc->transceiver, mA); | 2540 | return usb_phy_set_power(udc->transceiver, mA); |
2541 | return -ENOTSUPP; | 2541 | return -ENOTSUPP; |
2542 | } | 2542 | } |
2543 | 2543 | ||
@@ -2900,7 +2900,7 @@ static int udc_probe(struct ci13xxx_udc_driver *driver, struct device *dev, | |||
2900 | if (retval < 0) | 2900 | if (retval < 0) |
2901 | goto free_udc; | 2901 | goto free_udc; |
2902 | 2902 | ||
2903 | udc->transceiver = otg_get_transceiver(); | 2903 | udc->transceiver = usb_get_transceiver(); |
2904 | 2904 | ||
2905 | if (udc->udc_driver->flags & CI13XXX_REQUIRE_TRANSCEIVER) { | 2905 | if (udc->udc_driver->flags & CI13XXX_REQUIRE_TRANSCEIVER) { |
2906 | if (udc->transceiver == NULL) { | 2906 | if (udc->transceiver == NULL) { |
@@ -2946,7 +2946,7 @@ static int udc_probe(struct ci13xxx_udc_driver *driver, struct device *dev, | |||
2946 | remove_trans: | 2946 | remove_trans: |
2947 | if (udc->transceiver) { | 2947 | if (udc->transceiver) { |
2948 | otg_set_peripheral(udc->transceiver, &udc->gadget); | 2948 | otg_set_peripheral(udc->transceiver, &udc->gadget); |
2949 | otg_put_transceiver(udc->transceiver); | 2949 | usb_put_transceiver(udc->transceiver); |
2950 | } | 2950 | } |
2951 | 2951 | ||
2952 | err("error = %i", retval); | 2952 | err("error = %i", retval); |
@@ -2958,7 +2958,7 @@ unreg_device: | |||
2958 | device_unregister(&udc->gadget.dev); | 2958 | device_unregister(&udc->gadget.dev); |
2959 | put_transceiver: | 2959 | put_transceiver: |
2960 | if (udc->transceiver) | 2960 | if (udc->transceiver) |
2961 | otg_put_transceiver(udc->transceiver); | 2961 | usb_put_transceiver(udc->transceiver); |
2962 | free_udc: | 2962 | free_udc: |
2963 | kfree(udc); | 2963 | kfree(udc); |
2964 | _udc = NULL; | 2964 | _udc = NULL; |
@@ -2982,7 +2982,7 @@ static void udc_remove(void) | |||
2982 | 2982 | ||
2983 | if (udc->transceiver) { | 2983 | if (udc->transceiver) { |
2984 | otg_set_peripheral(udc->transceiver, &udc->gadget); | 2984 | otg_set_peripheral(udc->transceiver, &udc->gadget); |
2985 | otg_put_transceiver(udc->transceiver); | 2985 | usb_put_transceiver(udc->transceiver); |
2986 | } | 2986 | } |
2987 | #ifdef CONFIG_USB_GADGET_DEBUG_FILES | 2987 | #ifdef CONFIG_USB_GADGET_DEBUG_FILES |
2988 | dbg_remove_files(&udc->gadget.dev); | 2988 | dbg_remove_files(&udc->gadget.dev); |
diff --git a/drivers/usb/gadget/fsl_udc_core.c b/drivers/usb/gadget/fsl_udc_core.c index b04712f19f1e..21fdfdb18ba8 100644 --- a/drivers/usb/gadget/fsl_udc_core.c +++ b/drivers/usb/gadget/fsl_udc_core.c | |||
@@ -1217,7 +1217,7 @@ static int fsl_vbus_draw(struct usb_gadget *gadget, unsigned mA) | |||
1217 | 1217 | ||
1218 | udc = container_of(gadget, struct fsl_udc, gadget); | 1218 | udc = container_of(gadget, struct fsl_udc, gadget); |
1219 | if (udc->transceiver) | 1219 | if (udc->transceiver) |
1220 | return otg_set_power(udc->transceiver, mA); | 1220 | return usb_phy_set_power(udc->transceiver, mA); |
1221 | return -ENOTSUPP; | 1221 | return -ENOTSUPP; |
1222 | } | 1222 | } |
1223 | 1223 | ||
@@ -2430,7 +2430,7 @@ static int __init fsl_udc_probe(struct platform_device *pdev) | |||
2430 | 2430 | ||
2431 | #ifdef CONFIG_USB_OTG | 2431 | #ifdef CONFIG_USB_OTG |
2432 | if (pdata->operating_mode == FSL_USB2_DR_OTG) { | 2432 | if (pdata->operating_mode == FSL_USB2_DR_OTG) { |
2433 | udc_controller->transceiver = otg_get_transceiver(); | 2433 | udc_controller->transceiver = usb_get_transceiver(); |
2434 | if (!udc_controller->transceiver) { | 2434 | if (!udc_controller->transceiver) { |
2435 | ERR("Can't find OTG driver!\n"); | 2435 | ERR("Can't find OTG driver!\n"); |
2436 | ret = -ENODEV; | 2436 | ret = -ENODEV; |
diff --git a/drivers/usb/gadget/langwell_udc.c b/drivers/usb/gadget/langwell_udc.c index e2293c1588ee..b19a9e46e69d 100644 --- a/drivers/usb/gadget/langwell_udc.c +++ b/drivers/usb/gadget/langwell_udc.c | |||
@@ -1261,9 +1261,9 @@ static int langwell_vbus_draw(struct usb_gadget *_gadget, unsigned mA) | |||
1261 | dev_vdbg(&dev->pdev->dev, "---> %s()\n", __func__); | 1261 | dev_vdbg(&dev->pdev->dev, "---> %s()\n", __func__); |
1262 | 1262 | ||
1263 | if (dev->transceiver) { | 1263 | if (dev->transceiver) { |
1264 | dev_vdbg(&dev->pdev->dev, "otg_set_power\n"); | 1264 | dev_vdbg(&dev->pdev->dev, "usb_phy_set_power\n"); |
1265 | dev_vdbg(&dev->pdev->dev, "<--- %s()\n", __func__); | 1265 | dev_vdbg(&dev->pdev->dev, "<--- %s()\n", __func__); |
1266 | return otg_set_power(dev->transceiver, mA); | 1266 | return usb_phy_set_power(dev->transceiver, mA); |
1267 | } | 1267 | } |
1268 | 1268 | ||
1269 | dev_vdbg(&dev->pdev->dev, "<--- %s()\n", __func__); | 1269 | dev_vdbg(&dev->pdev->dev, "<--- %s()\n", __func__); |
diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c index f97e737d26f7..50baf3ea336b 100644 --- a/drivers/usb/gadget/mv_udc_core.c +++ b/drivers/usb/gadget/mv_udc_core.c | |||
@@ -2181,7 +2181,7 @@ static int __devinit mv_udc_probe(struct platform_device *dev) | |||
2181 | 2181 | ||
2182 | #ifdef CONFIG_USB_OTG_UTILS | 2182 | #ifdef CONFIG_USB_OTG_UTILS |
2183 | if (pdata->mode == MV_USB_MODE_OTG) | 2183 | if (pdata->mode == MV_USB_MODE_OTG) |
2184 | udc->transceiver = otg_get_transceiver(); | 2184 | udc->transceiver = usb_get_transceiver(); |
2185 | #endif | 2185 | #endif |
2186 | 2186 | ||
2187 | udc->clknum = pdata->clknum; | 2187 | udc->clknum = pdata->clknum; |
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index d3529787351d..e82c6995ce26 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
@@ -1345,7 +1345,7 @@ static int omap_vbus_draw(struct usb_gadget *gadget, unsigned mA) | |||
1345 | 1345 | ||
1346 | udc = container_of(gadget, struct omap_udc, gadget); | 1346 | udc = container_of(gadget, struct omap_udc, gadget); |
1347 | if (udc->transceiver) | 1347 | if (udc->transceiver) |
1348 | return otg_set_power(udc->transceiver, mA); | 1348 | return usb_phy_set_power(udc->transceiver, mA); |
1349 | return -EOPNOTSUPP; | 1349 | return -EOPNOTSUPP; |
1350 | } | 1350 | } |
1351 | 1351 | ||
@@ -1839,11 +1839,13 @@ static void devstate_irq(struct omap_udc *udc, u16 irq_src) | |||
1839 | spin_lock(&udc->lock); | 1839 | spin_lock(&udc->lock); |
1840 | } | 1840 | } |
1841 | if (udc->transceiver) | 1841 | if (udc->transceiver) |
1842 | otg_set_suspend(udc->transceiver, 1); | 1842 | usb_phy_set_suspend( |
1843 | udc->transceiver, 1); | ||
1843 | } else { | 1844 | } else { |
1844 | VDBG("resume\n"); | 1845 | VDBG("resume\n"); |
1845 | if (udc->transceiver) | 1846 | if (udc->transceiver) |
1846 | otg_set_suspend(udc->transceiver, 0); | 1847 | usb_phy_set_suspend( |
1848 | udc->transceiver, 0); | ||
1847 | if (udc->gadget.speed == USB_SPEED_FULL | 1849 | if (udc->gadget.speed == USB_SPEED_FULL |
1848 | && udc->driver->resume) { | 1850 | && udc->driver->resume) { |
1849 | spin_unlock(&udc->lock); | 1851 | spin_unlock(&udc->lock); |
@@ -2863,7 +2865,7 @@ static int __init omap_udc_probe(struct platform_device *pdev) | |||
2863 | * use it. Except for OTG, we don't _need_ to talk to one; | 2865 | * use it. Except for OTG, we don't _need_ to talk to one; |
2864 | * but not having one probably means no VBUS detection. | 2866 | * but not having one probably means no VBUS detection. |
2865 | */ | 2867 | */ |
2866 | xceiv = otg_get_transceiver(); | 2868 | xceiv = usb_get_transceiver(); |
2867 | if (xceiv) | 2869 | if (xceiv) |
2868 | type = xceiv->label; | 2870 | type = xceiv->label; |
2869 | else if (config->otg) { | 2871 | else if (config->otg) { |
@@ -3009,7 +3011,7 @@ cleanup1: | |||
3009 | 3011 | ||
3010 | cleanup0: | 3012 | cleanup0: |
3011 | if (xceiv) | 3013 | if (xceiv) |
3012 | otg_put_transceiver(xceiv); | 3014 | usb_put_transceiver(xceiv); |
3013 | 3015 | ||
3014 | if (cpu_is_omap16xx() || cpu_is_omap24xx() || cpu_is_omap7xx()) { | 3016 | if (cpu_is_omap16xx() || cpu_is_omap24xx() || cpu_is_omap7xx()) { |
3015 | clk_disable(hhc_clk); | 3017 | clk_disable(hhc_clk); |
@@ -3039,7 +3041,7 @@ static int __exit omap_udc_remove(struct platform_device *pdev) | |||
3039 | 3041 | ||
3040 | pullup_disable(udc); | 3042 | pullup_disable(udc); |
3041 | if (udc->transceiver) { | 3043 | if (udc->transceiver) { |
3042 | otg_put_transceiver(udc->transceiver); | 3044 | usb_put_transceiver(udc->transceiver); |
3043 | udc->transceiver = NULL; | 3045 | udc->transceiver = NULL; |
3044 | } | 3046 | } |
3045 | omap_writew(0, UDC_SYSCON1); | 3047 | omap_writew(0, UDC_SYSCON1); |
diff --git a/drivers/usb/gadget/pxa25x_udc.c b/drivers/usb/gadget/pxa25x_udc.c index dd470635f4f7..b86518e49415 100644 --- a/drivers/usb/gadget/pxa25x_udc.c +++ b/drivers/usb/gadget/pxa25x_udc.c | |||
@@ -995,7 +995,7 @@ static int pxa25x_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) | |||
995 | udc = container_of(_gadget, struct pxa25x_udc, gadget); | 995 | udc = container_of(_gadget, struct pxa25x_udc, gadget); |
996 | 996 | ||
997 | if (udc->transceiver) | 997 | if (udc->transceiver) |
998 | return otg_set_power(udc->transceiver, mA); | 998 | return usb_phy_set_power(udc->transceiver, mA); |
999 | return -EOPNOTSUPP; | 999 | return -EOPNOTSUPP; |
1000 | } | 1000 | } |
1001 | 1001 | ||
@@ -2159,7 +2159,7 @@ static int __init pxa25x_udc_probe(struct platform_device *pdev) | |||
2159 | dev->dev = &pdev->dev; | 2159 | dev->dev = &pdev->dev; |
2160 | dev->mach = pdev->dev.platform_data; | 2160 | dev->mach = pdev->dev.platform_data; |
2161 | 2161 | ||
2162 | dev->transceiver = otg_get_transceiver(); | 2162 | dev->transceiver = usb_get_transceiver(); |
2163 | 2163 | ||
2164 | if (gpio_is_valid(dev->mach->gpio_pullup)) { | 2164 | if (gpio_is_valid(dev->mach->gpio_pullup)) { |
2165 | if ((retval = gpio_request(dev->mach->gpio_pullup, | 2165 | if ((retval = gpio_request(dev->mach->gpio_pullup, |
@@ -2238,7 +2238,7 @@ lubbock_fail0: | |||
2238 | gpio_free(dev->mach->gpio_pullup); | 2238 | gpio_free(dev->mach->gpio_pullup); |
2239 | err_gpio_pullup: | 2239 | err_gpio_pullup: |
2240 | if (dev->transceiver) { | 2240 | if (dev->transceiver) { |
2241 | otg_put_transceiver(dev->transceiver); | 2241 | usb_put_transceiver(dev->transceiver); |
2242 | dev->transceiver = NULL; | 2242 | dev->transceiver = NULL; |
2243 | } | 2243 | } |
2244 | clk_put(dev->clk); | 2244 | clk_put(dev->clk); |
@@ -2280,7 +2280,7 @@ static int __exit pxa25x_udc_remove(struct platform_device *pdev) | |||
2280 | clk_put(dev->clk); | 2280 | clk_put(dev->clk); |
2281 | 2281 | ||
2282 | if (dev->transceiver) { | 2282 | if (dev->transceiver) { |
2283 | otg_put_transceiver(dev->transceiver); | 2283 | usb_put_transceiver(dev->transceiver); |
2284 | dev->transceiver = NULL; | 2284 | dev->transceiver = NULL; |
2285 | } | 2285 | } |
2286 | 2286 | ||
diff --git a/drivers/usb/gadget/pxa27x_udc.c b/drivers/usb/gadget/pxa27x_udc.c index f4c44eb806c3..1906ed0dcdc2 100644 --- a/drivers/usb/gadget/pxa27x_udc.c +++ b/drivers/usb/gadget/pxa27x_udc.c | |||
@@ -1666,7 +1666,7 @@ static int pxa_udc_vbus_draw(struct usb_gadget *_gadget, unsigned mA) | |||
1666 | 1666 | ||
1667 | udc = to_gadget_udc(_gadget); | 1667 | udc = to_gadget_udc(_gadget); |
1668 | if (udc->transceiver) | 1668 | if (udc->transceiver) |
1669 | return otg_set_power(udc->transceiver, mA); | 1669 | return usb_phy_set_power(udc->transceiver, mA); |
1670 | return -EOPNOTSUPP; | 1670 | return -EOPNOTSUPP; |
1671 | } | 1671 | } |
1672 | 1672 | ||
@@ -2463,7 +2463,7 @@ static int __init pxa_udc_probe(struct platform_device *pdev) | |||
2463 | 2463 | ||
2464 | udc->dev = &pdev->dev; | 2464 | udc->dev = &pdev->dev; |
2465 | udc->mach = pdev->dev.platform_data; | 2465 | udc->mach = pdev->dev.platform_data; |
2466 | udc->transceiver = otg_get_transceiver(); | 2466 | udc->transceiver = usb_get_transceiver(); |
2467 | 2467 | ||
2468 | gpio = udc->mach->gpio_pullup; | 2468 | gpio = udc->mach->gpio_pullup; |
2469 | if (gpio_is_valid(gpio)) { | 2469 | if (gpio_is_valid(gpio)) { |
@@ -2542,7 +2542,7 @@ static int __exit pxa_udc_remove(struct platform_device *_dev) | |||
2542 | if (gpio_is_valid(gpio)) | 2542 | if (gpio_is_valid(gpio)) |
2543 | gpio_free(gpio); | 2543 | gpio_free(gpio); |
2544 | 2544 | ||
2545 | otg_put_transceiver(udc->transceiver); | 2545 | usb_put_transceiver(udc->transceiver); |
2546 | 2546 | ||
2547 | udc->transceiver = NULL; | 2547 | udc->transceiver = NULL; |
2548 | platform_set_drvdata(_dev, NULL); | 2548 | platform_set_drvdata(_dev, NULL); |
diff --git a/drivers/usb/gadget/s3c-hsudc.c b/drivers/usb/gadget/s3c-hsudc.c index dea475a61fd3..e124bfa399f5 100644 --- a/drivers/usb/gadget/s3c-hsudc.c +++ b/drivers/usb/gadget/s3c-hsudc.c | |||
@@ -1243,7 +1243,7 @@ static int s3c_hsudc_vbus_draw(struct usb_gadget *gadget, unsigned mA) | |||
1243 | return -ENODEV; | 1243 | return -ENODEV; |
1244 | 1244 | ||
1245 | if (hsudc->transceiver) | 1245 | if (hsudc->transceiver) |
1246 | return otg_set_power(hsudc->transceiver, mA); | 1246 | return usb_phy_set_power(hsudc->transceiver, mA); |
1247 | 1247 | ||
1248 | return -EOPNOTSUPP; | 1248 | return -EOPNOTSUPP; |
1249 | } | 1249 | } |
@@ -1275,7 +1275,7 @@ static int __devinit s3c_hsudc_probe(struct platform_device *pdev) | |||
1275 | hsudc->dev = dev; | 1275 | hsudc->dev = dev; |
1276 | hsudc->pd = pdev->dev.platform_data; | 1276 | hsudc->pd = pdev->dev.platform_data; |
1277 | 1277 | ||
1278 | hsudc->transceiver = otg_get_transceiver(); | 1278 | hsudc->transceiver = usb_get_transceiver(); |
1279 | 1279 | ||
1280 | for (i = 0; i < ARRAY_SIZE(hsudc->supplies); i++) | 1280 | for (i = 0; i < ARRAY_SIZE(hsudc->supplies); i++) |
1281 | hsudc->supplies[i].supply = s3c_hsudc_supply_names[i]; | 1281 | hsudc->supplies[i].supply = s3c_hsudc_supply_names[i]; |
@@ -1377,7 +1377,7 @@ err_remap: | |||
1377 | release_mem_region(res->start, resource_size(res)); | 1377 | release_mem_region(res->start, resource_size(res)); |
1378 | err_res: | 1378 | err_res: |
1379 | if (hsudc->transceiver) | 1379 | if (hsudc->transceiver) |
1380 | otg_put_transceiver(hsudc->transceiver); | 1380 | usb_put_transceiver(hsudc->transceiver); |
1381 | 1381 | ||
1382 | regulator_bulk_free(ARRAY_SIZE(hsudc->supplies), hsudc->supplies); | 1382 | regulator_bulk_free(ARRAY_SIZE(hsudc->supplies), hsudc->supplies); |
1383 | err_supplies: | 1383 | err_supplies: |
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index b556a72264d1..481effdc7f54 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c | |||
@@ -142,7 +142,7 @@ static int usb_hcd_fsl_probe(const struct hc_driver *driver, | |||
142 | if (pdata->operating_mode == FSL_USB2_DR_OTG) { | 142 | if (pdata->operating_mode == FSL_USB2_DR_OTG) { |
143 | struct ehci_hcd *ehci = hcd_to_ehci(hcd); | 143 | struct ehci_hcd *ehci = hcd_to_ehci(hcd); |
144 | 144 | ||
145 | ehci->transceiver = otg_get_transceiver(); | 145 | ehci->transceiver = usb_get_transceiver(); |
146 | dev_dbg(&pdev->dev, "hcd=0x%p ehci=0x%p, transceiver=0x%p\n", | 146 | dev_dbg(&pdev->dev, "hcd=0x%p ehci=0x%p, transceiver=0x%p\n", |
147 | hcd, ehci, ehci->transceiver); | 147 | hcd, ehci, ehci->transceiver); |
148 | 148 | ||
diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index ef7c4319c6e4..d8db5ecf5e37 100644 --- a/drivers/usb/host/ehci-msm.c +++ b/drivers/usb/host/ehci-msm.c | |||
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | #define MSM_USB_BASE (hcd->regs) | 33 | #define MSM_USB_BASE (hcd->regs) |
34 | 34 | ||
35 | static struct usb_phy *otg; | 35 | static struct usb_phy *phy; |
36 | 36 | ||
37 | static int ehci_msm_reset(struct usb_hcd *hcd) | 37 | static int ehci_msm_reset(struct usb_hcd *hcd) |
38 | { | 38 | { |
@@ -145,14 +145,14 @@ static int ehci_msm_probe(struct platform_device *pdev) | |||
145 | * powering up VBUS, mapping of registers address space and power | 145 | * powering up VBUS, mapping of registers address space and power |
146 | * management. | 146 | * management. |
147 | */ | 147 | */ |
148 | otg = otg_get_transceiver(); | 148 | phy = usb_get_transceiver(); |
149 | if (!otg) { | 149 | if (!phy) { |
150 | dev_err(&pdev->dev, "unable to find transceiver\n"); | 150 | dev_err(&pdev->dev, "unable to find transceiver\n"); |
151 | ret = -ENODEV; | 151 | ret = -ENODEV; |
152 | goto unmap; | 152 | goto unmap; |
153 | } | 153 | } |
154 | 154 | ||
155 | ret = otg_set_host(otg, &hcd->self); | 155 | ret = otg_set_host(phy, &hcd->self); |
156 | if (ret < 0) { | 156 | if (ret < 0) { |
157 | dev_err(&pdev->dev, "unable to register with transceiver\n"); | 157 | dev_err(&pdev->dev, "unable to register with transceiver\n"); |
158 | goto put_transceiver; | 158 | goto put_transceiver; |
@@ -169,7 +169,7 @@ static int ehci_msm_probe(struct platform_device *pdev) | |||
169 | return 0; | 169 | return 0; |
170 | 170 | ||
171 | put_transceiver: | 171 | put_transceiver: |
172 | otg_put_transceiver(otg); | 172 | usb_put_transceiver(phy); |
173 | unmap: | 173 | unmap: |
174 | iounmap(hcd->regs); | 174 | iounmap(hcd->regs); |
175 | put_hcd: | 175 | put_hcd: |
@@ -186,8 +186,8 @@ static int __devexit ehci_msm_remove(struct platform_device *pdev) | |||
186 | pm_runtime_disable(&pdev->dev); | 186 | pm_runtime_disable(&pdev->dev); |
187 | pm_runtime_set_suspended(&pdev->dev); | 187 | pm_runtime_set_suspended(&pdev->dev); |
188 | 188 | ||
189 | otg_set_host(otg, NULL); | 189 | otg_set_host(phy, NULL); |
190 | otg_put_transceiver(otg); | 190 | usb_put_transceiver(phy); |
191 | 191 | ||
192 | usb_put_hcd(hcd); | 192 | usb_put_hcd(hcd); |
193 | 193 | ||
diff --git a/drivers/usb/host/ehci-mv.c b/drivers/usb/host/ehci-mv.c index 39ca79e008d9..62a63b598149 100644 --- a/drivers/usb/host/ehci-mv.c +++ b/drivers/usb/host/ehci-mv.c | |||
@@ -253,7 +253,7 @@ static int mv_ehci_probe(struct platform_device *pdev) | |||
253 | ehci_mv->mode = pdata->mode; | 253 | ehci_mv->mode = pdata->mode; |
254 | if (ehci_mv->mode == MV_USB_MODE_OTG) { | 254 | if (ehci_mv->mode == MV_USB_MODE_OTG) { |
255 | #ifdef CONFIG_USB_OTG_UTILS | 255 | #ifdef CONFIG_USB_OTG_UTILS |
256 | ehci_mv->otg = otg_get_transceiver(); | 256 | ehci_mv->otg = usb_get_transceiver(); |
257 | if (!ehci_mv->otg) { | 257 | if (!ehci_mv->otg) { |
258 | dev_err(&pdev->dev, | 258 | dev_err(&pdev->dev, |
259 | "unable to find transceiver\n"); | 259 | "unable to find transceiver\n"); |
@@ -303,7 +303,7 @@ err_set_vbus: | |||
303 | #ifdef CONFIG_USB_OTG_UTILS | 303 | #ifdef CONFIG_USB_OTG_UTILS |
304 | err_put_transceiver: | 304 | err_put_transceiver: |
305 | if (ehci_mv->otg) | 305 | if (ehci_mv->otg) |
306 | otg_put_transceiver(ehci_mv->otg); | 306 | usb_put_transceiver(ehci_mv->otg); |
307 | #endif | 307 | #endif |
308 | err_disable_clk: | 308 | err_disable_clk: |
309 | mv_ehci_disable(ehci_mv); | 309 | mv_ehci_disable(ehci_mv); |
@@ -333,7 +333,7 @@ static int mv_ehci_remove(struct platform_device *pdev) | |||
333 | 333 | ||
334 | if (ehci_mv->otg) { | 334 | if (ehci_mv->otg) { |
335 | otg_set_host(ehci_mv->otg, NULL); | 335 | otg_set_host(ehci_mv->otg, NULL); |
336 | otg_put_transceiver(ehci_mv->otg); | 336 | usb_put_transceiver(ehci_mv->otg); |
337 | } | 337 | } |
338 | 338 | ||
339 | if (ehci_mv->mode == MV_USB_MODE_HOST) { | 339 | if (ehci_mv->mode == MV_USB_MODE_HOST) { |
diff --git a/drivers/usb/host/ehci-mxc.c b/drivers/usb/host/ehci-mxc.c index 55978fcfa4b2..b762fe0955b9 100644 --- a/drivers/usb/host/ehci-mxc.c +++ b/drivers/usb/host/ehci-mxc.c | |||
@@ -220,7 +220,7 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev) | |||
220 | /* Initialize the transceiver */ | 220 | /* Initialize the transceiver */ |
221 | if (pdata->otg) { | 221 | if (pdata->otg) { |
222 | pdata->otg->io_priv = hcd->regs + ULPI_VIEWPORT_OFFSET; | 222 | pdata->otg->io_priv = hcd->regs + ULPI_VIEWPORT_OFFSET; |
223 | ret = otg_init(pdata->otg); | 223 | ret = usb_phy_init(pdata->otg); |
224 | if (ret) { | 224 | if (ret) { |
225 | dev_err(dev, "unable to init transceiver, probably missing\n"); | 225 | dev_err(dev, "unable to init transceiver, probably missing\n"); |
226 | ret = -ENODEV; | 226 | ret = -ENODEV; |
@@ -247,9 +247,11 @@ static int ehci_mxc_drv_probe(struct platform_device *pdev) | |||
247 | * It's in violation of USB specs | 247 | * It's in violation of USB specs |
248 | */ | 248 | */ |
249 | if (machine_is_mx51_efikamx() || machine_is_mx51_efikasb()) { | 249 | if (machine_is_mx51_efikamx() || machine_is_mx51_efikasb()) { |
250 | flags = otg_io_read(pdata->otg, ULPI_OTG_CTRL); | 250 | flags = usb_phy_io_read(pdata->otg, |
251 | ULPI_OTG_CTRL); | ||
251 | flags |= ULPI_OTG_CTRL_CHRGVBUS; | 252 | flags |= ULPI_OTG_CTRL_CHRGVBUS; |
252 | ret = otg_io_write(pdata->otg, flags, ULPI_OTG_CTRL); | 253 | ret = usb_phy_io_write(pdata->otg, flags, |
254 | ULPI_OTG_CTRL); | ||
253 | if (ret) { | 255 | if (ret) { |
254 | dev_err(dev, "unable to set CHRVBUS\n"); | 256 | dev_err(dev, "unable to set CHRVBUS\n"); |
255 | goto err_add; | 257 | goto err_add; |
@@ -297,7 +299,7 @@ static int __exit ehci_mxc_drv_remove(struct platform_device *pdev) | |||
297 | pdata->exit(pdev); | 299 | pdata->exit(pdev); |
298 | 300 | ||
299 | if (pdata->otg) | 301 | if (pdata->otg) |
300 | otg_shutdown(pdata->otg); | 302 | usb_phy_shutdown(pdata->otg); |
301 | 303 | ||
302 | usb_remove_hcd(hcd); | 304 | usb_remove_hcd(hcd); |
303 | iounmap(hcd->regs); | 305 | iounmap(hcd->regs); |
diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 2e157144dcf6..701a0bf58623 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c | |||
@@ -733,7 +733,7 @@ static int tegra_ehci_probe(struct platform_device *pdev) | |||
733 | 733 | ||
734 | #ifdef CONFIG_USB_OTG_UTILS | 734 | #ifdef CONFIG_USB_OTG_UTILS |
735 | if (pdata->operating_mode == TEGRA_USB_OTG) { | 735 | if (pdata->operating_mode == TEGRA_USB_OTG) { |
736 | tegra->transceiver = otg_get_transceiver(); | 736 | tegra->transceiver = usb_get_transceiver(); |
737 | if (tegra->transceiver) | 737 | if (tegra->transceiver) |
738 | otg_set_host(tegra->transceiver, &hcd->self); | 738 | otg_set_host(tegra->transceiver, &hcd->self); |
739 | } | 739 | } |
@@ -751,7 +751,7 @@ fail: | |||
751 | #ifdef CONFIG_USB_OTG_UTILS | 751 | #ifdef CONFIG_USB_OTG_UTILS |
752 | if (tegra->transceiver) { | 752 | if (tegra->transceiver) { |
753 | otg_set_host(tegra->transceiver, NULL); | 753 | otg_set_host(tegra->transceiver, NULL); |
754 | otg_put_transceiver(tegra->transceiver); | 754 | usb_put_transceiver(tegra->transceiver); |
755 | } | 755 | } |
756 | #endif | 756 | #endif |
757 | tegra_usb_phy_close(tegra->phy); | 757 | tegra_usb_phy_close(tegra->phy); |
@@ -809,7 +809,7 @@ static int tegra_ehci_remove(struct platform_device *pdev) | |||
809 | #ifdef CONFIG_USB_OTG_UTILS | 809 | #ifdef CONFIG_USB_OTG_UTILS |
810 | if (tegra->transceiver) { | 810 | if (tegra->transceiver) { |
811 | otg_set_host(tegra->transceiver, NULL); | 811 | otg_set_host(tegra->transceiver, NULL); |
812 | otg_put_transceiver(tegra->transceiver); | 812 | usb_put_transceiver(tegra->transceiver); |
813 | } | 813 | } |
814 | #endif | 814 | #endif |
815 | 815 | ||
diff --git a/drivers/usb/host/ohci-omap.c b/drivers/usb/host/ohci-omap.c index db3968656d21..744e25da800f 100644 --- a/drivers/usb/host/ohci-omap.c +++ b/drivers/usb/host/ohci-omap.c | |||
@@ -210,7 +210,7 @@ static int ohci_omap_init(struct usb_hcd *hcd) | |||
210 | 210 | ||
211 | #ifdef CONFIG_USB_OTG | 211 | #ifdef CONFIG_USB_OTG |
212 | if (need_transceiver) { | 212 | if (need_transceiver) { |
213 | ohci->transceiver = otg_get_transceiver(); | 213 | ohci->transceiver = usb_get_transceiver(); |
214 | if (ohci->transceiver) { | 214 | if (ohci->transceiver) { |
215 | int status = otg_set_host(ohci->transceiver, | 215 | int status = otg_set_host(ohci->transceiver, |
216 | &ohci_to_hcd(ohci)->self); | 216 | &ohci_to_hcd(ohci)->self); |
diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index cb942b6cfe2b..ba96740de896 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.c | |||
@@ -364,7 +364,7 @@ static int am35x_musb_init(struct musb *musb) | |||
364 | return -ENODEV; | 364 | return -ENODEV; |
365 | 365 | ||
366 | usb_nop_xceiv_register(); | 366 | usb_nop_xceiv_register(); |
367 | musb->xceiv = otg_get_transceiver(); | 367 | musb->xceiv = usb_get_transceiver(); |
368 | if (!musb->xceiv) | 368 | if (!musb->xceiv) |
369 | return -ENODEV; | 369 | return -ENODEV; |
370 | 370 | ||
@@ -406,7 +406,7 @@ static int am35x_musb_exit(struct musb *musb) | |||
406 | if (data->set_phy_power) | 406 | if (data->set_phy_power) |
407 | data->set_phy_power(0); | 407 | data->set_phy_power(0); |
408 | 408 | ||
409 | otg_put_transceiver(musb->xceiv); | 409 | usb_put_transceiver(musb->xceiv); |
410 | usb_nop_xceiv_unregister(); | 410 | usb_nop_xceiv_unregister(); |
411 | 411 | ||
412 | return 0; | 412 | return 0; |
diff --git a/drivers/usb/musb/blackfin.c b/drivers/usb/musb/blackfin.c index fc8e9edbcb82..5fefd656671b 100644 --- a/drivers/usb/musb/blackfin.c +++ b/drivers/usb/musb/blackfin.c | |||
@@ -415,7 +415,7 @@ static int bfin_musb_init(struct musb *musb) | |||
415 | gpio_direction_output(musb->config->gpio_vrsel, 0); | 415 | gpio_direction_output(musb->config->gpio_vrsel, 0); |
416 | 416 | ||
417 | usb_nop_xceiv_register(); | 417 | usb_nop_xceiv_register(); |
418 | musb->xceiv = otg_get_transceiver(); | 418 | musb->xceiv = usb_get_transceiver(); |
419 | if (!musb->xceiv) { | 419 | if (!musb->xceiv) { |
420 | gpio_free(musb->config->gpio_vrsel); | 420 | gpio_free(musb->config->gpio_vrsel); |
421 | return -ENODEV; | 421 | return -ENODEV; |
@@ -440,7 +440,7 @@ static int bfin_musb_exit(struct musb *musb) | |||
440 | { | 440 | { |
441 | gpio_free(musb->config->gpio_vrsel); | 441 | gpio_free(musb->config->gpio_vrsel); |
442 | 442 | ||
443 | otg_put_transceiver(musb->xceiv); | 443 | usb_put_transceiver(musb->xceiv); |
444 | usb_nop_xceiv_unregister(); | 444 | usb_nop_xceiv_unregister(); |
445 | return 0; | 445 | return 0; |
446 | } | 446 | } |
diff --git a/drivers/usb/musb/da8xx.c b/drivers/usb/musb/da8xx.c index f0cb7767fa6a..bd38119bc66c 100644 --- a/drivers/usb/musb/da8xx.c +++ b/drivers/usb/musb/da8xx.c | |||
@@ -425,7 +425,7 @@ static int da8xx_musb_init(struct musb *musb) | |||
425 | goto fail; | 425 | goto fail; |
426 | 426 | ||
427 | usb_nop_xceiv_register(); | 427 | usb_nop_xceiv_register(); |
428 | musb->xceiv = otg_get_transceiver(); | 428 | musb->xceiv = usb_get_transceiver(); |
429 | if (!musb->xceiv) | 429 | if (!musb->xceiv) |
430 | goto fail; | 430 | goto fail; |
431 | 431 | ||
@@ -458,7 +458,7 @@ static int da8xx_musb_exit(struct musb *musb) | |||
458 | 458 | ||
459 | phy_off(); | 459 | phy_off(); |
460 | 460 | ||
461 | otg_put_transceiver(musb->xceiv); | 461 | usb_put_transceiver(musb->xceiv); |
462 | usb_nop_xceiv_unregister(); | 462 | usb_nop_xceiv_unregister(); |
463 | 463 | ||
464 | return 0; | 464 | return 0; |
diff --git a/drivers/usb/musb/davinci.c b/drivers/usb/musb/davinci.c index f2a63dd0dfce..49a47d244a27 100644 --- a/drivers/usb/musb/davinci.c +++ b/drivers/usb/musb/davinci.c | |||
@@ -384,7 +384,7 @@ static int davinci_musb_init(struct musb *musb) | |||
384 | u32 revision; | 384 | u32 revision; |
385 | 385 | ||
386 | usb_nop_xceiv_register(); | 386 | usb_nop_xceiv_register(); |
387 | musb->xceiv = otg_get_transceiver(); | 387 | musb->xceiv = usb_get_transceiver(); |
388 | if (!musb->xceiv) | 388 | if (!musb->xceiv) |
389 | return -ENODEV; | 389 | return -ENODEV; |
390 | 390 | ||
@@ -443,7 +443,7 @@ static int davinci_musb_init(struct musb *musb) | |||
443 | return 0; | 443 | return 0; |
444 | 444 | ||
445 | fail: | 445 | fail: |
446 | otg_put_transceiver(musb->xceiv); | 446 | usb_put_transceiver(musb->xceiv); |
447 | usb_nop_xceiv_unregister(); | 447 | usb_nop_xceiv_unregister(); |
448 | return -ENODEV; | 448 | return -ENODEV; |
449 | } | 449 | } |
@@ -492,7 +492,7 @@ static int davinci_musb_exit(struct musb *musb) | |||
492 | 492 | ||
493 | phy_off(); | 493 | phy_off(); |
494 | 494 | ||
495 | otg_put_transceiver(musb->xceiv); | 495 | usb_put_transceiver(musb->xceiv); |
496 | usb_nop_xceiv_unregister(); | 496 | usb_nop_xceiv_unregister(); |
497 | 497 | ||
498 | return 0; | 498 | return 0; |
diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index f9ecd5ebf267..7e9be74dba4d 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c | |||
@@ -131,9 +131,9 @@ static inline struct musb *dev_to_musb(struct device *dev) | |||
131 | /*-------------------------------------------------------------------------*/ | 131 | /*-------------------------------------------------------------------------*/ |
132 | 132 | ||
133 | #ifndef CONFIG_BLACKFIN | 133 | #ifndef CONFIG_BLACKFIN |
134 | static int musb_ulpi_read(struct usb_phy *otg, u32 offset) | 134 | static int musb_ulpi_read(struct usb_phy *phy, u32 offset) |
135 | { | 135 | { |
136 | void __iomem *addr = otg->io_priv; | 136 | void __iomem *addr = phy->io_priv; |
137 | int i = 0; | 137 | int i = 0; |
138 | u8 r; | 138 | u8 r; |
139 | u8 power; | 139 | u8 power; |
@@ -165,10 +165,9 @@ static int musb_ulpi_read(struct usb_phy *otg, u32 offset) | |||
165 | return musb_readb(addr, MUSB_ULPI_REG_DATA); | 165 | return musb_readb(addr, MUSB_ULPI_REG_DATA); |
166 | } | 166 | } |
167 | 167 | ||
168 | static int musb_ulpi_write(struct usb_phy *otg, | 168 | static int musb_ulpi_write(struct usb_phy *phy, u32 offset, u32 data) |
169 | u32 offset, u32 data) | ||
170 | { | 169 | { |
171 | void __iomem *addr = otg->io_priv; | 170 | void __iomem *addr = phy->io_priv; |
172 | int i = 0; | 171 | int i = 0; |
173 | u8 r = 0; | 172 | u8 r = 0; |
174 | u8 power; | 173 | u8 power; |
@@ -200,7 +199,7 @@ static int musb_ulpi_write(struct usb_phy *otg, | |||
200 | #define musb_ulpi_write NULL | 199 | #define musb_ulpi_write NULL |
201 | #endif | 200 | #endif |
202 | 201 | ||
203 | static struct otg_io_access_ops musb_ulpi_access = { | 202 | static struct usb_phy_io_ops musb_ulpi_access = { |
204 | .read = musb_ulpi_read, | 203 | .read = musb_ulpi_read, |
205 | .write = musb_ulpi_write, | 204 | .write = musb_ulpi_write, |
206 | }; | 205 | }; |
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 0524a34be3c7..3a1793663d91 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c | |||
@@ -1703,7 +1703,7 @@ static int musb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) | |||
1703 | 1703 | ||
1704 | if (!musb->xceiv->set_power) | 1704 | if (!musb->xceiv->set_power) |
1705 | return -EOPNOTSUPP; | 1705 | return -EOPNOTSUPP; |
1706 | return otg_set_power(musb->xceiv, mA); | 1706 | return usb_phy_set_power(musb->xceiv, mA); |
1707 | } | 1707 | } |
1708 | 1708 | ||
1709 | static int musb_gadget_pullup(struct usb_gadget *gadget, int is_on) | 1709 | static int musb_gadget_pullup(struct usb_gadget *gadget, int is_on) |
diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index a427fcb13430..96a3d3763cc4 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c | |||
@@ -247,7 +247,7 @@ static void musb_otg_notifier_work(struct work_struct *data_notifier_work) | |||
247 | 247 | ||
248 | if (!is_otg_enabled(musb) || musb->gadget_driver) { | 248 | if (!is_otg_enabled(musb) || musb->gadget_driver) { |
249 | pm_runtime_get_sync(musb->controller); | 249 | pm_runtime_get_sync(musb->controller); |
250 | otg_init(musb->xceiv); | 250 | usb_phy_init(musb->xceiv); |
251 | omap2430_musb_set_vbus(musb, 1); | 251 | omap2430_musb_set_vbus(musb, 1); |
252 | } | 252 | } |
253 | break; | 253 | break; |
@@ -257,7 +257,7 @@ static void musb_otg_notifier_work(struct work_struct *data_notifier_work) | |||
257 | 257 | ||
258 | if (musb->gadget_driver) | 258 | if (musb->gadget_driver) |
259 | pm_runtime_get_sync(musb->controller); | 259 | pm_runtime_get_sync(musb->controller); |
260 | otg_init(musb->xceiv); | 260 | usb_phy_init(musb->xceiv); |
261 | break; | 261 | break; |
262 | 262 | ||
263 | case USB_EVENT_NONE: | 263 | case USB_EVENT_NONE: |
@@ -273,7 +273,7 @@ static void musb_otg_notifier_work(struct work_struct *data_notifier_work) | |||
273 | if (musb->xceiv->set_vbus) | 273 | if (musb->xceiv->set_vbus) |
274 | otg_set_vbus(musb->xceiv, 0); | 274 | otg_set_vbus(musb->xceiv, 0); |
275 | } | 275 | } |
276 | otg_shutdown(musb->xceiv); | 276 | usb_phy_shutdown(musb->xceiv); |
277 | break; | 277 | break; |
278 | default: | 278 | default: |
279 | dev_dbg(musb->controller, "ID float\n"); | 279 | dev_dbg(musb->controller, "ID float\n"); |
@@ -291,7 +291,7 @@ static int omap2430_musb_init(struct musb *musb) | |||
291 | * up through ULPI. TWL4030-family PMICs include one, | 291 | * up through ULPI. TWL4030-family PMICs include one, |
292 | * which needs a driver, drivers aren't always needed. | 292 | * which needs a driver, drivers aren't always needed. |
293 | */ | 293 | */ |
294 | musb->xceiv = otg_get_transceiver(); | 294 | musb->xceiv = usb_get_transceiver(); |
295 | if (!musb->xceiv) { | 295 | if (!musb->xceiv) { |
296 | pr_err("HS USB OTG: no transceiver configured\n"); | 296 | pr_err("HS USB OTG: no transceiver configured\n"); |
297 | return -ENODEV; | 297 | return -ENODEV; |
@@ -326,7 +326,7 @@ static int omap2430_musb_init(struct musb *musb) | |||
326 | musb_readl(musb->mregs, OTG_SIMENABLE)); | 326 | musb_readl(musb->mregs, OTG_SIMENABLE)); |
327 | 327 | ||
328 | musb->nb.notifier_call = musb_otg_notifications; | 328 | musb->nb.notifier_call = musb_otg_notifications; |
329 | status = otg_register_notifier(musb->xceiv, &musb->nb); | 329 | status = usb_register_notifier(musb->xceiv, &musb->nb); |
330 | 330 | ||
331 | if (status) | 331 | if (status) |
332 | dev_dbg(musb->controller, "notification register failed\n"); | 332 | dev_dbg(musb->controller, "notification register failed\n"); |
@@ -350,7 +350,7 @@ static void omap2430_musb_enable(struct musb *musb) | |||
350 | switch (musb->xceiv->last_event) { | 350 | switch (musb->xceiv->last_event) { |
351 | 351 | ||
352 | case USB_EVENT_ID: | 352 | case USB_EVENT_ID: |
353 | otg_init(musb->xceiv); | 353 | usb_phy_init(musb->xceiv); |
354 | if (data->interface_type != MUSB_INTERFACE_UTMI) | 354 | if (data->interface_type != MUSB_INTERFACE_UTMI) |
355 | break; | 355 | break; |
356 | devctl = musb_readb(musb->mregs, MUSB_DEVCTL); | 356 | devctl = musb_readb(musb->mregs, MUSB_DEVCTL); |
@@ -369,7 +369,7 @@ static void omap2430_musb_enable(struct musb *musb) | |||
369 | break; | 369 | break; |
370 | 370 | ||
371 | case USB_EVENT_VBUS: | 371 | case USB_EVENT_VBUS: |
372 | otg_init(musb->xceiv); | 372 | usb_phy_init(musb->xceiv); |
373 | break; | 373 | break; |
374 | 374 | ||
375 | default: | 375 | default: |
@@ -380,7 +380,7 @@ static void omap2430_musb_enable(struct musb *musb) | |||
380 | static void omap2430_musb_disable(struct musb *musb) | 380 | static void omap2430_musb_disable(struct musb *musb) |
381 | { | 381 | { |
382 | if (musb->xceiv->last_event) | 382 | if (musb->xceiv->last_event) |
383 | otg_shutdown(musb->xceiv); | 383 | usb_phy_shutdown(musb->xceiv); |
384 | } | 384 | } |
385 | 385 | ||
386 | static int omap2430_musb_exit(struct musb *musb) | 386 | static int omap2430_musb_exit(struct musb *musb) |
@@ -389,7 +389,7 @@ static int omap2430_musb_exit(struct musb *musb) | |||
389 | cancel_work_sync(&musb->otg_notifier_work); | 389 | cancel_work_sync(&musb->otg_notifier_work); |
390 | 390 | ||
391 | omap2430_low_level_exit(musb); | 391 | omap2430_low_level_exit(musb); |
392 | otg_put_transceiver(musb->xceiv); | 392 | usb_put_transceiver(musb->xceiv); |
393 | 393 | ||
394 | return 0; | 394 | return 0; |
395 | } | 395 | } |
@@ -495,7 +495,7 @@ static int omap2430_runtime_suspend(struct device *dev) | |||
495 | OTG_INTERFSEL); | 495 | OTG_INTERFSEL); |
496 | 496 | ||
497 | omap2430_low_level_exit(musb); | 497 | omap2430_low_level_exit(musb); |
498 | otg_set_suspend(musb->xceiv, 1); | 498 | usb_phy_set_suspend(musb->xceiv, 1); |
499 | 499 | ||
500 | return 0; | 500 | return 0; |
501 | } | 501 | } |
@@ -509,7 +509,7 @@ static int omap2430_runtime_resume(struct device *dev) | |||
509 | musb_writel(musb->mregs, OTG_INTERFSEL, | 509 | musb_writel(musb->mregs, OTG_INTERFSEL, |
510 | musb->context.otg_interfsel); | 510 | musb->context.otg_interfsel); |
511 | 511 | ||
512 | otg_set_suspend(musb->xceiv, 0); | 512 | usb_phy_set_suspend(musb->xceiv, 0); |
513 | 513 | ||
514 | return 0; | 514 | return 0; |
515 | } | 515 | } |
diff --git a/drivers/usb/musb/tusb6010.c b/drivers/usb/musb/tusb6010.c index 0665c14cc540..496cc0364836 100644 --- a/drivers/usb/musb/tusb6010.c +++ b/drivers/usb/musb/tusb6010.c | |||
@@ -1078,7 +1078,7 @@ static int tusb_musb_init(struct musb *musb) | |||
1078 | int ret; | 1078 | int ret; |
1079 | 1079 | ||
1080 | usb_nop_xceiv_register(); | 1080 | usb_nop_xceiv_register(); |
1081 | musb->xceiv = otg_get_transceiver(); | 1081 | musb->xceiv = usb_get_transceiver(); |
1082 | if (!musb->xceiv) | 1082 | if (!musb->xceiv) |
1083 | return -ENODEV; | 1083 | return -ENODEV; |
1084 | 1084 | ||
@@ -1130,7 +1130,7 @@ done: | |||
1130 | if (sync) | 1130 | if (sync) |
1131 | iounmap(sync); | 1131 | iounmap(sync); |
1132 | 1132 | ||
1133 | otg_put_transceiver(musb->xceiv); | 1133 | usb_put_transceiver(musb->xceiv); |
1134 | usb_nop_xceiv_unregister(); | 1134 | usb_nop_xceiv_unregister(); |
1135 | } | 1135 | } |
1136 | return ret; | 1136 | return ret; |
@@ -1146,7 +1146,7 @@ static int tusb_musb_exit(struct musb *musb) | |||
1146 | 1146 | ||
1147 | iounmap(musb->sync_va); | 1147 | iounmap(musb->sync_va); |
1148 | 1148 | ||
1149 | otg_put_transceiver(musb->xceiv); | 1149 | usb_put_transceiver(musb->xceiv); |
1150 | usb_nop_xceiv_unregister(); | 1150 | usb_nop_xceiv_unregister(); |
1151 | return 0; | 1151 | return 0; |
1152 | } | 1152 | } |
diff --git a/drivers/usb/musb/ux500.c b/drivers/usb/musb/ux500.c index f7e04bf34a13..0f5667415b78 100644 --- a/drivers/usb/musb/ux500.c +++ b/drivers/usb/musb/ux500.c | |||
@@ -37,7 +37,7 @@ struct ux500_glue { | |||
37 | 37 | ||
38 | static int ux500_musb_init(struct musb *musb) | 38 | static int ux500_musb_init(struct musb *musb) |
39 | { | 39 | { |
40 | musb->xceiv = otg_get_transceiver(); | 40 | musb->xceiv = usb_get_transceiver(); |
41 | if (!musb->xceiv) { | 41 | if (!musb->xceiv) { |
42 | pr_err("HS USB OTG: no transceiver configured\n"); | 42 | pr_err("HS USB OTG: no transceiver configured\n"); |
43 | return -ENODEV; | 43 | return -ENODEV; |
@@ -48,7 +48,7 @@ static int ux500_musb_init(struct musb *musb) | |||
48 | 48 | ||
49 | static int ux500_musb_exit(struct musb *musb) | 49 | static int ux500_musb_exit(struct musb *musb) |
50 | { | 50 | { |
51 | otg_put_transceiver(musb->xceiv); | 51 | usb_put_transceiver(musb->xceiv); |
52 | 52 | ||
53 | return 0; | 53 | return 0; |
54 | } | 54 | } |
@@ -160,7 +160,7 @@ static int ux500_suspend(struct device *dev) | |||
160 | struct ux500_glue *glue = dev_get_drvdata(dev); | 160 | struct ux500_glue *glue = dev_get_drvdata(dev); |
161 | struct musb *musb = glue_to_musb(glue); | 161 | struct musb *musb = glue_to_musb(glue); |
162 | 162 | ||
163 | otg_set_suspend(musb->xceiv, 1); | 163 | usb_phy_set_suspend(musb->xceiv, 1); |
164 | clk_disable(glue->clk); | 164 | clk_disable(glue->clk); |
165 | 165 | ||
166 | return 0; | 166 | return 0; |
@@ -178,7 +178,7 @@ static int ux500_resume(struct device *dev) | |||
178 | return ret; | 178 | return ret; |
179 | } | 179 | } |
180 | 180 | ||
181 | otg_set_suspend(musb->xceiv, 0); | 181 | usb_phy_set_suspend(musb->xceiv, 0); |
182 | 182 | ||
183 | return 0; | 183 | return 0; |
184 | } | 184 | } |