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:
b33d4a5
)
net: zynq_gem: Initialize phyreg variable
author
Michal Simek
<
[email protected]
>
Wed, 13 Jun 2018 08:33:49 +0000
(10:33 +0200)
committer
Joe Hershberger
<
[email protected]
>
Wed, 13 Jun 2018 18:54:18 +0000
(13:54 -0500)
In case of phyread()/phy_setup_op() timeout code is working with
uninitialized phyreg variable. Initialize this variable to make sure
that code it not working with random value.
Signed-off-by: Michal Simek <
[email protected]
>
Acked-by: Joe Hershberger <
[email protected]
>
drivers/net/zynq_gem.c
patch
|
blob
|
history
diff --git
a/drivers/net/zynq_gem.c
b/drivers/net/zynq_gem.c
index d1436807ffb9012a9958a76fd841fe110bf54e6d..14564e365e6e18db0de58f7e46b5d1bdfa2c1a67 100644
(file)
--- a/
drivers/net/zynq_gem.c
+++ b/
drivers/net/zynq_gem.c
@@
-244,7
+244,7
@@
static int phywrite(struct zynq_gem_priv *priv, u32 phy_addr,
static int phy_detection(struct udevice *dev)
{
int i;
- u16 phyreg;
+ u16 phyreg
= 0
;
struct zynq_gem_priv *priv = dev->priv;
if (priv->phyaddr != -1) {