]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: mv88e6xxx: fix missing SMI address initialization
authorMarek Mojík <marek.mojik@nic.cz>
Wed, 6 Dec 2023 14:35:56 +0000 (15:35 +0100)
committerStefan Roese <sr@denx.de>
Tue, 5 Mar 2024 07:27:59 +0000 (08:27 +0100)
commitfaf96b20ee6e2784273ca95203c4d44629739b71
tree485aed765fdf92a5a53a84916e3d4681c24ed30a
parent773cb2bca7743406e34ab4f441fc0a8a0d200a19
net: mv88e6xxx: fix missing SMI address initialization

The mv88e6xxx driver does not currently initialize the smi_addr field, but
instead keeps the default zero value. This leads to driver being unusable
on devices where the switch is not on address zero of the mdio bus. Fix
this problem by reading the SMI address from device tree.

Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
Reviewed-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/net/mv88e6xxx.c