Skip to content
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

FS#2887 - ath79 port for TP-Link TL-WA830RE v1 doesn't detect LAN connectivity #6271

Open
openwrt-bot opened this issue Mar 6, 2020 · 5 comments
Labels

Comments

@openwrt-bot
Copy link

kiste:

I ported the TP-Link WL-WA83RE v1 from ar71xx to ath79 and noticed that the LAN LED doesn't turn off if the network cable is removed. The kernel doesn't detect the link status, the interface is always up.

AR7240 seems to be built [[https://forum.openwrt.org/uploads/default/original/2X/b/b2fcb0e740bc2232dc1bf8e20fa787ad71f06284.png|like this]], I don't understand what MAC/PHY is connected to what but ethernet works if [[https://github.com/openwrt/openwrt/blob/0b84b892516942f1b78e53665168c81aaa7f5256/target/linux/ath79/dts/ar7240_tplink_tl-wa.dtsi#L12|eth1 is enabled]]. I think the port status is only readable through the GE1 MDIO bus, but it isn't initialized. On ar71xx the switch gets initialized, on ath79 I could only see it if I add eth0 to the DTS, but that creates a second, unusable network interface and still doesn't connect the switch port's link status to the kernel's eth interface.

This probably also affects TP-Link TL-WA701ND v1, TL-WA730RE v1, TL-WA801ND v1 and TL-WA901ND v1.

@openwrt-bot
Copy link
Author

adrianschmutzler:

You could try to add the following to the DTS:

ð0 { status = "okay";
compatible = "syscon", "simple-mfd";

}

@openwrt-bot
Copy link
Author

kiste:

That brings the switch back and the link status is accessible via swconfig but I don't know how to connect that status to the network interface.

@openwrt-bot
Copy link
Author

adrianschmutzler:

I don't understand the latter part of that sentence.

@openwrt-bot
Copy link
Author

kiste:

swconfig shows if the cable is disconnected or not, dmesg doesn't. Sorry, wasn't very clear.

@openwrt-bot
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant