[PATCH] net: phy: realtek: fix RTL8211F interrupt mode

Jerome Brunet jbrunet at baylibre.com
Mon Nov 13 08:36:02 PST 2017


On Sun, 2017-11-12 at 16:16 +0100, Heiner Kallweit wrote:
> After commit b94d22d94ad22 "ARM64: dts: meson-gx: add external PHY
> interrupt on some platforms" ethernet stopped working on my Odroid-C2
> which has a RTL8211F phy.
> 
> It turned out that no interrupts were triggered. Further analysis
> showed the register INER can't be altered on page 0.
> Because register INSR needs to be accessed via page 0xa43 I assumed
> that register INER needs to be accessed via some page too.
> Some brute force check resulted in page 0xa42 being the right one.
> 
> With this patch the phy is working properly in interrupt mode.
> 
> Signed-off-by: Heiner Kallweit <hkallweit1 at gmail.com>

Tested-by: Jerome Brunet <jbrunet at baylibre.com>



More information about the linux-amlogic mailing list