From e86340544fe0a5ae684700e388c5e761494159d8 Mon Sep 17 00:00:00 2001 From: Sing-Han Chen Date: Thu, 6 Apr 2023 16:51:06 +0800 Subject: [PATCH] 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 Reviewed-by: Bitan Biswas Tested-by: Bitan Biswas Tested-by: Abhilash G Reviewed-by: Abhilash G Signed-off-by: Laxman Dewangan Acked-by: Jacob Martin Acked-by: Noah Wager Signed-off-by: Noah Wager --- drivers/usb/host/xhci-tegra.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c index 76f228e7443c..8d737bb4800b 100644 --- a/drivers/usb/host/xhci-tegra.c +++ b/drivers/usb/host/xhci-tegra.c @@ -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. */