Esempio n. 1
0
void tegra_stop_host(struct tegra_otg_data *tegra)
{
	if (tegra->pdev) {
		tegra_usb_otg_host_unregister(tegra->pdev);
		tegra->pdev = NULL;
	}
}
static void tegra_set_gadget_mode(void)
{
#ifdef CONFIG_USB_TEGRA_OTG
	tegra_otg_set_host_mode(false);
#else
	if (usb_host_pdev) {
		tegra_usb_otg_host_unregister(usb_host_pdev);
		usb_host_pdev = NULL;
	}
#endif
}
Esempio n. 3
0
void tegra_stop_host(struct tegra_otg_data *tegra)
{
	dev_info(tegra->otg.dev, "tegra_stop_host+\n");
	if (tegra->pdev) {
		tegra_usb_otg_host_unregister(tegra->pdev);
		tegra->pdev = NULL;
	}
#ifdef CONFIG_MACH_SAMSUNG_VARIATION_TEGRA
	wake_unlock(&tegra->wake_lock);
#endif
	dev_info(tegra->otg.dev, "tegra_stop_host-\n");
}
static void tegra_set_gadget_mode(void)
{
	/* Place interfase in gadget mode */

#ifdef CONFIG_USB_TEGRA_OTG

	/* Switch to peripheral mode */
	tegra_otg_set_host_mode(false);

#else
	if (usb_host_pdev) {
		tegra_usb_otg_host_unregister(usb_host_pdev);
		usb_host_pdev = NULL;
	}
#endif
}