android_kernel_motorola_sm6225/drivers/net/ethernet/smsc
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
..
epic100.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
Kconfig net: smsc: Add support h8300 2016-01-15 15:14:23 -05:00
Makefile
smc91c92_cs.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
smc91x.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
smc91x.h net: smsc: Add support h8300 2016-01-15 15:14:23 -05:00
smc911x.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
smc911x.h net: smc911x: convert pxa dma to dmaengine 2016-03-18 22:23:59 -04:00
smc9194.c treewide: replace dev->trans_start update with helper 2016-05-04 14:16:49 -04:00
smc9194.h
smsc911x.c net: smsc911x: Fix bug where PHY interrupts are overwritten by 0 2016-06-27 04:21:15 -04:00
smsc911x.h smsc: replace WARN_ON() with WARN_ON_SMP() 2014-08-11 14:38:29 -07:00
smsc9420.c phy: Add API for {un}registering an mdio device to a bus. 2016-01-07 14:31:26 -05:00
smsc9420.h ethernet: Fix FSF address in file headers 2013-12-06 12:37:55 -05:00