]> git.dujemihanovic.xyz Git - u-boot.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)
commit4d47ea22790dfb85bffbe10492d1767fea9ce79f
tree4dfbc915622cc9b7a5ed5bf717a250bcbfe01ba1
parentda84e409df150fa366609d5f5bede6f65326c405
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