-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mt7530 doesn't work on bpi-r3 if mtk_eth is built as module #102
Comments
You can add printk in code,but why do you want eth and switch driver as module? Device is useless when you have no real rootfs (initrd). Else you should report this on kernel mailinglist...at least if 6.3-rc1 (without additional patches) is affected too |
I want to build debian-style all-modules kernel image for several different devices. I run debian installed to emmc so having drivers in modules is not a problem. |
I have found the root cause of the issue. Clock gates in ethsys can't be enabled, once they have been disabled and mtk_eth doesn't work. I've sent a mail describing problem to linux-mediatek. Not sure if it have reached the list yet, as I can't subscribe to it.
Not sure if it is correct way though as I don't have hardware documentation. |
thx, but please send this to linux kernel mailinglist (scripts/get_maintainer.pl drivers/clk/mediatek/clk-mt7986-eth.c) and let discussion begin :) |
@ejka have you send patch to mailing-list? looks like this is really a mt7986-only problem, so i guess you found the right solution code seems to be different now, so i cannot apply the patch on 6.6-rc1, params for GATE_ETH are passed to external macro GATE_MTK...maybe we can set clocks to critical in another way maybe we can use GATE_MTK_FLAGS instead of GATE_MTK defined both in drivers/clk/mediatek/clk-gate.h as you use critical for all clocks we can set this in macro...have you tried with only some of them defined critical? something like this:
|
Ah, if this is due to clocks being disabled after boot, there is a boot param to stop them being disabled. One can use the boot param until the driver supports enabling the clock it needs. So, I don't think one really needs to add critical to them. |
When both mt7530 and mtk_eth are built as modules, probing for mt7530 fails with error:
If mtk_eth is changed to built-in, everything works fine.
Tested on 6.1-main and 6.3-rc branches.
Any ideas how to debug this further?
The text was updated successfully, but these errors were encountered: