From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796301420; b=DvNDJq4qUDBjd9UCrg/pYh9R23bMj9o3rZS9HlqDy2tGeSJHkvsdUPivZ5zxEaPISxCU a09idP0NIcSYuS2bjyT0U070UbRkI6B0dLRi2O06uoKR+YZwmtgabKsYNPFhR4LVrKBAI uIlg9F7JQ/9kFTxmhj0lM4qfyerTEHxH7Ka9ASs2zz6PmBgjqBh+vKqbQxfNUmexPbDQ2 pHk4WIAg2hZoxwxFLbsZBCJ0s53MGLEy32Tl/8mPDXwDKht/mkKwYiXET+jZpWUyCbuNA KDwoUFdif/xQ6SQkfqqSm04IBUn1ue7u4VxWwD+f9xE2eAh98DMDWDZnYUCTTJBKsMQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796301420; 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=Iff3le1o8WCxJeS9BHavYiLGPYGck3tU7jfp4Lov3MasT8BrBM+CQ/FBHJv+VKoJrHbC ftfdr+qL/xrCzqEL1QhIrl1c/vEH4Nv3KejGfyF56X0PjdVi91Lfhjn87WD8FHYY3jGcu YKtB22MURKK6ndFG2LXhywQ2QilDLSe07mzmqdlZQJ5ixGipgTRfgKrrkAFNuRjAzbfW6 wIriAeAAoN6m4HYw3jOzaJudzCMYQXD4lNmGlG1m9ZyuX0EBWEpWbP3lWTG7mGCsyPbco xVxQJ2Ofc+SVPc8KtVZlFZz3Yv6XAWL5PBLL4NKRir7vztZOm9s0hmw6lF0k+GYjQvg== 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.173 Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 84674606A322 for ; Thu, 3 Dec 2026 12:37:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 84674606A322 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-f173.google.com with SMTP id d9443c01a7336-2f0481b35c9so86570155ad.0 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=Vfl9H68UZjpHYT7MlVGKkmAGfwh89Mu+ydXG1smA4/EG+96dieOvDTUtIBh2iFINv6 GsBv5eARFTHboK+MXFduBWNXhTzulNJoJXPvgwlYeerwGSZGtj0ufD06ybhfA9IAAbtv fSY8B27MZPqCsr8qs/YbwLvlF05sw07xCtdvJrxH7c2fIRfO7PwnZAJe6VQb0AI1Z3c7 axp6jVzmp47xqdQXQ8Q5wV9zWYFQH4HbewtAqyYkEn2VkpO/HSspMP+A48NsYucTULW+ BqgTP0xiK1i9OwWq9zDocpnR7C9swFL9DF/zlo3lL02IqkkGwG68w3bm1rTBKhwNAJDo R4AA== X-Forwarded-Encrypted: i=1; AL+hErHANHn89vwkbqUeYzw8TBT7zagsj/C96gjgQlSyye9cD0nKKfbZN4ICM1iwCUzOrNAqiJTa5iMlYtctyA8=@vger.kernel.org X-Gm-Message-State: APuU4Z+p6r0UaIym5VH8D1jkxmQigvoUn2UnbO0wpNhsMlY1VVDuCKe3 EB45cII544rIevXAw4ikUP+MW3B1tbKEiR2jHINDyaeo/Es27lmqRsnh X-Gm-Gg: AZFdTZeoYS+4wS0p0iRxIc685CCh7NiU9ETN5ltKDTcULpUpXUSS9CmVhrabtifnFyN 2aVhDnX0fFmxaFjmlD9YUPJNORSgVG4Pv8DXITzQplER7kXW+OOPdV2CaMXn+dWFX+sPMmiUiOR /+hoHtXlXMi9kk6zGHSAJKNxsw6lMMfrnG3AWC+1gliLhpt6qqoNiaYWXNY8cjEBKZiB+NRUIhC j9J4GQWakmt5qicVF455ud6YPyxqOxkT5UJGEX3uNK+x1ls6eYtbk7eseNOIW5PZA6Cf8oWh7+4 EbAwYvYboz+5Zh4rYaZwJP0qzHp33CzhdrFGX8V82juoZNf09UeE5HQedAfmDWjXyc4GAt9tW13 0ZoowtFB9UCRbZjya1znL9tAx2yKJs+bIAv4AbgGzseSOqjouH8dI150YPzgZjfKxmdgmqa/dmz sswPkmnooNusfMuAd4VYrsOMP+aPwnu6FILjQZvq6KvVK9bG1gKMNIKasdu2TTmOJ+vGIn8WtTS l6xdLF9lEej09aKQyowCFrg5Gt2iufOHa6aaaQ1UTYBThbA++UhBIctZOjwH+u51dWzYbru8L2k dd1SrsUeQ0IRSED2pwARE/h3P16XhQ1WSeov+Dmn5Vtf/Eh02IdXuoABc6U= 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: linux-kernel@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