projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c689c48
)
net: phy: Fix return value check phy_probe
author
Siva Durga Prasad Paladugu
<
[email protected]
>
Mon, 4 Mar 2019 15:02:11 +0000
(16:02 +0100)
committer
Joe Hershberger
<
[email protected]
>
Wed, 8 May 2019 22:27:00 +0000
(17:27 -0500)
Don't ignore return value of phy_probe() call as
the probe may fail and it needs to be reported.
Signed-off-by: Siva Durga Prasad Paladugu <
[email protected]
>
Signed-off-by: Michal Simek <
[email protected]
>
Acked-by: Joe Hershberger <
[email protected]
>
drivers/net/phy/phy.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/phy.c
b/drivers/net/phy/phy.c
index 04af916678622b153bb5ae1276eb1e5a1022d5ca..c1c1af9abdbe9a8a60c4de06bfea921fd6b3df12 100644
(file)
--- a/
drivers/net/phy/phy.c
+++ b/
drivers/net/phy/phy.c
@@
-671,7
+671,10
@@
static struct phy_device *phy_device_create(struct mii_dev *bus, int addr,
dev->drv = get_phy_driver(dev, interface);
- phy_probe(dev);
+ if (phy_probe(dev)) {
+ printf("%s, PHY probe failed\n", __func__);
+ return NULL;
+ }
if (addr >= 0 && addr < PHY_MAX_ADDR)
bus->phymap[addr] = dev;