From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796301421; b=KyYvYQYJYoMmczxaPxLdzEBIo+/+Pv5mk/ibQzU9/rHgRhd4KrkV4RjmrBQr8ckuxDK3 bLszBAr/dJcP91OENX9l9lJX7D7lTT78yIA2en/074IcMnWuG/mdYhxqEIws1vSJXYV/d FXAR46GR93lktEJ3hd8W/T/R33CHawcy3r5pzeSPSnw5vxFaE3Bftl3Yy7xeEHFjZ7HXm 1ehjb0hMRLFhHltKgle/5LahIP7fxENM8tqVBDOIpUK9chPZxkCBwmUQG7OQiOc+7rEsk 96Od74lMvy083J2jchmuZxIYwEOrmH/17Fepb/g3MQpWEbmTi6denVfGYhGHqFjt3Ew== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796301421; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=4UWMqVBad4i5+uPdoOv/OtzSuoXY8xBxjX2HDVzFy4Q=; b=3wDoRjlqFacOHAC5ovEq2iZuNk2s6sU/M7VTC3VYzKfPJ5N/GrUpXMuQR3m8tIs7kL30 k9vH9jYSSLUYKd9+0+ipwMw+gX048mehAMRDG7iqqQmiDGM8sIL/9lz4nM5tvrj/TkDXO dQBOvF/uejK/Tzu7398d0l5nGP1D41lkl29AiMiuKq3pLTdG+NDDxklysSXi5MFQUbfL5 2irj/U8f5/iJgesgFJzItnbALZOcU7GE4RAzSl5TRfa1QYy1aeCh6djhDxk0Gcgs7PPgu AIxIggDyRZ2AYEVRI57nPvzEt8MedBSKgUS7hAQde2Z/+8yx9jmT2nvoCnQtWHgscKg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=LOA3FyuW; arc=none smtp.remote-ip=209.85.214.181 Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9A599606A333 for ; Thu, 3 Dec 2026 12:37:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9A599606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=LOA3FyuW Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-2f0918f9e6cso50380065ad.1 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=vger.kernel.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=LOA3FyuWif6Lb/8z+f7g1rmKAEC4TKdwnr+ofVk52EH4QTleBMCrIvg+L/v1ZAeCpO ay3+5rLd5A40Ip64gVrQYZ7HpXe0/sPEAWqVLI3JrMWQZgwiqwPfyHu4rNQ5Mt467fx+ t9Nak+aVv6aQjeCL8qeoDzOtOaDl6OGc/C3LAEhXXic7+weoR16nJNNtC/ZLiRbeaymM 1Q8XpR5ziPi+pqKa3dq7FLuGuFYC/W8L3qlnJ2zPY71a87+HneLOx7etKBkG6QWp4q7A i9KeWJAxikl7fV90vUQ4OoDs63NUGUPHUoTg2XZc3QevE/5HF6PhExk9SEiE3uVAAFn0 /CFQ== 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/OtzSuoXY8xBxjX2HDVzFy4Q=; b=wh8e00EXQuVgbTnrqc9FYw76S0mnWJq/d0CcFGolmOyW/zKYQhycqAW5tppBBFPMjf Gt2DaN7HcBJxUceO+/OukwaL1HNY3jx0pjc8rmXT1JKmh1k/CU552otQjC+vlYb1chrp qqRBO8BywCkp0AklkAtGH+PH4M0jL5CNuHb2CLt4LTkba3Q1bCM/3EsQ4RE9GtN6JGIs vxfsWrH3+jM0fFN7EZdFLFJ2dqwlgAUry90HwNsrW9Hpvd/0N2wMFudWgFQX8DBD84Ag wJWMoqf9NRu/5jXG0WcRTaCQYD5hjrTT5fvOisreDEmHdwFKakouxqAH1k1Xs0tsjfcg zRhg== X-Forwarded-Encrypted: i=1; AL+hErHZQsYjPVWNGVJFEd4LQ/1Ce8QINYQcbnRNszVxDY0Mcfzis1jzdxjPJxg2uqvPRJhIU56hYRwaRA3o@vger.kernel.org X-Gm-Message-State: APuU4Z8o4l0Pne7wwbvNi5GpwawhC9jZao+bq8dZttxad53l4ZpERGo+ Eq2EhMqBofwPoVGIe7OLVGGM9fpPNirCXsrm0edEwjmdW2Sm1JfgyAUg X-Gm-Gg: AZFdTZfT5cAQTxf9s64HWVAPenY8cQ6t1iRhUfT/r+jIPVbIvj3+gFPL3XKenX8Pt1O 4TxQRNTA0DEertGaDl3zxq2kR3/S0pA7Pmi6UTRkK8wT4dazvjRbFH3ocy8IXyQDciAZ/pY95wx /gT3XVsWWwhuPH3l4H2fl1MnFv3dqmvwn9hQr9t4neQGVt0ak+hOdVoRpLLtoTKmK9gBZqSFJot vXzR6nkEwoqGXhToJxZLwnmYuRx/qrPek9AZDYa9+TB7s4y4CVqZw3Pskdl30TMF0xjPqg4V9aS DFRA41V3hZxznLiYL0+3DLgWRqGK7T+btkaHYt4GYeXI1UUOgRIt5XsX1wJtMXz9yTbXkGY81AB i6PX4xQbypQXbLXcRFKHL7TPCeEmr/q8xyCxOYUN7p5Y9faIC+6VcO2Qgaa0CSm/Gn6sHWRo/I7 vxgdJyWM0YvNAhNvVw4NuxURO5nwZZX86T2CYMBDsMwxdQ2KIsSq+bbJa5hTTI8SvzpwjH1FOkA Azht5h/VZq/m3snEgVTwJ/1TrIdeJWWxzeDez1AT4dRA8+qGpsV5lKzcCGutDhrh7By7Ls5QM3v G5wGXXJhPYpWPM6YAZmEOj8t4xmKNyzQLX07kMHd0eQu7V/4GB6982vj9s8= 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-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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