summaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bonding_priv.h
diff options
context:
space:
mode:
authorJeremy Linton <jeremy.linton@arm.com>2016-06-22 12:40:50 -0500
committerDavid S. Miller <davem@davemloft.net>2016-06-27 04:21:15 -0400
commita37503bc387ce2434106d4bf4870bd73081c7355 (patch)
tree0c2ccedabab4d556c5dbdfb2356a0b60a57cdbc8 /drivers/net/bonding/bonding_priv.h
parentc40e4096bf0a12a76c349cbc4d1b2aa40a3d68cd (diff)
downloadlinux-a37503bc387ce2434106d4bf4870bd73081c7355.tar.bz2
net: smsc911x: Fix bug where PHY interrupts are overwritten by 0
By default, mdiobus_alloc() sets the PHYs to polling mode, but a pointer size memcpy means that a couple IRQs end up being overwritten with a value of 0. This means that PHY_POLL is disabled and results in unpredictable behavior depending on the PHY's location on the MDIO bus. Remove that memcpy and the now unused phy_irq member to force the SMSC911x PHYs into polling mode 100% of the time. Fixes: e7f4dc3536a4 ("mdio: Move allocation of interrupts into core") Signed-off-by: Jeremy Linton <jeremy.linton@arm.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bonding_priv.h')
0 files changed, 0 insertions, 0 deletions