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=1796093193; b=Ln3uCqSx1QDNA9+KfvtsL8wJv57fmRKr2xjivLZiBiLow3XDKDw3fKIfbYeFxqukO1+O Q4o4XriWiCSxtDT45VefAIEbAP6UPK5XliH0VQLhjX0ZfLKEHKNL6f/LdaSuVvsYcxuAU dSuIw6Xg6iIkphcom9hgnmVFIEUASDv+kuKClQIgGbvKqvjJ/NtAE8ppJwuS1MYzUoH/A 7sx0DSfsqUBwt6NXmlZZ3N1LL2WzCe3FqSKrbjdpXiM5vlzXEhyR8lO0+k7lEPaLXorhE ilFYy2czcPAV8PDurEaT/CZgwZNgwNV3sWBZt+Q0GgFgDrXK4KoP45pD3Cl0FAOjucA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796093193; 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=02ZAW9llEoGGrdMtOZ/5pSW06AnPKc5P74sWl7xT9m8=; b=lvbKa9R0XFmZLMTjUDZoGoLQohcRBY6UShgfmhM9jXZiKpzzAefcSlVULLIqlqgD4ndM skbT+mlydE3yYn3GrlDw9hYXnu9iKM3J8bER6INXEYeiigH5bXyplWJ6hDNYyoqdAccZy 53GaHb4belN42f0lmvmn02wOQnk8C/sW7hQD2glZ4j5NXd+0QfprgNUuRFLvG8TxDT+iP YbUOQvo4X3j7Byq3KLxaK13h4/P1iq/uvIf+d3Pr+aJVpf9VHxBaDVQNwBJ6QgEKYl+Im 4Z9BAyMSJTHvIlCcybFdymXjjo89N2JHELxWpSWsO4OPBIB+9zBfRRuNX0x9bAaulFQ== 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=CGLRaDBR; 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 012E3606A332 for ; Tue, 1 Dec 2026 02:46:32 +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=CGLRaDBR Received: by smtp.kernel.org (Postfix) with ESMTPSA id D47721F0089A; Tue, 1 Dec 2026 02:46:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796093192; bh=02ZAW9llEoGGrdMtOZ/5pSW06AnPKc5P74sWl7xT9m8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=CGLRaDBR+GK4/10pr3KDBq7GBuMJ/2HF1972ysZCDQeqnsISZKzYrWOXnqeHCIh/G qnSbiSUOlkwkShpZo4/LTFlhwF3YhI+WSIAnE7xgfRfwkjG0HFxIe9KiO9JWnBc0Zn g5+c0/P+qX3RTGUNo5hSOm0o5ydUUj9LPbhOFfM73PaIq3RBHUYFKx256iwbSh9dly CqK/Av/hhAjb1FRJlLvJ91sUnXp0y4r0bQ3hTxxJyAcNucmpJ5wwQqEr2FNbEYH8Cd zLt7oKtDqMlp17KsKia5ksDJhr83MuOQaIhqkMFsBw707wcZLMxcIcI1+6ioHUvHjQ hEdp59hsH9oPQ== Subject: Re: [PATCH 2/4] net: ethernet: smsc911x: propagate mdiobus_register() errors From: netdev-bot+sashiko@kernel.org To: 18255117159@163.com Cc: andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, linux@armlinux.org.uk, netdev@vger.kernel.org Date: Tue, 01 Dec 2026 02:46:31 +0000 Message-ID: <179609319140.3146.359103272669840910@kernel.org> In-Reply-To: <20261130023745.820141-3-18255117159@163.com> References: <20261130023745.820141-3-18255117159@163.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: ethernet: smsc911x: propagate mdiobus_register() errors" gives a reason for the change that the code… -- net: ethernet: smsc911x: propagate mdiobus_register() errors This patch changes smsc911x_mii_init() to return the error code from mdiobus_register(). Before, every registration failure was turned into the initial -ENXIO. > mdiobus_register() can return -EPROBE_DEFER. Return that error instead > of converting every failure to the initial -ENXIO so the driver can > defer correctly when probed from async context. [Severity: Low] Is the "probed from async context" reasoning accurate here? The driver core handles -EPROBE_DEFER the same way for synchronous and asynchronous probing. In both cases really_probe() puts the device on the deferred list. smsc911x_driver also does not set .probe_type: drivers/net/ethernet/smsc/smsc911x.c: static struct platform_driver smsc911x_driver = { .probe = smsc911x_drv_probe, .remove = smsc911x_drv_remove, .driver = { .name = SMSC_CHIPNAME, ... For in-tree users, can mdiobus_register() return -EPROBE_DEFER at all? smsc911x_mii_init() only sets mii_bus->parent, so bus->dev has no fwnode/of_node. That leaves two places in __mdiobus_register() that could defer: devm_gpiod_get_optional(&bus->dev, "reset", ...) and the per-PHY gpiod/reset lookups during the bus scan. Both depend on board lookup tables keyed on names like "smsc911x-" or "smsc911x-:01". A tree-wide search did not find any such tables. The change itself looks like a reasonable cleanup. smsc911x_drv_probe() now gets the real error (-EINVAL, -EIO, -ENOMEM, or -EPROBE_DEFER in board-file or out-of-tree setups) instead of a fixed -ENXIO. Could the commit message describe it that way and drop the async context wording? That would keep the patch from being read as a fix for a real deferral bug, for example when selecting stable backports. The lantiq_etop and smsc9420 patches in this series use the same wording. -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261130023745.820141-1-18255117159%40163.com