From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.214.182 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796301420; b=aCgi1Oom/qHm6O8e9/NN8tIU4c9KtmtTl9xL4prGP+SxLvcELHYCZfTRIQfDndO91v7i VDnpovuQafcey+FQH0r425Jb2yOhG2bFJg7C8MLSARlMJFLwTwRSocR0i1Pru/RlgbjqK 2hsaV7slyBsDHSJ1w+zsTElBHUbTkLGJqWa/SwC/OW41pCAP1U903LLkpHtbVX7dj38IG a11ilyCR8w8GI0bC9+/XUfeCtqvjwzoFQ/ynInOjraVcq7Ljx4GVKh9zSXkKF8khuixvG pV3cB61g6IeKxS+Mjzgl/6f81lT9Ec1GEk/8GmqlCupy1ByamPnNeYQYQKnZLMpPwRQ== 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=2+c1KE3oeqs7uOlCVGQLbh5MhiuFEqdH05jhCiuvnAPi3OX1Ro1A6aZvz4PNzgeZuwtp Hp0WAtsRc0ExxJWcYfwRoiB85TdB6316S+OMhmE30ss79TyyWofjRBE94bFNpheMCvMv0 vFnRZ0uIcFQBomqUrYbfUyOcg9Dp0/0g4kzj0W2BrU38e26uKI24feYQxGlp7vunE/AxH orM5jcW0oRy4Vib86cB3lMwb1kUZzmhDakqKYqr8tLdV8knkOQuW3sZ+G4xhdqmAILt2P HpTFVKfaeVKUhhrzhUu/65ieC8ZDFeztY1xmeCzFD6mchpEZ/fQUDAmfZjLIbR4ZXcw== 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.182 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 8B909606A332 for ; Thu, 3 Dec 2026 12:37:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8B909606A332 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-f182.google.com with SMTP id d9443c01a7336-2f0918f9e6cso50380045ad.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=Htzr8bBi+mzI6FAii8Wy1DjTO7hB2wSROhZ64RrK7X8aI3kW0AorycFZD8nZdhq9gx K+N+ut4M7ASZya+m+HxqcRTOzJ30WXqlY0LPBcfbcnt61xcV8rBmcioPfqdXUeEBtQbC 40PWPOb7o7XEuVCyIlFHhWANDuMotH8LxqEPLvij/1R7fV01w0OC0aTSkab/j5vbMu2g mMrnuERn/1rQTom665ZJHFKBXzt+6NYk4zgY4/nrt8gWN1DbPMhrKdbsbW6nTAbx8+Uv h65FkB2VaIuCedFCwpw6fI+e+D4vsFxELQU1cV7hpt8I4r+uFvr36zWbfVAzY0nnO8s3 PZmA== X-Forwarded-Encrypted: i=1; AL+hErG2fFRLO5CfQdjE+xor3dOUhG7nSIiRUq5zxoGPKBe2edYS7FvDTA9b5gtRaP4vT1bO7FkIezz6N2CEKvfR@vger.kernel.org X-Gm-Message-State: APuU4Z8aXkSW7Php3ppEEZKAa5lyOcHrUQyVTsI7JXblBMd8Uj2euezw e3TLe/gi0EGLDPyMKRlx9tRuN1wdU3SE02az69Rc8UE+BzPJzACdvynP X-Gm-Gg: AZFdTZdLNeF/LAauUd2m8RNy8kDeln1yI2SQse93Emidel6z6T11ztAd85wBCfsIsyd QROiqHvvXoWRY92yIz9qxJEbWHcQyON4l4BLmbC6x1ozrauRJEtuRQcwZeR3peXRm7u8LqQbb+b i9+YOscQPj2/ZuFrwGsmVq8oMNUXnF+YFeGe+5DuNB5ZNmh8wT5iPgy8QPoeEcYA6JRBdn029Ut yT02WfIfIwThol51uxKP3QuXRsaA1aFG+nVyikMf+yqxe7r/BoZMLtjdmOz93rjJp/AnAAcBmw3 f/zewazspFKReqgoG009H3mSGWOlVIzGCYhMGwoqGZrtMCg5iGIWDXj2pVQYAb2WuWKNQk2MPBp +Qu/P2DA/wASJO3ng7JFTeVp6nzn4GvMLYXVBp27a0wvzaXjRtpbjOG80Wn+VEkp/hEIffkbPmj Fg7t9xNzgCVGxoomRRGwyo0Ho6PzEiZ0y6rYTaxlJGjrnQMdDZN9fRF6tGvYdC9Kzt5DTtA6B/T DcFVEdIrIbXHsi4YZDX9TzrF8ItvQ2UNMb+UKaTRiXuFnBIu0HCae4C27vYlFDRGU7mr3yyKK+d fSXX4XZB03ooudM/Son9SRgOaoYT8WxBUOb0JbejRZcuMZwUggYuFnwvTX4= 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-arm-msm@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