From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796347769; b=Ja5K32fdd09g/oBbXqwP0VtEdcv9rI2Fy+bOJqwfZSexo8ZGotV7Pb37G8ruuN2igxxP RxhwnKUO0lFzlD4/hLhL7z8w70koAfW/A1zofGWt2F7C3RMe4DzE9eeJLNqzqDq7MJr0R AczAt9bwEjzC1SY3pgRtmLge5PPAbprSMHeTRo+ftke2yySjLqL/V/DQA4shgwGEW9X3B YpyL5nqdHP6Y9BPuMV+3J14Ag5+L0IAnruCqE8TB7NFFM1Oilvg9suGe9iy9HIra0NjER Hp0Oc1wpa5wwSrj7Dtm3L3Zy51ye4xVbqAouS5baBAQEWNM4uPm9rmzoUxwF99Es6kA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796347769; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=RjW+HEX01jEhngdQmNZEyPVy0ux6z3XjpSLrOOaRZ/s=; b=nRMonajn0G+UmgGrcKtHD7OjSV/E3eIlkPipchdsgbgE2FGflA9FD0ZY2IjZuHs46K6D jcV/eO9K7ZZRHJL0/Bs/HVhM6yXt7WvwrZ/nONiHn28ByTyPaE7Hz5FvQA5L29ZxRMuVS cEE6gB6J0swzkW6vSEvrYChbUiFPiVMyPetSl6eAz6t/Fg4Q01KLHdbxnlrJXsrBwUtZc +JHcwtCzInEJwSWddhfBqQIZaoFfk97t91ilwVqYAoQvl0pTp/olpUSWOhNp1gdSQGVd3 5ayn9AZ4hWBTNVHKIKdbHEv1d4a+pqCv5Ili6phzxQKA1gJBy0Tof9VKaU5cu9JPR2w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GBuhouDb; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28B7F606A339 for ; Fri, 4 Dec 2026 01:29:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=GBuhouDb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34CB11F00897; Fri, 4 Dec 2026 01:29:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796347768; bh=RjW+HEX01jEhngdQmNZEyPVy0ux6z3XjpSLrOOaRZ/s=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=GBuhouDb+lY7meajnpNqhcWwd5yLFJ9iUWFb4qcGljtf+8Txx9pdlWKPPDL3OQ0Wn Peg5Q3huoDJDHcUhqt+VKSv4sFQh3T3TlTjgF8NesBd1tK5V35bkIvvuWz96t5gRkv nbzT3FiD7LCSoiPrFE7dQCEXS6prdWL5LpSWHp0cZcw5YYyoRMltHAOsQzNnkDCtQ3 33yD7sJ+NeSm7ilnWzR7m48JtfguzWbL0puN7+GnYhspfdxriu699Gj7K39zYGmtOS 9CmTge5XQdza3MKGUoZRG0luWMP+ch1HoCHYWmX5oUte2eaaavDi0tfajQZCKhZpRL L+0oPdDyBf9IA== Subject: Re: [PATCH net-next 2/3] net: phy: broadcom: Wire-up cable tests for BCM54210E From: netdev-bot+sashiko@kernel.org To: florian.fainelli@broadcom.com 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 Date: Fri, 04 Dec 2026 01:29:27 +0000 Message-ID: <179634776778.3146.8896083681114965544@kernel.org> In-Reply-To: <20261203004802.85707-3-florian.fainelli@broadcom.com> References: <20261203004802.85707-3-florian.fainelli@broadcom.com> X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 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? -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261203004802.85707-1-florian.fainelli%40broadcom.com