Received: from mail-ej2-f43.google.com (mail-ej2-f43.google.com [74.125.228.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1E03D2F7F01 for ; Sun, 27 Sep 2026 15:36:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.228.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790523393; cv=none; b=IdD92bZgOPeZUMFf2twH2Mr8dq7tSzXFIuDHLCwRnC8APNeF7WSR1wzA+FJri2Xhs5AVsNINy78trFNplDXoRKokZrkT7hs+hP42HUMF/DiAbwT1m3ha8rHUzwabYCrgEQB34u0BRmdEz+wdIJihs2LuvnzBkENuI7I3lty5Bv4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790523393; c=relaxed/simple; bh=X9OlPvvbQwiUF/S4dqIDotr+ufXExBzARPNlDD08gQQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pzpo43vcrlbwnrqr0Onz7DO3FF95kkDC/9LPKB+sfvr9uZDJBRYacEisDonf7OaRedkYN2mR9CywMZWgpuDlzmJaTlGAH+kK2OdkgoteW3QQGccfax/I0KD8n7CyCqG6AQ77GCtqg6ITP67j/oU/b/9Wls81PFD1UYIZNa4UDs4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NhRrPFqh; arc=none smtp.client-ip=74.125.228.171 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.b="NhRrPFqh" Received: by mail-ej2-f43.google.com with SMTP id a640c23a62f3a-c2afb4e9977so211105866b.1 for ; Sun, 27 Sep 2026 08:36:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1790523390; x=1791128190; darn=vger.kernel.org; h=content-transfer-encoding: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=X9OlPvvbQwiUF/S4dqIDotr+ufXExBzARPNlDD08gQQ=; b=NhRrPFqh9nM+n3A3ctzUsHmHd+MwvZ/zyNbDoN1wopRjPhWFxq1lMYdNgBsPqQCgd0 hYNVVtFxMnlSdL9nubzzFHdkEuhmRSP+0FwjmNChR3dkMmuMITu9Ix9L8lNY0fyGVcLi 6AxUgmh4nTJtuu5ZzOGTGWw8FpHjFdHTHR8fM5ka1oVOudynt9ITivGkXdvQ+Y2WePld DVgJuhNszFl9YVGhja6SIhm0rlE5XPAxJGfry6ZppZDNtRfGaI5mE8pb6cVhPfZ3bH3z j4Hia0uF57zoYLMmOPFDuX74/Gp2JfmxXixcCw63DrWrEGIj/fN4RaVjAFGPWQM/tR4N 6UWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790523390; x=1791128190; h=content-transfer-encoding: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=X9OlPvvbQwiUF/S4dqIDotr+ufXExBzARPNlDD08gQQ=; b=HGuYLGoHyMyZZN9XGAJ9CROxBlWXsXV76dSh8+/GTFPj0qLyrc/6xsDVq2qmIL+6TW j+SDicbTbHMWLaEXfoFFo8Zk9IqOEokPnZO/bD1D0cKeCYGKUhyHoCxQchP4aGaVrW/o Ih+PxwySMXWVxa4/7FnGiU6iwBViFbH5Xz1Fn4mi2ZWaYJgZnON5JqgHS2Ws9rWbTP5i kGUzhwVnWMvrYzsSfPx3+nJUSfmhdQH1CbMvzWW2D96G+iORmt3fbAVALnIxpOj3YgWK RGeWU2FNm4o/QQeh6eVfdkbT4sPZBWXjj9u9+zxO1d9bF3BUs48K4hCbIjMC3HtBR7Jw Jsbw== X-Forwarded-Encrypted: i=1; AKwUvBwXUl9kCE7PUFDJSDPqUfAPb6M0msSroDvLXIic++cpFIwZiciZfinrD/b8+f/AbKxq9mGv2nyk3p6SWITP@vger.kernel.org X-Gm-Message-State: AFuF++mc2CA0wArPhS3UVqQto58/QfuMHUea2HHaVqfiURpOKAPFknSk 3aneEFFQj/PXqygFrQtpbSQmr1ZossjfE2KC8Ix3hXAV7XPNZdJvhOAx X-Gm-Gg: AYBFou080TDIcmMqRMrq6NesODX9ZKLX2G+2CWDO4R7Fzhf2UN4PLUM0x3pkfq7Mrhq kEa3+JfoBT/oCEui+O2FgUtbhObCWgirHgbCGRjeDpq0HmVcHXOmejBphu3F3dk/RRvZVn3Y8Qb 9RYIZC8ZPHGV5zOW1pv56rQNE9i6I1fCB1JWptSAP1kZvKODmDTSk6ugefhfNr3OFElKYwd9GAc nKrrS7OcRgrmRU8Au1QhstPPVmi+saUBlX+cJBVAX3RRRwbUmTnDbIxmbhqEF8HlHJxaaF8v4v/ w0FLBl+zo0HgCPEUZC5S9NxupMejTtMgUiJ9leuZFzb0iEM3Rqf7yIoHchT6ZsBYFuhd12DG3U8 iPAEyBzf1Mcr6/Aa9NR2tXuLuK7FXSrzYcQRd+zKOZe0U21E5jBLyBJSg4BaojHZl3aj1jdVj37 H0UCL4UE3uKAzjR8JU2sURURBnZo5EzbmKvCjabyqaR+M9YdBOOCEGijMt+SLXJF7BVrCZBGcUw bIh7cOS1HMWFzTwha+eQuGsq+rx2yWl1khYhkzjA4aFyEe4Oe7Ur3Qb X-Received: by 2002:a17:906:dc95:b0:c25:4f7c:8ec5 with SMTP id a640c23a62f3a-c2ac223aa65mr907640266b.23.1790523390248; Sun, 27 Sep 2026 08:36:30 -0700 (PDT) Received: from localhost.localdomain ([2a02:aa1:165c:44c1:e5d5:dfb4:8450:1cdb]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c2af8ac48ccsm256085366b.38.2026.09.27.08.36.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 27 Sep 2026 08:36:29 -0700 (PDT) From: Yongzhao Chen To: Andrew Lunn Cc: netdev@vger.kernel.org, "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Florian Fainelli , Vladimir Oltean , Christian Marangi , Heiner Kallweit , Russell King , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Ziyang Huang Subject: Re: [RFC PATCH net-next v3 4/5] net: dsa: qca8k: flag QCA8337 internal CPU PHYs for SmartSpeed Date: Sun, 27 Sep 2026 17:36:16 +0200 Message-ID: <20260927153616.2317-1-yongzhao.derek@gmail.com> X-Mailer: git-send-email 2.45.2.windows.1 In-Reply-To: References: <20260923215858.1653-1-yongzhao.derek@gmail.com> <20260923215858.1653-5-yongzhao.derek@gmail.com> <09d669ff-7aad-4414-880a-21c2e7bf2cd7@lunn.ch> <20260924234814.1734-1-yongzhao.derek@gmail.com> <20260925210153.8717-1-yongzhao.derek@gmail.com> <69b36e16-eece-4739-9208-96bd8e60943f@lunn.ch> <20260926082129.1632-1-yongzhao.derek@gmail.com> <426f9dcb-7473-48d5-a473-4435cc81312c@lunn.ch> <20260926215152.376-1-yongzhao.derek@gmail.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Andrew,=0D =0D > Also tricky. What we don't want is other developers trying to abuse=0D > this to turn it into a configuration option, rather than a hardware=0D > property. So i don't think it should be a generic property. Lets make=0D > it a qualcomm specific property. I would also put 'workaround' in the=0D > property name, again making it clear this is not intended to be used=0D > for configuration.=0D =0D Thank you, that makes sense. I'll use a Qualcomm-specific property with=0D "workaround" in its name, and word the commit message around what has=0D been observed, as you suggested: an on-board PHY-to-PHY connection=0D without a cable, where SmartSpeed has been seen to downshift=0D incorrectly. The workaround would then apply only to boards that set=0D the property, rather than to every QCA8337 internal CPU PHY as in v3.=0D =0D One correction to the data I sent you: as Ziyang pointed out, the=0D IPQ5018 short-cable DAC values were not being applied on this board,=0D because the driver does not shift the field value. My earlier A/B runs=0D were therefore done without them. I have repeated the A/B with the DAC=0D values corrected, and the result is the same. The details are in my=0D reply to Ziyang in this thread.=0D =0D Before sending the next revision, I would like to check one more=0D thing. In these boots the QCA8337 CPU PHY is reset about 38 s before=0D the IPQ5018 PHY has its DAC values configured. If setting the DAC before=0D the switch-side PHY starts negotiating avoids the downshift, that would=0D suggest fixing the initialisation order rather than adding a DT=0D workaround. I'll report back on what I find before sending the next=0D revision. If the workaround is still needed, I'll propose the property=0D name and binding with it.=0D =0D Thanks,=0D Yongzhao Chen=0D