Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3027136rwb; Mon, 15 Aug 2022 16:25:25 -0700 (PDT) X-Google-Smtp-Source: AA6agR7o1kfeYbsLuxAZYhKZhbnEOReomh2ng9RlENruDFahsq78d5XVM5vZBTVyTJRccGn7hZVf X-Received: by 2002:a17:90a:fd06:b0:1f3:29d8:72d8 with SMTP id cv6-20020a17090afd0600b001f329d872d8mr29883061pjb.23.1660605925203; Mon, 15 Aug 2022 16:25:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605925; cv=none; d=google.com; s=arc-20160816; b=sit7yX4Ezo7e0s6xcFMyeQeNEH0TZl0taETtz97xArvUSA5C3/ULMGBSZYEjyMw1oL X6vywBcRkW3zjx59O67Bc/MgCAkoie85y8pYg2eWC2aaMCfzgkKrXtl+kL536cMF6w+N o/Tb2d/TOu0Fjlj09eg8hBGPD2tgTG5bQf3F49AXBowDRHIi5Si437hs7kS+v1ptgDqU Zm529te6Jxzb8oW5Kz9ZdtHIXm1ZpNLuqB8nODhapK0p2Dhay1kglSAwZaAj0iYsqozB zn8U1a7yECLUSKdEnIuIHZQTi/MbzMrtOWVZuyG8fW/CXr8cX8yLN85YooGF6m/gVkog yLNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=7wapU16PcJjihEuRJbT75DUyxjwih5ujXfQzGfYBndE=; b=qUYYYdzvjCtoTGiWWhAWhq5C+lqITbmlT9Ks5eazSULLJC1akUY2J13SvckZQPJFI+ N2TQTQeZLircm3jEZ2EcHU8Ru+PaRnQFJE+GpIDmfGFn6jRIZfqLGBbD42CF9/ZmIBAQ ZYafhGshMiLBGIwrzA0VScu335QNoMZTpjYvffa4w6N7pQsOCRf+bwK/2lM7pYL7fOqb jTKU+FtIYifWZRtJ2K+PqHE4VQgNvds2pF55Th5klEf4OzJf1VO+ZPjhF94qcRHBdPNX oXNaWr6tXJn8yt8pbCa6UkzCjeDNA73Ixb23vWEXh/W3GTdAY/w7zfAckdjHf1IYgqJ7 9arg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="O/x+rVDO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l2-20020a170903244200b0016d9f9bdccfsi13928110pls.417.2022.08.15.16.25.13; Mon, 15 Aug 2022 16:25:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="O/x+rVDO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352910AbiHOXJS (ORCPT + 99 others); Mon, 15 Aug 2022 19:09:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352815AbiHOXGT (ORCPT ); Mon, 15 Aug 2022 19:06:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4D871415CE; Mon, 15 Aug 2022 12:58:54 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8B37FB80EB1; Mon, 15 Aug 2022 19:58:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C83C1C433D6; Mon, 15 Aug 2022 19:58:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593532; bh=IrnIOX7I/KNoLv78351gqETiUbl/nD5t/8ewY3lYHk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O/x+rVDO+fZc3fQsOIQzoE/BwhqIRnGY0O9Uop0bP9/RHmobne0qJ3xJaekk59zRn q29J3+7Uknu1Orwtsl9sdiLiOybSdiYCExc1CToAGHiEnGaVFyuDhOxHpUztdjXwSa D8SoujoMWyqChx9DeVG7epdd0q/OLRsE8PVAjIPw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sumit Garg , Daniel Thompson , Bjorn Andersson , Sasha Levin Subject: [PATCH 5.19 0284/1157] arm64: dts: qcom: qcs404: Fix incorrect USB2 PHYs assignment Date: Mon, 15 Aug 2022 19:54:00 +0200 Message-Id: <20220815180450.969622989@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sumit Garg [ Upstream commit 58577966a42fc0b660b5e2c7c9e5a2241363ea83 ] Currently the DT for QCS404 SoC has setup for 2 USB2 PHYs with one each assigned to USB3 controller and USB2 controller. This assignment is incorrect which only works by luck: as when each USB HCI comes up it configures the *other* controllers PHY which is enough to make them happy. If, for any reason, we were to disable one of the controllers then both would stop working. This was a difficult inconsistency to be caught which was found while trying to enable USB support in u-boot. So with all the required drivers ported to u-boot, I couldn't get the same USB storage device enumerated in u-boot which was being enumerated fine by the kernel. The root cause of the problem came out to be that I wasn't enabling USB2 PHY: "usb2_phy_prim" in u-boot. Then I realised that via simply disabling the same USB2 PHY currently assigned to USB2 host controller in the kernel disabled enumeration for USB3 host controller as well. So fix this inconsistency by correctly assigning USB2 PHYs. Fixes: 9375e7d719b3 ("arm64: dts: qcom: qcs404: Add USB devices and PHYs") Signed-off-by: Sumit Garg Reviewed-by: Daniel Thompson Signed-off-by: Bjorn Andersson Link: https://lore.kernel.org/r/20220711083038.1518529-1-sumit.garg@linaro.org Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/qcom/qcs404.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qcs404.dtsi b/arch/arm64/boot/dts/qcom/qcs404.dtsi index d912166b7552..c8b7d8eb5996 100644 --- a/arch/arm64/boot/dts/qcom/qcs404.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs404.dtsi @@ -548,7 +548,7 @@ usb3_dwc3: usb@7580000 { compatible = "snps,dwc3"; reg = <0x07580000 0xcd00>; interrupts = ; - phys = <&usb2_phy_sec>, <&usb3_phy>; + phys = <&usb2_phy_prim>, <&usb3_phy>; phy-names = "usb2-phy", "usb3-phy"; snps,has-lpm-erratum; snps,hird-threshold = /bits/ 8 <0x10>; @@ -577,7 +577,7 @@ usb@78c0000 { compatible = "snps,dwc3"; reg = <0x078c0000 0xcc00>; interrupts = ; - phys = <&usb2_phy_prim>; + phys = <&usb2_phy_sec>; phy-names = "usb2-phy"; snps,has-lpm-erratum; snps,hird-threshold = /bits/ 8 <0x10>; -- 2.35.1