]> git.ipfire.org Git - people/ms/u-boot.git/commit
net: phy: realtek: Disable interrupt on Realtek Ethernet PHY drivers
authorCodrin Ciubotariu <codrin.ciubotariu@freescale.com>
Fri, 13 Feb 2015 12:47:58 +0000 (14:47 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 20 Apr 2015 22:57:11 +0000 (17:57 -0500)
commit3cee1388927015fc96edcd6e3ed707cb3a5fa26b
tree543cce278c8d469f9db1660651b20f28e28415c2
parent1733259d25015c28c47990ec11af99b3f62f811c
net: phy: realtek: Disable interrupt on Realtek Ethernet PHY drivers

Some Realtek Ethernet PHYs, like RTL8211D(G/N) and RTL8211E(G), have
interrupts enabled by default. If the interrupt is not treated later by
the OS and the PHY's interrupt line is enabled and shared with other
interrupts, the system will get an interrupt storm. This patch disables
the interrupt for PHY devices that use one of the current Realtek
Ethernet PHY drivers. Some of Realtek Ethernet PHYs, such as RTL8211B(L)
have the interrupt masked. In this case, the functionality of the PHY
should not be afected since this patch brings INER and INSR registers to
their default values.

Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@freescale.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/realtek.c