From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.228 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796425581; b=tVeakOf512Xzw7JuU6vGmbFnLLuaUR0cjL7J7/8PeoKXTGc2UKHi+OOv2ePqtfxlYDYp d9y2G0sEKl7RR/RS1I9GvmMLBRsov2R/yWKy5gn4SxUGJBtwJlLmYGkpY9oKP1+MNCOYp V8lWuYDJk+Jh1uzX5IGZTYXrkMNVRFk8NsQ+BqI95pCQazwrLWHIIAQd/ecEhcx199eYA RSVAkLGlD1V4CrVbHOmdiPLewyB8NC8KAXz4bLmX5nh9st04T8Yam/67mhg6p3rLtDV8t loXRgMcow0I0mtPonjqqJNCBeaNUtOC9x1PRZIBkMBqaw5cyldM3YLqYTxeOLzny3VA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796425581; h=DMARC-Filter:Received:X-Google-DKIM-Signature:X-Gm-Message-State: X-Gm-Gg:X-Received:Received:X-Relaying-Domain:X-CFilter-Loop:Received: DKIM-Signature:X-Received:X-Received:Received:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:Content-Language: From:Autocrypt:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-DetectorID-Processed; bh=uasOePl+1AZ7yOsPTaB3iwtA6ErX/keEQzLr0/YHaCA=; b=ClWs2tSdz/hxHsZ45E9jjLyHaknWvHN2nfRdED0Ml1i1HdmfG+IC31gBfHG0ac9Ka6zc hseHT/ERoAaSxgWW+Fwf9+EX46wohbV1mpMnuIltN04ilT7f0nuXKFFl3o2CRbx0aII/1 u7Fssibd3IrwsLTqm283RXdseY72lqydMw77oPRxqWyZkMckA/IXj/b50s/L0G6H2tGby XSiY9cKR2xnDqJtCviWeJ+Enn5/zCJU6FxAOYBBDAzIq3lYxauB+C/URgutqk58HPdgzo CJbYk/niee8BGOCFEO0UrBGQuI90kS2Ii3I8zFzCBekjEzwfwza1nYhPTZLO9CNBJDg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=ZPg79I+T; arc=none smtp.remote-ip=74.125.82.228 Received: from mail-dy1-f228.google.com (mail-dy1-f228.google.com [74.125.82.228]) (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 960B1606A322 for ; Fri, 4 Dec 2026 23:06:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 960B1606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=broadcom.com header.i=@broadcom.com header.a=rsa-sha256 header.s=google header.b=ZPg79I+T Received: by mail-dy1-f228.google.com with SMTP id 5a478bee46e88-38190551625so1735360eec.1 for ; Fri, 04 Dec 2026 15:06:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796425580; x=1797030380; h=content-transfer-encoding:content-type:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=uasOePl+1AZ7yOsPTaB3iwtA6ErX/keEQzLr0/YHaCA=; b=xBU7u/Wm/NErZqgxX9c0RL35xA8H3fiS6d0S/EYDCpApgaHjg3RYr7x5i3I57doNG+ mtSy0MY9mLiKcNHkDI+NCjYdg0WoUKs4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:b0:387:465a:8e77 with SMTP id 5a478bee46e88-3875218dc24mr3025800eec.16.1796425579279; Fri, 04 Dec 2026 15:06:19 -0800 (PST) Received: from smtp-us-east1-p01-i01-si01.dlp.protect.broadcom.com (address-144-49-247-27.dlp.protect.broadcom.com. [144.49.247.27]) by smtp-relay.gmail.com with ESMTPS id 5a478bee46e88-387521ace5asm521294eec.13.2026.12.04.15.06.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Dec 2026 15:06:19 -0800 (PST) X-Relaying-Domain: broadcom.com X-CFilter-Loop: Reflected Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3b4232374d6so1877039a91.2 for ; Fri, 04 Dec 2026 15:06:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1796425577; x=1797030377; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uasOePl+1AZ7yOsPTaB3iwtA6ErX/keEQzLr0/YHaCA=; b=ZPg79I+Tt4K3lAQZ6ZD2noAIFGkzBn4WLTYoA7c4viR31O4epUwSzCZza+7P/OGMrO IsxJ0SH5QDCnO762OChyCngfCB8t91zHRrzLiNoZtYGFTEsPjoWbqFcQXUTGgibLNdN5 uAth3tqz2JcWQvp4Rl9IsYtRhWwPrXjbLc+YE= X-Received: by 2002:a17:90b:590f:b0:3b3:b6c3:ff5b with SMTP id 98e67ed59e1d1-3b5e067ebfamr2895939a91.36.1796425577284; Fri, 04 Dec 2026 15:06:17 -0800 (PST) X-Received: by 2002:a17:90b:590f:b0:3b3:b6c3:ff5b with SMTP id 98e67ed59e1d1-3b5e067ebfamr2895928a91.36.1796425576850; Fri, 04 Dec 2026 15:06:16 -0800 (PST) Received: from [10.67.48.245] ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b5e2569e3esm4725605a91.7.2026.12.04.15.06.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 15:06:16 -0800 (PST) Message-ID: <767887d1-258f-4263-a4d0-ee58e6ed6271@broadcom.com> Date: Fri, 4 Dec 2026 15:06:14 -0800 X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next 2/3] net: phy: broadcom: Wire-up cable tests for BCM54210E To: netdev-bot+sashiko@kernel.org Cc: netdev@vger.kernel.org, nb@tipi-net.de, f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com References: <20261203004802.85707-3-florian.fainelli@broadcom.com> <179634776778.3146.8896083681114965544@kernel.org> Content-Language: en-US, fr-FR From: Florian Fainelli Autocrypt: addr=florian.fainelli@broadcom.com; keydata= xsBNBFPAG8ABCAC3EO02urEwipgbUNJ1r6oI2Vr/+uE389lSEShN2PmL3MVnzhViSAtrYxeT M0Txqn1tOWoIc4QUl6Ggqf5KP6FoRkCrgMMTnUAINsINYXK+3OLe7HjP10h2jDRX4Ajs4Ghs JrZOBru6rH0YrgAhr6O5gG7NE1jhly+EsOa2MpwOiXO4DE/YKZGuVe6Bh87WqmILs9KvnNrQ PcycQnYKTVpqE95d4M824M5cuRB6D1GrYovCsjA9uxo22kPdOoQRAu5gBBn3AdtALFyQj9DQ KQuc39/i/Kt6XLZ/RsBc6qLs+p+JnEuPJngTSfWvzGjpx0nkwCMi4yBb+xk7Hki4kEslABEB AAHNMEZsb3JpYW4gRmFpbmVsbGkgPGZsb3JpYW4uZmFpbmVsbGlAYnJvYWRjb20uY29tPsLB IQQQAQgAywUCZWl41AUJI+Jo+hcK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k3n+ obFABEp5Rg6Qvspi9kWXcwCcfZV41OIYWhXMoc57ssjCand5noZi8bKg0bxw4qsg+9cNgZ3P N/DFWcNKcAT3Z2/4fTnJqdJS//YcEhlr8uGs+ZWFcqAPbteFCM4dGDRruo69IrHfyyQGx16s CcFlrN8vD066RKevFepb/ml7eYEdN5SRALyEdQMKeCSf3mectdoECEqdF/MWpfWIYQ1hEfdm C2Kztm+h3Nkt9ZQLqc3wsPJZmbD9T0c9Rphfypgw/SfTf2/CHoYVkKqwUIzI59itl5Lze+R5 wDByhWHx2Ud2R7SudmT9XK1e0x7W7a5z11Q6vrzuED5nQvkhAAoJEIExtcQpvGagugcIAJd5 EYe6KM6Y6RvI6TvHp+QgbU5dxvjqSiSvam0Ms3QrLidCtantcGT2Wz/2PlbZqkoJxMQc40rb fXa4xQSvJYj0GWpadrDJUvUu3LEsunDCxdWrmbmwGRKqZraV2oG7YEddmDqOe0Xm/NxeSobc MIlnaE6V0U8f5zNHB7Y46yJjjYT/Ds1TJo3pvwevDWPvv6rdBeV07D9s43frUS6xYd1uFxHC 7dZYWJjZmyUf5evr1W1gCgwLXG0PEi9n3qmz1lelQ8lSocmvxBKtMbX/OKhAfuP/iIwnTsww 95A2SaPiQZA51NywV8OFgsN0ITl2PlZ4Tp9hHERDe6nQCsNI/Us= In-Reply-To: <179634776778.3146.8896083681114965544@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-DetectorID-Processed: b00c1d49-9d2e-4205-b15f-d015386d3d5e On 12/3/26 17:29, netdev-bot+sashiko@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found more severe > issue(s) in other patches of this series. This mail is only an FYI, in case > you want to address the nit picks below when you respin. > > Low priority / nit picks for your consideration: > > - [Low] The commit message for "net: phy: broadcom: Wire-up cable tests > for BCM54210E" is cut off and leaves out what the patch actually… > > -- > > net: phy: broadcom: Wire-up cable tests for BCM54210E > > This commit enables cable diagnostics on the BCM54210E PHY. It sets > PHY_POLL_CABLE_TEST and adds bcm54xx_cable_test_start() and > bcm54xx_cable_test_get_status(). These wrappers turn off auto power-down > while the ECD test runs and restore it afterwards. > >> Wire up the cable diagnostics now that we have implemented the cable >> test feature, this was verified with a Raspberry Pi 4B using a BCM54210E >> PHY: >> >> Signed-off-by: Florian Fainelli > > [Severity: Low] > > This isn't a bug, but the commit message looks cut off. It ends with > "using a BCM54210E PHY:" and then goes straight to the Signed-off-by. Was > the verification output, for example the ethtool --cable-test results, > meant to go after that colon? > > The message also says the patch only wires up existing helpers. It > actually adds two wrappers in drivers/net/phy/broadcom.c that change the > PHY power management state during the test. > > bcm54xx_cable_test_start() clears BCM54XX_SHD_APD_EN before it starts ECD: > > /* The ECD run never finishes on a line without energy while auto > * power-down is enabled. > */ > val = bcm_phy_read_shadow(phydev, BCM54XX_SHD_APD); > ... > ret = bcm_phy_write_shadow(phydev, BCM54XX_SHD_APD, > val & ~BCM54XX_SHD_APD_EN); > > The SCR3 and APD shadow registers are then rewritten through > bcm54xx_adjust_rxrefclk() in two places: > > - in bcm54xx_cable_test_start(), when bcm_phy_cable_test_start() fails > - in bcm54xx_cable_test_get_status(), once the test finishes > > Could the commit message describe this auto power-down workaround and the > reason for it? Right now the code comment is the only record of it. > > Also, PHY_ID_MATCH_MODEL(PHY_ID_BCM54210E) masks the revision nibble. That > means cable test is enabled for every PHY matching this model ID. This > includes the Raspberry Pi 4B PHY, which is usually called a BCM54213PE. > Could the message say so? Yes absolutely, the commit message should be improved to described why we need to disable auto-power down as well as which specific PHYs this was tested on. pw-bot: cr -- Florian