From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A8CB348784; Mon, 18 Dec 2023 20:25:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="DKmhIaq3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D1E2C433C8; Mon, 18 Dec 2023 20:25:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1702931105; bh=aNcZ8KCjQ4wTA3LAgkU+9PTng+8ysyMp8kqdwJLg4TY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DKmhIaq3UNnEUf+MSprOgUlHYZe3L1heaVCV9khnZR5Rn4MiNcWXh6QXfq4Hu3Ava /4mgdH9O8Yxc5xV+jzquXW/UtTXf/1QFu2PYkLtvpPfXeAimaaMf5vZYHlTHut+aRk AVUjBQe3DbKd4zvg6+pYSJ8v+2/HS0sxmTgmlUYA= Date: Mon, 18 Dec 2023 21:25:02 +0100 From: Greg Kroah-Hartman To: Daniel =?iso-8859-1?Q?D=EDaz?= Cc: stable@vger.kernel.org, patches@lists.linux.dev, Rasmus Villemoes , Jakub Kicinski , Sasha Levin Subject: Re: [PATCH 4.19 13/36] net: stmmac: use dev_err_probe() for reporting mdio bus registration failure Message-ID: <2023121847-surfacing-hardhead-78ab@gregkh> References: <20231218135041.876499958@linuxfoundation.org> <20231218135042.347406314@linuxfoundation.org> <6299a661-5ae5-4f7c-9fa7-96c4e7ae39eb@linaro.org> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6299a661-5ae5-4f7c-9fa7-96c4e7ae39eb@linaro.org> On Mon, Dec 18, 2023 at 12:45:42PM -0600, Daniel Díaz wrote: > Hello! > > On 18/12/23 7:51 a. m., Greg Kroah-Hartman wrote: > > 4.19-stable review patch. If anyone has any objections, please let me know. > > > > ------------------ > > > > From: Rasmus Villemoes > > > > [ Upstream commit 839612d23ffd933174db911ce56dc3f3ca883ec5 ] > > > > I have a board where these two lines are always printed during boot: > > > > imx-dwmac 30bf0000.ethernet: Cannot register the MDIO bus > > imx-dwmac 30bf0000.ethernet: stmmac_dvr_probe: MDIO bus (id: 1) registration failed > > > > It's perfectly fine, and the device is successfully (and silently, as > > far as the console goes) probed later. > > > > Use dev_err_probe() instead, which will demote these messages to debug > > level (thus removing the alarming messages from the console) when the > > error is -EPROBE_DEFER, and also has the advantage of including the > > error code if/when it happens to be something other than -EPROBE_DEFER. > > > > While here, add the missing \n to one of the format strings. > > > > Signed-off-by: Rasmus Villemoes > > Link: https://lore.kernel.org/r/20220602074840.1143360-1-linux@rasmusvillemoes.dk > > Signed-off-by: Jakub Kicinski > > Stable-dep-of: e23c0d21ce92 ("net: stmmac: Handle disabled MDIO busses from devicetree") > > Signed-off-by: Sasha Levin > > Signed-off-by: Greg Kroah-Hartman > > --- > > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > > @@ -4428,7 +4428,7 @@ int stmmac_dvr_probe(struct device *devi > > ret = stmmac_mdio_register(ndev); > > if (ret < 0) { > > dev_err(priv->device, > > - "%s: MDIO bus (id: %d) registration failed", > > + "%s: MDIO bus (id: %d) registration failed\n", > > __func__, priv->plat->bus_id); > > goto error_mdio_register; > > } > > This patch doesn't do what it says it does. Hah, it really doesn't, good catch. I removed dev_err_probe() from the 4.19 tree as it didn't make sense to backport it so late in the release cycle of it (and it required many other follow-on fixes.) and so I fixed up this commit to build properly, but I didn't realize that all I did was properly add a \n to the string, the rest of the commit faded away. I'll just go drop this entirely, thanks for the review! greg k-h