Hi Paul, On 07/24/2018 02:34 AM, Paul Burton wrote: > Hi Hauke, > > On Sat, Jul 21, 2018 at 09:13:57PM +0200, Hauke Mehrtens wrote: >> diff --git a/arch/mips/lantiq/xway/sysctrl.c b/arch/mips/lantiq/xway/sysctrl.c >> index e0af39b33e28..c704312ef7d5 100644 >> --- a/arch/mips/lantiq/xway/sysctrl.c >> +++ b/arch/mips/lantiq/xway/sysctrl.c >> @@ -536,7 +536,7 @@ void __init ltq_soc_init(void) >> clkdev_add_pmu(NULL, "ahb", 1, 0, PMU_AHBM | PMU_AHBS); >> >> clkdev_add_pmu("1da00000.usif", "NULL", 1, 0, PMU_USIF); >> - clkdev_add_pmu("1e108000.eth", NULL, 0, 0, >> + clkdev_add_pmu("1e10b308.eth", NULL, 0, 0, >> PMU_SWITCH | PMU_PPE_DPLUS | PMU_PPE_DPLUM | >> PMU_PPE_EMA | PMU_PPE_TC | PMU_PPE_SLL01 | >> PMU_PPE_QSB | PMU_PPE_TOP); > > Is this intentional? Yes > Why is it needed? Was the old address wrong? Does it change anything > functionally? The Ethernet driver is newly added in these patches, this entry was not used before. This has to match the device name and the device name is now named 1e10b308.eth because this only uses the register range of the pmac and not of the complete switch core, this is different to the old driver used in OpenWrt. The lantiq clock code should really be converted to the common clock framework so we can define this in device tree and do not need this code any more. I am planning to do this, but want to wait till the xrx500 clk code from these patches is in mainline: https://www.linux-mips.org/archives/linux-mips/2018-06/msg00092.html There are already some more recent versions available internally. > If it is needed it seems like a separate change - unless there's some > reason it's tied to adding this driver? > > Should this really apply only to the lantiq,vr9 case or also to the > similar lantiq,grx390 & lantiq,ar10 paths? The AR10 has a similar switch core, but I haven't tested this device with this Ethernet driver, but there is a good chance it works out of the box when the sysctrl.c gets adapted and the correct device tree is provided. I do not know exactly what the grx390 SoC is, this is probably some uncommon name for one of the Lantiq / Intel SoCs, I have to look this up. > > Whatever the answers to these questions it would be good to include them > in the commit message. I will update the commit massage for the v2. Hauke