Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet
Jeremy Linton a37503bc38 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: e7f4dc3536 ("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>
2016-06-27 04:21:15 -04:00
..
2016-06-10 23:34:42 -07:00
2015-09-29 21:11:13 -07:00
2016-03-01 15:19:43 -05:00
2016-04-18 14:53:21 -04:00
2016-02-25 16:51:05 -05:00
2016-01-10 22:50:14 -05:00
2016-02-17 16:15:45 -05:00
2016-06-19 10:47:33 -07:00
2016-06-16 14:24:06 -07:00
2016-05-20 19:50:07 -04:00
2015-07-08 16:04:06 -07:00