]> git.karo-electronics.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:29:18 +0000 (22:29 +0200)
commit3e3251d73fa87cf15bb8b9d335bebd6cc21fe401
treece2ad4cb6401130d1af74fa196ae2cc326da78ef
parent64c40aa74895fb91b54108fa478ba28695289632
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