public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v1] net: eth-uclass: Change uclass driver name to ethernet
@ 2021-01-08  2:53 David Wu
  2021-01-08 22:45 ` Simon Glass
  2021-01-19 20:01 ` Tom Rini
  0 siblings, 2 replies; 17+ messages in thread
From: David Wu @ 2021-01-08  2:53 UTC (permalink / raw)
  To: u-boot

dev_read_alias_seq() used uc_drv->name compared to alias
stem string, Ethernet's alias stem uses "ethernet", which
does not match the eth-uclass driver name "eth", can not
get the correct index of ethernet alias namer. So it seems
change uclass driver name to match the alias stem is a more
reasonable way.

Signed-off-by: David Wu <david.wu@rock-chips.com>
---
 net/eth-uclass.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/eth-uclass.c b/net/eth-uclass.c
index e14695c0f1..3497a17db6 100644
--- a/net/eth-uclass.c
+++ b/net/eth-uclass.c
@@ -593,8 +593,8 @@ static int eth_pre_remove(struct udevice *dev)
 	return 0;
 }
 
-UCLASS_DRIVER(eth) = {
-	.name		= "eth",
+UCLASS_DRIVER(ethernet) = {
+	.name		= "ethernet",
 	.id		= UCLASS_ETH,
 	.post_bind	= eth_post_bind,
 	.pre_unbind	= eth_pre_unbind,
-- 
2.19.1

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2021-02-25 19:35 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-08  2:53 [PATCH v1] net: eth-uclass: Change uclass driver name to ethernet David Wu
2021-01-08 22:45 ` Simon Glass
2021-01-19 20:01 ` Tom Rini
2021-01-19 20:40   ` Tom Rini
2021-02-24 17:21     ` Michael Walle
2021-02-24 18:14       ` Vladimir Oltean
2021-02-24 18:16         ` Vladimir Oltean
2021-02-24 19:26         ` Michael Walle
2021-02-24 21:34           ` Vladimir Oltean
2021-02-24 22:51             ` Michael Walle
2021-02-25  2:31               ` Simon Glass
2021-02-25  7:57                 ` Michael Walle
2021-02-25 15:40                   ` Tom Rini
2021-02-25 15:55                   ` Fabio Estevam
2021-02-25 19:31                     ` Simon Glass
2021-02-25 19:35                       ` Ramon Fried
2021-02-24 17:36     ` Michael Walle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox