* Ethernet stopped working after commit "ARM64: dts: meson-gx: add external PHY interrupt on some platforms"
@ 2017-11-10 22:30 Heiner Kallweit
2017-11-12 0:14 ` Heiner Kallweit
0 siblings, 1 reply; 3+ messages in thread
From: Heiner Kallweit @ 2017-11-10 22:30 UTC (permalink / raw)
To: linus-amlogic
Hi Jerome,
after commit b94d22d94ad22 "ARM64: dts: meson-gx: add external PHY
interrupt on some platforms" ethernet stopped working on my Odroid-C2.
AFAIK you meanwhile also have an Odroid-C2 for testing. Does it work for you?
Rgds, Heiner
^ permalink raw reply [flat|nested] 3+ messages in thread
* Ethernet stopped working after commit "ARM64: dts: meson-gx: add external PHY interrupt on some platforms"
2017-11-10 22:30 Ethernet stopped working after commit "ARM64: dts: meson-gx: add external PHY interrupt on some platforms" Heiner Kallweit
@ 2017-11-12 0:14 ` Heiner Kallweit
2017-11-12 15:02 ` Heiner Kallweit
0 siblings, 1 reply; 3+ messages in thread
From: Heiner Kallweit @ 2017-11-12 0:14 UTC (permalink / raw)
To: linus-amlogic
Am 10.11.2017 um 23:30 schrieb Heiner Kallweit:
> Hi Jerome,
>
> after commit b94d22d94ad22 "ARM64: dts: meson-gx: add external PHY
> interrupt on some platforms" ethernet stopped working on my Odroid-C2.
>
> AFAIK you meanwhile also have an Odroid-C2 for testing. Does it work for you?
>
> Rgds, Heiner
>
After some more checking I found that the RTL8211F INER register doesn't seem
to accept writes. If I read back the INER register value in
rtl8211f_config_intr() I always get 0x0000, no matter which values I write to
the register before.
If no interrupt is triggered by the chip it's clear that ethernet isn't working.
I add Shengzhou who submitted the RTL8211F support as I'm curious whether anybody
ever used the RTL8211F successfully in interrupt mode.
I have some doubts as the code doesn't enable the interrupt for finished aneg
(only the one for link change).
Or may there be chip versions w/o interrupt support?
Rgds, Heiner
^ permalink raw reply [flat|nested] 3+ messages in thread
* Ethernet stopped working after commit "ARM64: dts: meson-gx: add external PHY interrupt on some platforms"
2017-11-12 0:14 ` Heiner Kallweit
@ 2017-11-12 15:02 ` Heiner Kallweit
0 siblings, 0 replies; 3+ messages in thread
From: Heiner Kallweit @ 2017-11-12 15:02 UTC (permalink / raw)
To: linus-amlogic
Am 12.11.2017 um 01:14 schrieb Heiner Kallweit:
> Am 10.11.2017 um 23:30 schrieb Heiner Kallweit:
>> Hi Jerome,
>>
>> after commit b94d22d94ad22 "ARM64: dts: meson-gx: add external PHY
>> interrupt on some platforms" ethernet stopped working on my Odroid-C2.
>>
>> AFAIK you meanwhile also have an Odroid-C2 for testing. Does it work for you?
>>
>> Rgds, Heiner
>>
> After some more checking I found that the RTL8211F INER register doesn't seem
> to accept writes. If I read back the INER register value in
> rtl8211f_config_intr() I always get 0x0000, no matter which values I write to
> the register before.
> If no interrupt is triggered by the chip it's clear that ethernet isn't working.
>
> I add Shengzhou who submitted the RTL8211F support as I'm curious whether anybody
> ever used the RTL8211F successfully in interrupt mode.
>
> I have some doubts as the code doesn't enable the interrupt for finished aneg
> (only the one for link change).
>
> Or may there be chip versions w/o interrupt support?
>
> Rgds, Heiner
>
OK, eventually I was able to solve the riddle. Because register INSR is accessed via
page 0xa43 (BTW, didn't find this page documented somewhere), I assumed that register
INER is on a specific page too.
I did a brute force check and checked on which pages register 0x12 can be changed.
This is the case on several pages, however page 0xa42 sounded most reasonable as it
is next to INSR page 0xa43.
And indeed, setting INER on page 0xa42 actually enables the interrupt and now IRQ
mode works. I'll submit a patch for it.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-11-12 15:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-10 22:30 Ethernet stopped working after commit "ARM64: dts: meson-gx: add external PHY interrupt on some platforms" Heiner Kallweit
2017-11-12 0:14 ` Heiner Kallweit
2017-11-12 15:02 ` Heiner Kallweit
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox