NVIDIA: SAUCE: usb: xhci-tegra: don't assign port role by default
BugLink: https://bugs.launchpad.net/bugs/2072591 For OTG port, don't set data role to host by default. The data role will be decided later. http://nvbugs/3994759 Signed-off-by: Sing-Han Chen <singhanc@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Bitan Biswas <bbiswas@nvidia.com> Tested-by: Abhilash G <abhilashg@nvidia.com> Reviewed-by: Abhilash G <abhilashg@nvidia.com> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Acked-by: Jacob Martin <jacob.martin@canonical.com> Acked-by: Noah Wager <noah.wager@canonical.com> Signed-off-by: Noah Wager <noah.wager@canonical.com>
This commit is contained in:
committed by
Noah Wager
parent
5fe18fe554
commit
e86340544f
@@ -2,7 +2,7 @@
|
||||
/*
|
||||
* NVIDIA Tegra xHCI host controller driver
|
||||
*
|
||||
* Copyright (c) 2014-2020, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2014-2023, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (C) 2014 Google, Inc.
|
||||
*/
|
||||
|
||||
@@ -1508,10 +1508,9 @@ static int tegra_xusb_init_usb_phy(struct tegra_xusb *tegra)
|
||||
tegra->usbphy[i] = devm_usb_get_phy_by_node(tegra->dev,
|
||||
phy->dev.of_node,
|
||||
&tegra->id_nb);
|
||||
if (!IS_ERR(tegra->usbphy[i])) {
|
||||
if (!IS_ERR(tegra->usbphy[i]))
|
||||
dev_dbg(tegra->dev, "usbphy-%d registered", i);
|
||||
otg_set_host(tegra->usbphy[i]->otg, &tegra->hcd->self);
|
||||
} else {
|
||||
else {
|
||||
/*
|
||||
* usb-phy is optional, continue if its not available.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user