]> git.baikalelectronics.ru Git - uboot.git/commit
net: mvneta: Remember fixed link instead of PHY address in priv data
authorMarek Behún <marek.behun@nic.cz>
Wed, 27 Apr 2022 10:41:47 +0000 (12:41 +0200)
committerStefan Roese <sr@denx.de>
Wed, 4 May 2022 05:05:51 +0000 (07:05 +0200)
commitf19a58c528b3f246805849a8de9f5213d7ad32ed
tree4dfbc915622cc9b7a5ed5bf717a250bcbfe01ba1
parenta822f72688efc2719cbf5c41c4d50e9ecc8bb44c
net: mvneta: Remember fixed link instead of PHY address in priv data

We don't need to remember PHY address anymore, because since using DM
MDIO for connecting PHY, the address is parsed by mdio-uclass from
the ofnode.

But the driver uses a special value of the address to signal fixed link
usage.

Drop phyaddr add fixed_link in driver private structure. This simplifies
code a little.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/net/mvneta.c