Skip to contentSkip to conversation

mt7986 doesn't allow to re-enable ethsys clock gates after they have been disabled

BUG Eugene Konev 2 participants 2 messages Mar 12, 2023 – Mar 17, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

When ethsys clocks (eth_fe_en, eth_gp1_en, eth_gp2_en, eth_wocpu1_en and eth_wocpu0_en) are disabled calling clk_enable on them doesn't enable them again (appropriate bits in the register stay 0).
This prevents using mtk_eth as module, because kernel disables all unclaimed clocks with clk_disable_unused.

maintainer
#1 lore raw

+CC relevant people.

Hi Eugene,

Quoted 6 lines · Eugene Konev

When ethsys clocks (eth_fe_en, eth_gp1_en, eth_gp2_en, eth_wocpu1_en and eth_wocpu0_en) are disabled calling clk_enable on them doesn't enable them again (appropriate bits in the register stay 0).
This prevents using mtk_eth as module, because kernel disables all unclaimed clocks with clk_disable_unused.

Is this a regression? Were you able to bisect the issue to see which commit introduced this behavior?

Regards,
Matthias