• Home
  • Raw
  • Download

Lines Matching +full:d +full:- +full:phy

1 // SPDX-License-Identifier: GPL-2.0
197 static void set_pts(struct tegra_usb_phy *phy, u8 pts_val) in set_pts() argument
199 void __iomem *base = phy->regs; in set_pts()
202 if (phy->soc_config->has_hostpc) { in set_pts()
215 static void set_phcd(struct tegra_usb_phy *phy, bool enable) in set_phcd() argument
217 void __iomem *base = phy->regs; in set_phcd()
220 if (phy->soc_config->has_hostpc) { in set_phcd()
237 static int utmip_pad_open(struct tegra_usb_phy *phy) in utmip_pad_open() argument
241 phy->pad_clk = devm_clk_get(phy->u_phy.dev, "utmi-pads"); in utmip_pad_open()
242 if (IS_ERR(phy->pad_clk)) { in utmip_pad_open()
243 ret = PTR_ERR(phy->pad_clk); in utmip_pad_open()
244 dev_err(phy->u_phy.dev, in utmip_pad_open()
245 "Failed to get UTMIP pad clock: %d\n", ret); in utmip_pad_open()
249 phy->pad_rst = devm_reset_control_get_optional_shared( in utmip_pad_open()
250 phy->u_phy.dev, "utmi-pads"); in utmip_pad_open()
251 if (IS_ERR(phy->pad_rst)) { in utmip_pad_open()
252 ret = PTR_ERR(phy->pad_rst); in utmip_pad_open()
253 dev_err(phy->u_phy.dev, in utmip_pad_open()
254 "Failed to get UTMI-pads reset: %d\n", ret); in utmip_pad_open()
258 ret = clk_prepare_enable(phy->pad_clk); in utmip_pad_open()
260 dev_err(phy->u_phy.dev, in utmip_pad_open()
261 "Failed to enable UTMI-pads clock: %d\n", ret); in utmip_pad_open()
267 ret = reset_control_deassert(phy->pad_rst); in utmip_pad_open()
269 dev_err(phy->u_phy.dev, in utmip_pad_open()
270 "Failed to initialize UTMI-pads reset: %d\n", ret); in utmip_pad_open()
274 ret = reset_control_assert(phy->pad_rst); in utmip_pad_open()
276 dev_err(phy->u_phy.dev, in utmip_pad_open()
277 "Failed to assert UTMI-pads reset: %d\n", ret); in utmip_pad_open()
283 ret = reset_control_deassert(phy->pad_rst); in utmip_pad_open()
285 dev_err(phy->u_phy.dev, in utmip_pad_open()
286 "Failed to deassert UTMI-pads reset: %d\n", ret); in utmip_pad_open()
290 clk_disable_unprepare(phy->pad_clk); in utmip_pad_open()
295 static int utmip_pad_close(struct tegra_usb_phy *phy) in utmip_pad_close() argument
299 ret = clk_prepare_enable(phy->pad_clk); in utmip_pad_close()
301 dev_err(phy->u_phy.dev, in utmip_pad_close()
302 "Failed to enable UTMI-pads clock: %d\n", ret); in utmip_pad_close()
306 ret = reset_control_assert(phy->pad_rst); in utmip_pad_close()
308 dev_err(phy->u_phy.dev, in utmip_pad_close()
309 "Failed to assert UTMI-pads reset: %d\n", ret); in utmip_pad_close()
313 clk_disable_unprepare(phy->pad_clk); in utmip_pad_close()
318 static void utmip_pad_power_on(struct tegra_usb_phy *phy) in utmip_pad_power_on() argument
321 void __iomem *base = phy->pad_regs; in utmip_pad_power_on()
322 struct tegra_utmip_config *config = phy->config; in utmip_pad_power_on()
324 clk_prepare_enable(phy->pad_clk); in utmip_pad_power_on()
332 if (phy->soc_config->requires_extra_tuning_parameters) { in utmip_pad_power_on()
337 val |= UTMIP_HSSQUELCH_LEVEL(config->hssquelch_level); in utmip_pad_power_on()
338 val |= UTMIP_HSDISCON_LEVEL(config->hsdiscon_level); in utmip_pad_power_on()
339 val |= UTMIP_HSDISCON_LEVEL_MSB(config->hsdiscon_level); in utmip_pad_power_on()
346 clk_disable_unprepare(phy->pad_clk); in utmip_pad_power_on()
349 static int utmip_pad_power_off(struct tegra_usb_phy *phy) in utmip_pad_power_off() argument
352 void __iomem *base = phy->pad_regs; in utmip_pad_power_off()
355 dev_err(phy->u_phy.dev, "UTMIP pad already powered off\n"); in utmip_pad_power_off()
356 return -EINVAL; in utmip_pad_power_off()
359 clk_prepare_enable(phy->pad_clk); in utmip_pad_power_off()
363 if (--utmip_pad_count == 0) { in utmip_pad_power_off()
371 clk_disable_unprepare(phy->pad_clk); in utmip_pad_power_off()
384 static void utmi_phy_clk_disable(struct tegra_usb_phy *phy) in utmi_phy_clk_disable() argument
387 void __iomem *base = phy->regs; in utmi_phy_clk_disable()
390 * The USB driver may have already initiated the phy clock in utmi_phy_clk_disable()
397 if (phy->is_legacy_phy) { in utmi_phy_clk_disable()
408 set_phcd(phy, true); in utmi_phy_clk_disable()
411 dev_err(phy->u_phy.dev, in utmi_phy_clk_disable()
412 "Timeout waiting for PHY to stabilize on disable\n"); in utmi_phy_clk_disable()
415 static void utmi_phy_clk_enable(struct tegra_usb_phy *phy) in utmi_phy_clk_enable() argument
418 void __iomem *base = phy->regs; in utmi_phy_clk_enable()
421 * The USB driver may have already initiated the phy clock in utmi_phy_clk_enable()
429 if (phy->is_legacy_phy) { in utmi_phy_clk_enable()
440 set_phcd(phy, false); in utmi_phy_clk_enable()
444 dev_err(phy->u_phy.dev, in utmi_phy_clk_enable()
445 "Timeout waiting for PHY to stabilize on enable\n"); in utmi_phy_clk_enable()
448 static int utmi_phy_power_on(struct tegra_usb_phy *phy) in utmi_phy_power_on() argument
451 void __iomem *base = phy->regs; in utmi_phy_power_on()
452 struct tegra_utmip_config *config = phy->config; in utmi_phy_power_on()
458 if (phy->is_legacy_phy) { in utmi_phy_power_on()
470 val |= UTMIP_IDLE_WAIT(config->idle_wait_delay); in utmi_phy_power_on()
471 val |= UTMIP_ELASTIC_LIMIT(config->elastic_limit); in utmi_phy_power_on()
476 val |= UTMIP_HS_SYNC_START_DLY(config->hssync_start_delay); in utmi_phy_power_on()
481 val |= UTMIP_BIAS_DEBOUNCE_A(phy->freq->debounce); in utmi_phy_power_on()
488 if (!phy->soc_config->utmi_pll_config_in_car_module) { in utmi_phy_power_on()
492 val |= UTMIP_PLL_ACTIVE_DLY_COUNT(phy->freq->active_delay) | in utmi_phy_power_on()
493 UTMIP_PLLU_STABLE_COUNT(phy->freq->stable_count); in utmi_phy_power_on()
499 val |= UTMIP_XTAL_FREQ_COUNT(phy->freq->xtal_freq_count) | in utmi_phy_power_on()
500 UTMIP_PLLU_ENABLE_DLY_COUNT(phy->freq->enable_delay); in utmi_phy_power_on()
504 if (phy->mode == USB_DR_MODE_PERIPHERAL) { in utmi_phy_power_on()
518 utmip_pad_power_on(phy); in utmi_phy_power_on()
526 if (!config->xcvr_setup_use_fuses) { in utmi_phy_power_on()
527 val |= UTMIP_XCVR_SETUP(config->xcvr_setup); in utmi_phy_power_on()
528 val |= UTMIP_XCVR_SETUP_MSB(config->xcvr_setup); in utmi_phy_power_on()
530 val |= UTMIP_XCVR_LSFSLEW(config->xcvr_lsfslew); in utmi_phy_power_on()
531 val |= UTMIP_XCVR_LSRSLEW(config->xcvr_lsrslew); in utmi_phy_power_on()
533 if (phy->soc_config->requires_extra_tuning_parameters) { in utmi_phy_power_on()
535 val |= UTMIP_XCVR_HSSLEW(config->xcvr_hsslew); in utmi_phy_power_on()
536 val |= UTMIP_XCVR_HSSLEW_MSB(config->xcvr_hsslew); in utmi_phy_power_on()
543 val |= UTMIP_XCVR_TERM_RANGE_ADJ(config->term_range_adj); in utmi_phy_power_on()
552 if (config->xcvr_setup_use_fuses) in utmi_phy_power_on()
558 if (!phy->is_legacy_phy) { in utmi_phy_power_on()
568 if (phy->is_legacy_phy) { in utmi_phy_power_on()
579 utmi_phy_clk_enable(phy); in utmi_phy_power_on()
581 if (phy->soc_config->requires_usbmode_setup) { in utmi_phy_power_on()
584 if (phy->mode == USB_DR_MODE_HOST) in utmi_phy_power_on()
591 if (!phy->is_legacy_phy) in utmi_phy_power_on()
592 set_pts(phy, 0); in utmi_phy_power_on()
597 static int utmi_phy_power_off(struct tegra_usb_phy *phy) in utmi_phy_power_off() argument
600 void __iomem *base = phy->regs; in utmi_phy_power_off()
602 utmi_phy_clk_disable(phy); in utmi_phy_power_off()
604 if (phy->mode == USB_DR_MODE_PERIPHERAL) { in utmi_phy_power_off()
629 return utmip_pad_power_off(phy); in utmi_phy_power_off()
632 static void utmi_phy_preresume(struct tegra_usb_phy *phy) in utmi_phy_preresume() argument
635 void __iomem *base = phy->regs; in utmi_phy_preresume()
642 static void utmi_phy_postresume(struct tegra_usb_phy *phy) in utmi_phy_postresume() argument
645 void __iomem *base = phy->regs; in utmi_phy_postresume()
652 static void utmi_phy_restore_start(struct tegra_usb_phy *phy, in utmi_phy_restore_start() argument
656 void __iomem *base = phy->regs; in utmi_phy_restore_start()
673 static void utmi_phy_restore_end(struct tegra_usb_phy *phy) in utmi_phy_restore_end() argument
676 void __iomem *base = phy->regs; in utmi_phy_restore_end()
684 static int ulpi_phy_power_on(struct tegra_usb_phy *phy) in ulpi_phy_power_on() argument
688 void __iomem *base = phy->regs; in ulpi_phy_power_on()
690 ret = gpio_direction_output(phy->reset_gpio, 0); in ulpi_phy_power_on()
692 dev_err(phy->u_phy.dev, "GPIO %d not set to 0: %d\n", in ulpi_phy_power_on()
693 phy->reset_gpio, ret); in ulpi_phy_power_on()
697 ret = gpio_direction_output(phy->reset_gpio, 1); in ulpi_phy_power_on()
699 dev_err(phy->u_phy.dev, "GPIO %d not set to 1: %d\n", in ulpi_phy_power_on()
700 phy->reset_gpio, ret); in ulpi_phy_power_on()
704 clk_prepare_enable(phy->clk); in ulpi_phy_power_on()
734 ret = usb_phy_io_write(phy->ulpi, 0x40, 0x08); in ulpi_phy_power_on()
736 dev_err(phy->u_phy.dev, "ULPI write failed: %d\n", ret); in ulpi_phy_power_on()
740 ret = usb_phy_io_write(phy->ulpi, 0x80, 0x0B); in ulpi_phy_power_on()
742 dev_err(phy->u_phy.dev, "ULPI write failed: %d\n", ret); in ulpi_phy_power_on()
758 static int ulpi_phy_power_off(struct tegra_usb_phy *phy) in ulpi_phy_power_off() argument
760 clk_disable(phy->clk); in ulpi_phy_power_off()
761 return gpio_direction_output(phy->reset_gpio, 0); in ulpi_phy_power_off()
764 static void tegra_usb_phy_close(struct tegra_usb_phy *phy) in tegra_usb_phy_close() argument
766 if (!IS_ERR(phy->vbus)) in tegra_usb_phy_close()
767 regulator_disable(phy->vbus); in tegra_usb_phy_close()
769 if (!phy->is_ulpi_phy) in tegra_usb_phy_close()
770 utmip_pad_close(phy); in tegra_usb_phy_close()
772 clk_disable_unprepare(phy->pll_u); in tegra_usb_phy_close()
775 static int tegra_usb_phy_power_on(struct tegra_usb_phy *phy) in tegra_usb_phy_power_on() argument
777 if (phy->is_ulpi_phy) in tegra_usb_phy_power_on()
778 return ulpi_phy_power_on(phy); in tegra_usb_phy_power_on()
780 return utmi_phy_power_on(phy); in tegra_usb_phy_power_on()
783 static int tegra_usb_phy_power_off(struct tegra_usb_phy *phy) in tegra_usb_phy_power_off() argument
785 if (phy->is_ulpi_phy) in tegra_usb_phy_power_off()
786 return ulpi_phy_power_off(phy); in tegra_usb_phy_power_off()
788 return utmi_phy_power_off(phy); in tegra_usb_phy_power_off()
793 struct tegra_usb_phy *phy = container_of(x, struct tegra_usb_phy, u_phy); in tegra_usb_phy_suspend() local
795 return tegra_usb_phy_power_off(phy); in tegra_usb_phy_suspend()
797 return tegra_usb_phy_power_on(phy); in tegra_usb_phy_suspend()
800 static int ulpi_open(struct tegra_usb_phy *phy) in ulpi_open() argument
804 phy->clk = devm_clk_get(phy->u_phy.dev, "ulpi-link"); in ulpi_open()
805 if (IS_ERR(phy->clk)) { in ulpi_open()
806 err = PTR_ERR(phy->clk); in ulpi_open()
807 dev_err(phy->u_phy.dev, "Failed to get ULPI clock: %d\n", err); in ulpi_open()
811 err = devm_gpio_request(phy->u_phy.dev, phy->reset_gpio, in ulpi_open()
814 dev_err(phy->u_phy.dev, "Request failed for GPIO %d: %d\n", in ulpi_open()
815 phy->reset_gpio, err); in ulpi_open()
819 err = gpio_direction_output(phy->reset_gpio, 0); in ulpi_open()
821 dev_err(phy->u_phy.dev, in ulpi_open()
822 "GPIO %d direction not set to output: %d\n", in ulpi_open()
823 phy->reset_gpio, err); in ulpi_open()
827 phy->ulpi = otg_ulpi_create(&ulpi_viewport_access_ops, 0); in ulpi_open()
828 if (!phy->ulpi) { in ulpi_open()
829 dev_err(phy->u_phy.dev, "Failed to create ULPI OTG\n"); in ulpi_open()
830 err = -ENOMEM; in ulpi_open()
834 phy->ulpi->io_priv = phy->regs + ULPI_VIEWPORT; in ulpi_open()
838 static int tegra_usb_phy_init(struct tegra_usb_phy *phy) in tegra_usb_phy_init() argument
844 phy->pll_u = devm_clk_get(phy->u_phy.dev, "pll_u"); in tegra_usb_phy_init()
845 if (IS_ERR(phy->pll_u)) { in tegra_usb_phy_init()
846 err = PTR_ERR(phy->pll_u); in tegra_usb_phy_init()
847 dev_err(phy->u_phy.dev, in tegra_usb_phy_init()
848 "Failed to get pll_u clock: %d\n", err); in tegra_usb_phy_init()
852 err = clk_prepare_enable(phy->pll_u); in tegra_usb_phy_init()
856 parent_rate = clk_get_rate(clk_get_parent(phy->pll_u)); in tegra_usb_phy_init()
859 phy->freq = &tegra_freq_table[i]; in tegra_usb_phy_init()
863 if (!phy->freq) { in tegra_usb_phy_init()
864 dev_err(phy->u_phy.dev, "Invalid pll_u parent rate %ld\n", in tegra_usb_phy_init()
866 err = -EINVAL; in tegra_usb_phy_init()
870 if (!IS_ERR(phy->vbus)) { in tegra_usb_phy_init()
871 err = regulator_enable(phy->vbus); in tegra_usb_phy_init()
873 dev_err(phy->u_phy.dev, in tegra_usb_phy_init()
874 "Failed to enable USB VBUS regulator: %d\n", in tegra_usb_phy_init()
880 if (phy->is_ulpi_phy) in tegra_usb_phy_init()
881 err = ulpi_open(phy); in tegra_usb_phy_init()
883 err = utmip_pad_open(phy); in tegra_usb_phy_init()
890 clk_disable_unprepare(phy->pll_u); in tegra_usb_phy_init()
896 struct tegra_usb_phy *phy = container_of(x, struct tegra_usb_phy, u_phy); in tegra_usb_phy_preresume() local
898 if (!phy->is_ulpi_phy) in tegra_usb_phy_preresume()
899 utmi_phy_preresume(phy); in tegra_usb_phy_preresume()
905 struct tegra_usb_phy *phy = container_of(x, struct tegra_usb_phy, u_phy); in tegra_usb_phy_postresume() local
907 if (!phy->is_ulpi_phy) in tegra_usb_phy_postresume()
908 utmi_phy_postresume(phy); in tegra_usb_phy_postresume()
915 struct tegra_usb_phy *phy = container_of(x, struct tegra_usb_phy, u_phy); in tegra_ehci_phy_restore_start() local
917 if (!phy->is_ulpi_phy) in tegra_ehci_phy_restore_start()
918 utmi_phy_restore_start(phy, port_speed); in tegra_ehci_phy_restore_start()
924 struct tegra_usb_phy *phy = container_of(x, struct tegra_usb_phy, u_phy); in tegra_ehci_phy_restore_end() local
926 if (!phy->is_ulpi_phy) in tegra_ehci_phy_restore_end()
927 utmi_phy_restore_end(phy); in tegra_ehci_phy_restore_end()
935 int err = of_property_read_u32(pdev->dev.of_node, param, &value); in read_utmi_param()
938 dev_err(&pdev->dev, in read_utmi_param()
939 "Failed to read USB UTMI parameter %s: %d\n", in read_utmi_param()
951 tegra_phy->is_ulpi_phy = false; in utmi_phy_probe()
955 dev_err(&pdev->dev, "Failed to get UTMI pad regs\n"); in utmi_phy_probe()
956 return -ENXIO; in utmi_phy_probe()
959 tegra_phy->pad_regs = devm_ioremap(&pdev->dev, res->start, in utmi_phy_probe()
961 if (!tegra_phy->pad_regs) { in utmi_phy_probe()
962 dev_err(&pdev->dev, "Failed to remap UTMI pad regs\n"); in utmi_phy_probe()
963 return -ENOMEM; in utmi_phy_probe()
966 tegra_phy->config = devm_kzalloc(&pdev->dev, sizeof(*config), in utmi_phy_probe()
968 if (!tegra_phy->config) in utmi_phy_probe()
969 return -ENOMEM; in utmi_phy_probe()
971 config = tegra_phy->config; in utmi_phy_probe()
973 err = read_utmi_param(pdev, "nvidia,hssync-start-delay", in utmi_phy_probe()
974 &config->hssync_start_delay); in utmi_phy_probe()
978 err = read_utmi_param(pdev, "nvidia,elastic-limit", in utmi_phy_probe()
979 &config->elastic_limit); in utmi_phy_probe()
983 err = read_utmi_param(pdev, "nvidia,idle-wait-delay", in utmi_phy_probe()
984 &config->idle_wait_delay); in utmi_phy_probe()
988 err = read_utmi_param(pdev, "nvidia,term-range-adj", in utmi_phy_probe()
989 &config->term_range_adj); in utmi_phy_probe()
993 err = read_utmi_param(pdev, "nvidia,xcvr-lsfslew", in utmi_phy_probe()
994 &config->xcvr_lsfslew); in utmi_phy_probe()
998 err = read_utmi_param(pdev, "nvidia,xcvr-lsrslew", in utmi_phy_probe()
999 &config->xcvr_lsrslew); in utmi_phy_probe()
1003 if (tegra_phy->soc_config->requires_extra_tuning_parameters) { in utmi_phy_probe()
1004 err = read_utmi_param(pdev, "nvidia,xcvr-hsslew", in utmi_phy_probe()
1005 &config->xcvr_hsslew); in utmi_phy_probe()
1009 err = read_utmi_param(pdev, "nvidia,hssquelch-level", in utmi_phy_probe()
1010 &config->hssquelch_level); in utmi_phy_probe()
1014 err = read_utmi_param(pdev, "nvidia,hsdiscon-level", in utmi_phy_probe()
1015 &config->hsdiscon_level); in utmi_phy_probe()
1020 config->xcvr_setup_use_fuses = of_property_read_bool( in utmi_phy_probe()
1021 pdev->dev.of_node, "nvidia,xcvr-setup-use-fuses"); in utmi_phy_probe()
1023 if (!config->xcvr_setup_use_fuses) { in utmi_phy_probe()
1024 err = read_utmi_param(pdev, "nvidia,xcvr-setup", in utmi_phy_probe()
1025 &config->xcvr_setup); in utmi_phy_probe()
1048 { .compatible = "nvidia,tegra30-usb-phy", .data = &tegra30_soc_config },
1049 { .compatible = "nvidia,tegra20-usb-phy", .data = &tegra20_soc_config },
1059 struct device_node *np = pdev->dev.of_node; in tegra_usb_phy_probe()
1063 tegra_phy = devm_kzalloc(&pdev->dev, sizeof(*tegra_phy), GFP_KERNEL); in tegra_usb_phy_probe()
1065 return -ENOMEM; in tegra_usb_phy_probe()
1067 match = of_match_device(tegra_usb_phy_id_table, &pdev->dev); in tegra_usb_phy_probe()
1069 dev_err(&pdev->dev, "Error: No device match found\n"); in tegra_usb_phy_probe()
1070 return -ENODEV; in tegra_usb_phy_probe()
1072 tegra_phy->soc_config = match->data; in tegra_usb_phy_probe()
1076 dev_err(&pdev->dev, "Failed to get I/O memory\n"); in tegra_usb_phy_probe()
1077 return -ENXIO; in tegra_usb_phy_probe()
1080 tegra_phy->regs = devm_ioremap(&pdev->dev, res->start, in tegra_usb_phy_probe()
1082 if (!tegra_phy->regs) { in tegra_usb_phy_probe()
1083 dev_err(&pdev->dev, "Failed to remap I/O memory\n"); in tegra_usb_phy_probe()
1084 return -ENOMEM; in tegra_usb_phy_probe()
1087 tegra_phy->is_legacy_phy = in tegra_usb_phy_probe()
1088 of_property_read_bool(np, "nvidia,has-legacy-mode"); in tegra_usb_phy_probe()
1099 tegra_phy->is_ulpi_phy = true; in tegra_usb_phy_probe()
1101 tegra_phy->reset_gpio = in tegra_usb_phy_probe()
1102 of_get_named_gpio(np, "nvidia,phy-reset-gpio", 0); in tegra_usb_phy_probe()
1103 if (!gpio_is_valid(tegra_phy->reset_gpio)) { in tegra_usb_phy_probe()
1104 dev_err(&pdev->dev, in tegra_usb_phy_probe()
1105 "Invalid GPIO: %d\n", tegra_phy->reset_gpio); in tegra_usb_phy_probe()
1106 return tegra_phy->reset_gpio; in tegra_usb_phy_probe()
1108 tegra_phy->config = NULL; in tegra_usb_phy_probe()
1112 dev_err(&pdev->dev, "phy_type %u is invalid or unsupported\n", in tegra_usb_phy_probe()
1114 return -EINVAL; in tegra_usb_phy_probe()
1118 tegra_phy->mode = usb_get_dr_mode(&pdev->dev); in tegra_usb_phy_probe()
1120 tegra_phy->mode = USB_DR_MODE_HOST; in tegra_usb_phy_probe()
1122 if (tegra_phy->mode == USB_DR_MODE_UNKNOWN) { in tegra_usb_phy_probe()
1123 dev_err(&pdev->dev, "dr_mode is invalid\n"); in tegra_usb_phy_probe()
1124 return -EINVAL; in tegra_usb_phy_probe()
1128 if (of_find_property(np, "vbus-supply", NULL)) { in tegra_usb_phy_probe()
1129 tegra_phy->vbus = devm_regulator_get(&pdev->dev, "vbus"); in tegra_usb_phy_probe()
1130 if (IS_ERR(tegra_phy->vbus)) in tegra_usb_phy_probe()
1131 return PTR_ERR(tegra_phy->vbus); in tegra_usb_phy_probe()
1133 dev_notice(&pdev->dev, "no vbus regulator"); in tegra_usb_phy_probe()
1134 tegra_phy->vbus = ERR_PTR(-ENODEV); in tegra_usb_phy_probe()
1137 tegra_phy->u_phy.dev = &pdev->dev; in tegra_usb_phy_probe()
1142 tegra_phy->u_phy.set_suspend = tegra_usb_phy_suspend; in tegra_usb_phy_probe()
1146 err = usb_add_phy_dev(&tegra_phy->u_phy); in tegra_usb_phy_probe()
1159 usb_remove_phy(&tegra_phy->u_phy); in tegra_usb_phy_remove()
1169 .name = "tegra-phy",
1175 MODULE_DESCRIPTION("Tegra USB PHY driver");