]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: phy: xilinx: Check interface type in ->config(), not ->probe()
authorMarek Behún <marek.behun@nic.cz>
Wed, 6 Apr 2022 22:33:05 +0000 (00:33 +0200)
committerRamon Fried <ramon@neureality.ai>
Sun, 10 Apr 2022 05:44:13 +0000 (08:44 +0300)
commitf961b3abf88d2922e064a0b83525929aab917f1f
tree3dab8dbda4366c1619349f427efc8d2ba0f0a8d4
parentc677fb1e3196e1be1fcbbdb04650eed262708317
net: phy: xilinx: Check interface type in ->config(), not ->probe()

We want to be able to have phydev->interface uninitialized during
->probe(). We should assume that phydev->interface is initialized only
before ->config().

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/phy/xilinx_gmii2rgmii.c