From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.170 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796301420; b=VutXv/+8GCKKw05D7mbRyacrQ3zYickAEfs4RB3VU8GUvnhHpfulYZAn8bv4yjN74rDE b5F05R8NcEnM4n8eWey4ElgSTJWQhMqx/KjFKHBgClIGlXRRMUmLsP50qjz+oAR6Tuunl rBixv5HZdZViVjYlqajQNo0WZcExXfZHHrsX0lW0ud7RADM437s3B0ql11EBvHTsE8fB6 vZP1+sKFy/BPF1SJ/+9CFHPY444O69Z42iY1Zg/7CIG0qqpfFGvIFalxgRIivTFLKbOE9 dzToQsDJCT40nldCwNbEsXVN/lfGBV2j02OSy1WEYqvAA0nFVDmDFjNNy2GsQOvJ2mg== 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=40dwqryv8UWZcSHTnRkIyEMYdhY/QLWQJih4WfJDFjMDX/sioj5p+FL15ysGCzhLICYf AMRLhEVPU4YYEbrPvQzsJHY6bnKMaAmpqJ8ShF/4/QYTqE4FQRsTrn+5bIbv521uEsjUG j9nHCkm39lexWdhazGUPPbxZNO8AqGs31Pa59mU231x8arYtkHhfgs5ggBJehTeZPRTSF aUU6nfRgpfWYdS2p3lnBmHwR7GSrg5jSu135LVpN1iUOhcPjEVe1pS+XDLMw+mminm790 k+TIK8hcSEfdY4NGePpzwEoNhFUMTPimcT2WtVEfOi+FzsaM7EXry1uZNxOvT7uNR0Q== 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.170 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 8A154606A32F for ; Thu, 3 Dec 2026 12:37:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8A154606A32F 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-f170.google.com with SMTP id d9443c01a7336-2f0481b35c9so86570125ad.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=Ai8ZxgphMST+wrDQxoocuZ2CjVSqnPIERmIlhZ+bSsQj6dBQg6N860iWGWMJe0UEUB fG/fDKpX7sNU1pXbCTYSKZdYQCj6La+tyCzNYWJLI7ztr5B72pDLhGe1orwNOsQGFpq6 oyA6b4PZETIqaTnEMKWE4bBqw8TiIXH7r3XusQPnk/6/LmNh2S+o4IoSam6yInwG7dvx 1WpHENl32Q8leiszBZV5klvePAmbRZ8PP1j90KVFRKWXN6VnFWvJYqtk9kvHKVsB2y3l j33GbKVN6L4hfvjtP56xHe0LgoqGRaenJ3b6FVYIcqYYRw7/PeURUrDotxRROfd6plIb RAKw== X-Forwarded-Encrypted: i=1; AL+hErG+q46XWU1ph6iIAfVtDpPj2ecePhXp7i99ZXgjDF4oIc05K0rnDFrvFizRiXPnYhgbRutyv6s/4LM=@vger.kernel.org X-Gm-Message-State: APuU4Z884sxlAlX2NwTaddKXm5s8lK4yGZHX4eoSGXcWG3bNfTxu3v74 kaD4vxI8zwvPXZJvVbImQYaqq8bOnOujxGKPoBgFzYBNfx64P4g+ZJlV X-Gm-Gg: AZFdTZfPN1iEM8gIe1/TF2PsPQSYYtvzjihLTf+0+g/DqMEi7e6nUo9S4L3bWh4yrJ9 Cqw9HjJOXR7TaBWaKL+df/zE8lVagBxJvGRbhsqnHARFsFlfMHhEMsXawNT4o6kMkN39u8fcHXV LeRkpyaMLk9E7LIedPzN7Wg5s3Z3B/nnqI6vq9wkJUarWQSA5X9J45OqGwCoWMj0x2rWlM0nLHY KetPH4NtLFvNL27y7DmSJLUcZWFAgZirx0lhV2NTV7TJG87z8UHz6wZOC2Xk/opcANUcB3O18GK drKuSO0awzxEGaCFuQ6MKIRz/SpLcPe8BRhMMkvDxedG25Hock9LZ5XXVmLy7SeXcL9+EPRIkE8 4IZoZra0a5z9QSNdepI6qTlCz+mTdoHvpTgaCAglmpMo5EtU4+dyoHX/ErxROE41k0uhkuPCkiX N/NbH0eFpN+HKKxOzV9LXzYJgq1q1jalyCDXiEVsU8u1SaqPUEfrvGEzK1Qr2xN7V/az3EXXieP SQGHkcebZtFnA1+Dg9Z9Q9q81LJataIkR7GSOxEgnOgPyCg89wttBcZSg5Mln9+cRWMyL1O088p FntZ4IYPTObMZ4ksWfkNrkXhO7Pz8uxSR0GpfrAJehM6KER24RVm198e1Ww= 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-usb@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