From nobody Mon Feb 9 06:34:47 2026 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 328992F5A0A; Thu, 30 Oct 2025 10:24:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.84.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761819870; cv=none; b=Yj1fhbca6QmgrO/EkE+I1iBAim/Phb4RXpXR8PzhzZIqQXWQB9lMnQQHgVOI7NOQ/t3CPgVnbAeD17s7PQAop0rpVh1+Lrh4oazp2G+p3J6uu6jD+U03zjD42ORShHgPgI2wyVFV+7ilghLU8r7ZZXktl/tbJ/VYbZCJQLRJsn8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761819870; c=relaxed/simple; bh=bjGY5hODqCejSH9ODN/FinKpeyl4BAwFHF0wER2tDu4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hM8HXY2yMXNvlKDPMQA5Hf0nfg1QI7WLdLzlf6AgrolpO5DSGWFPmdGNdKhK5b/auookRLVHErx1TXznCpBVBVJGUmQRKPUeLXd3eeMfZgORREytuD9RhiXYXyihKNA6ZPUH208fkX2XfU3IjVnSlBX9EKjvRmlHpNKiNffkzdU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Owwl7WWy; arc=none smtp.client-ip=185.246.84.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Owwl7WWy" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id B0EB71A1778; Thu, 30 Oct 2025 10:24:26 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 86C9F6068C; Thu, 30 Oct 2025 10:24:26 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6F29C102F2500; Thu, 30 Oct 2025 11:24:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1761819865; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=etITqC8jMduEZk9ztensAl81JNZKmJfNvh2+zyGxRok=; b=Owwl7WWybvrT1Z8Yo3fx2q4sNl0TlauRyJQiLrYVmeIGttEKzq33li3cuSW0SuI1hwWscT MIKA1eId/jlI1o4zrLrgRKBj3pO5ms9JRHFOmMvogAOlXZFw5r8LFhTL24ij6WIjZlv1Cw 7YPSUCIvfaYBJK/yWcR7zcLpKe0R6SJ+v597rH0IAr65DFD8DnTh2N5S8ZGR9kSDrrq1BV YHCJxP2q4NfzrQSJn5Q0cRBp/C853ssipiERIpAgz5S7RTDI6KEcPgmmBSeK2gt/sG7B2/ Fr0XeScLi2VeJzON8sd2OygTUrN2rNpbBKmo6XlzPPLDNAj65o0oDPcdyem5dQ== From: Maxime Chevallier To: Andrew Lunn , davem@davemloft.net, Eric Dumazet , Jakub Kicinski , Paolo Abeni , Russell King Cc: Maxime Chevallier , Simon Horman , Boon Khai Ng , =?UTF-8?q?Alexis=20Lothor=C3=A9?= , Thomas Petazzoni , netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH net-next 1/4] net: altera-tse: Set platform drvdata before registering netdev Date: Thu, 30 Oct 2025 11:24:14 +0100 Message-ID: <20251030102418.114518-2-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20251030102418.114518-1-maxime.chevallier@bootlin.com> References: <20251030102418.114518-1-maxime.chevallier@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Last-TLS-Session-Version: TLSv1.3 Content-Type: text/plain; charset="utf-8" We don't have to wait until netdev is registered before setting it as the pdev's drvdata. Move it at netdev alloc time. Signed-off-by: Maxime Chevallier Reviewed-by: Andrew Lunn --- drivers/net/ethernet/altera/altera_tse_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/altera/altera_tse_main.c b/drivers/net/et= hernet/altera/altera_tse_main.c index 3f6204de9e6b..6ba1249f027d 100644 --- a/drivers/net/ethernet/altera/altera_tse_main.c +++ b/drivers/net/ethernet/altera/altera_tse_main.c @@ -1150,6 +1150,7 @@ static int altera_tse_probe(struct platform_device *p= dev) } =20 SET_NETDEV_DEV(ndev, &pdev->dev); + platform_set_drvdata(pdev, ndev); =20 priv =3D netdev_priv(ndev); priv->device =3D &pdev->dev; @@ -1394,8 +1395,6 @@ static int altera_tse_probe(struct platform_device *p= dev) goto err_register_netdev; } =20 - platform_set_drvdata(pdev, ndev); - priv->revision =3D ioread32(&priv->mac_dev->megacore_revision); =20 if (netif_msg_probe(priv)) --=20 2.49.0