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 BBF6B1DE4EA; Wed, 6 Nov 2024 12:28:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730896129; cv=none; b=bo/RKvVC0MU4QJNFgXlmX03ne5ZGSBGHXlM4FsOE1XfQXcRCVlQfbG0M0KPrfZbMNCgceeUgIQ7UJeEkArPmy9kqDimV0ikcdlMbglx1zyBbdSQtXnvEJe0aTrDr9jjEHi1W66/+rHyy8BqjimZO+pyEST9T/c0tUNiFjhDP/dE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730896129; c=relaxed/simple; bh=Hpwi6f5mOlnOZbx55bYLTVnD06hRAqBxXQFcBMWAb5U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CTL7vPq1OhTyw0bghqn2v4Arx8AMBvtKSeWv5gsgNGqQ4NFRg3mDrtaXnrmVr53ZF2cS8rDzrOADPBceCuweZvIi+zle55OdhUQhi78Ep6sh97fSD134Tj7nqygmNV6Qq4TKUjS5uKkAAYaA0RxLE5zpweTImlz12hy66LGJ4bo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BURpzhw/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BURpzhw/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42EB2C4CECD; Wed, 6 Nov 2024 12:28:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730896129; bh=Hpwi6f5mOlnOZbx55bYLTVnD06hRAqBxXQFcBMWAb5U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BURpzhw/quyUSrJZLOZesyxDhhRzkN76nv2rwRExujIQReBS2SM3SbX1OTaLtQX0Y 3BjQgLp0QfzvD9rx6kIJ+85wX6CxZcxr2ckk5TRS4F2CCUH2ChWcAn/YSjCnSJH9rz 9AD0WRaFE6Ez3ueNyBwdcOTv/gR5qAQwENJkSdco= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Daniel Palmer , Simon Horman , "David S. Miller" , Sasha Levin Subject: [PATCH 6.11 099/245] net: amd: mvme147: Fix probe banner message Date: Wed, 6 Nov 2024 13:02:32 +0100 Message-ID: <20241106120321.648266570@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241106120319.234238499@linuxfoundation.org> References: <20241106120319.234238499@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.11-stable review patch. If anyone has any objections, please let me know. ------------------ From: Daniel Palmer [ Upstream commit 82c5b53140faf89c31ea2b3a0985a2f291694169 ] Currently this driver prints this line with what looks like a rogue format specifier when the device is probed: [ 2.840000] eth%d: MVME147 at 0xfffe1800, irq 12, Hardware Address xx:xx:xx:xx:xx:xx Change the printk() for netdev_info() and move it after the registration has completed so it prints out the name of the interface properly. Signed-off-by: Daniel Palmer Reviewed-by: Simon Horman Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/amd/mvme147.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/amd/mvme147.c b/drivers/net/ethernet/amd/mvme147.c index c156566c09064..f19b04b92fa9f 100644 --- a/drivers/net/ethernet/amd/mvme147.c +++ b/drivers/net/ethernet/amd/mvme147.c @@ -105,10 +105,6 @@ static struct net_device * __init mvme147lance_probe(void) macaddr[3] = address&0xff; eth_hw_addr_set(dev, macaddr); - printk("%s: MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n", - dev->name, dev->base_addr, MVME147_LANCE_IRQ, - dev->dev_addr); - lp = netdev_priv(dev); lp->ram = __get_dma_pages(GFP_ATOMIC, 3); /* 32K */ if (!lp->ram) { @@ -138,6 +134,9 @@ static struct net_device * __init mvme147lance_probe(void) return ERR_PTR(err); } + netdev_info(dev, "MVME147 at 0x%08lx, irq %d, Hardware Address %pM\n", + dev->base_addr, MVME147_LANCE_IRQ, dev->dev_addr); + return dev; } -- 2.43.0