]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: phy: the NC-SI phy device do not require mdio bus
authorJacky Chou <jacky_chou@aspeedtech.com>
Mon, 15 Jan 2024 10:34:47 +0000 (18:34 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 26 Mar 2024 23:58:26 +0000 (19:58 -0400)
commitf146c446e51184a33deb798e8169aaf654c044a6
tree890a73363a9cf69b7a3c3db0c9d65567c642d8c0
parentf5dbfc82a90b2333bfee76906df883ba86a85f56
net: phy: the NC-SI phy device do not require mdio bus

As with fixed-link phy device, the NC-SI phy devive does not
require an mdio bus. So, a condition is added to check the
NC-SI phy id to avoid accessing the bus pointer that is NULL.

Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
drivers/net/phy/phy.c