From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 37FF4606A32C for ; Thu, 3 Dec 2026 12:37:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=iPZ5/uuN; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=jHl05BJL DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=XHKf1f9+tX6/5UWTqVTOVsjuXg6mFcpP1nJ6s7Z3UIs=; b=iPZ5/uuNetXtVMIS2tSyifnO/p SHhXh+IRhBiemvXpobjpCyMzPFFLFkCtCvyBRWzFaH9Fa/zh7RA2Aczpu7rFx9DxzEGmxiSMVLpX/ VVjmzleejwlewBehd8U18SOc3TgC/HTzoDig4fa4n0hISRp6Sxx7hFtjr+MnGHRIZSXRwabUmXCMZ 37opRU0kTCmdC3/PSlwDQX0pUK1ce396rCkUrXScBj15o1ouifDck8wxtBUBF7LGpezrk1uN5S2vK gEh3z/6ewgZ5Otc4IHEmzJAsSGQG/7jcqMBO9uD8XmxVvHQgS1J/FcYIVbUYmoGKAnqThyBzxTPpL lrFK51uA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ63b-0000000EcI7-3DrV; Thu, 03 Dec 2026 12:37:03 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ63Y-0000000EcHb-3ptu for linux-phy@lists.infradead.org; Thu, 03 Dec 2026 12:37:02 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-2f03f3631b2so71374405ad.2 for ; Thu, 03 Dec 2026 04:37:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796301420; x=1796906220; darn=lists.infradead.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=4UWMqVBad4i5+uPdoOv/OtzSuoXY8xBxjX2HDVzFy4Q=; b=jHl05BJLwAZFEugfcA+xCOO2hoFqMhmAN+f9qkUrl94hTm6TS2iBhpLuCfAjvfaIFE pgmidZQwqMK8ducv7TC9teIsQwE5FLshmKoVrxMZokM86Dje+cyci26x+6ur4Wxtoyfg 8G3DY9zG/OG4+tytoMrBYj1JWAMgINquN4fGzF+HVAiBu8OnmVlA1uZ7mgX//iDUlLPq Y8PvRsfgx6MAtSXArNbqCSQJvB+KGwrG1CP38Y9+k3lnbv4RwW0ZaN5vF3e32CNFMRBe HXzsFASXo56LDkuSSMAWZfMqsnBHCSFfHTNqXeXXnjjbci83hokE8YDSVgZ0KCvKsBd/ FALw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796301420; x=1796906220; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=4UWMqVBad4i5+uPdoOv/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ATCUahmm9ycd2Z2ceQqinitmk+6TngpD04XA2Jt1xAiZmcRdxabekZFRaTT4qCIiM75z 3Y5xj76nnqrRuaboIjZYLX0I8qQPh6TJyJIox1cpekH577DxI1a7he/MKdGS6mBPy4YXJCSfkbB uryjCPwaan8wI8hBAEV60YZ1tJeL/468inJXyYaLEmGzpaax1DdQvvhkrLw= X-Received: by 2002:a17:903:987:b0:2f1:7311:e4bc with SMTP id d9443c01a7336-2f17311e633mr62965825ad.18.1796301419683; Thu, 03 Dec 2026 04:36:59 -0800 (PST) Received: from DESKTOP-NM9EKIA ([2001:e60:9548:cb42:c1e6:f88e:b63d:14fe]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2f162738c93sm48569255ad.43.2026.12.03.04.36.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 04:36:59 -0800 (PST) From: joonhoekim <26rote@gmail.com> To: Peter Chen Cc: Joonhoe Kim <26rote@gmail.com>, gregkh@linuxfoundation.org, Thinh.Nguyen@synopsys.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konradybcio@kernel.org, heikki.krogerus@linux.intel.com, abel.vesa@oss.qualcomm.com, abelvesa@kernel.org, wesley.cheng@oss.qualcomm.com, krishna.kurapati@oss.qualcomm.com, konrad.dybcio@oss.qualcomm.com, dmitry.baryshkov@oss.qualcomm.com, neil.armstrong@linaro.org, val@packett.cool, balaji.kalkonda@oss.qualcomm.com, tvlad744@gmail.com, effeffe99@gmail.com, prashanth.k@oss.qualcomm.com, yongxing.mou@oss.qualcomm.com, tapas.rana@oss.qualcomm.com, vkoul@kernel.org, jack.pham@oss.qualcomm.com, linux-phy@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 0/2] usb: dwc3: qcom: Keep USB 2.0 working in DisplayPort-only modes Date: Thu, 3 Dec 2026 21:36:50 +0900 Message-ID: <20261203123651.1186-1-26rote@gmail.com> X-Mailer: git-send-email 2.55.0.windows.5 In-Reply-To: References: <20261119124558.1548-1-26rote@gmail.com> X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261203_043701_002688_DC1D3808 X-CRM114-Status: GOOD ( 16.90 ) X-Spam-Score: -2.1 (--) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 From: Joonhoe Kim <26rote@gmail.com> On Thu, Dec 03, 2026 at 04:21:07PM +0800, Peter Chen wrote: > would you accept the notify solution from PHY to Controller? If you > accept, do you want to implement by yourself or could accept that we > (qcom) implement it? Hi Peter, Yes, I'm fine with the PHY notifying the controller, and please go ahead and implement it on your side. I'll drop this series. The Kaanapali DTS patch that adds "mode-switch" to the controller node [1] is then not needed either, and the same goes for Tapas Rana's Glymur patch [4]. A few things from testing this series that may save you time: - On SM7250 the clock selection in QSCRATCH is lost in system suspend (Filippo's "usb: dwc3: qcom: Restore UTMI PIPE clock on resume" [2]), so the controller has to apply the selection again on resume if the PHY is still in a DP-only mode. - Plugging the monitor in during s2idle woke the tablet, and in both tries the new mode arrived after the controller had resumed. I didn't see a switch while the controller was suspended, but I don't know that this order holds everywhere. - "phy: qcom: qmp-combo: Leave the USB PCS alone in DP-only mode" [3] (not yet applied) changes how qmp_combo_reconfigure_phy() powers off the USB PCS. qmp_combo_typec_mux_set() calls it, so it is next to where the notifications would go. I can test it on the Lenovo Y700 Gen 5 (TB323FU, Kaanapali) with the setups from v4: a USB-C monitor with an MST hub and a USB 2.0 hub (DisplayPort over four lanes), s2idle with the monitor attached, plugging it in during s2idle, and a USB-C hub with DisplayPort and USB 3. If you'd like it tested there, Cc me when it's posted. [1] https://lore.kernel.org/all/20261112113921.1143-1-26rote@gmail.com/ [2] https://lore.kernel.org/all/20261027-dwc3-utmi-resume-v1-1-ca9f0aa65783@gmail.com/ [3] https://lore.kernel.org/all/20261103135051.1668-1-26rote@gmail.com/ [4] https://lore.kernel.org/all/20261117113834.925310-1-tapas.rana@oss.qualcomm.com/ Thanks, Joonhoe Kim -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy