**** BEGIN LOGGING AT Sat Jun 08 02:59:57 2019 Jun 08 06:16:12 Hauke: DAMN! At first I was thinking you were psychic until I saw it wasn't about my question :) Jun 08 06:17:30 I need to get some ethtool of swconfig dev xxx set link working for mt7620. ethtool is giving me ENODEV for some silly reason and non of the Mediatek ethernet drivers support set_port_link Jun 08 06:17:40 *ethtool OR swconfig Jun 08 06:18:30 I totally don't understand what "eth0" is and eth0.1, eth0.2 Jun 08 06:26:47 But what I really don't understand is fe_phy_connect in drivers/net/ethernet/mtk/mdio.c :( Jun 08 08:06:43 dansan: eth0 is the ethernet interface connected to the cpu port of the switch, eth0.1 is a filter for traffic tagged with vlan id 1 on that interface, eth0.2 for vlan id 2 etc Jun 08 08:29:59 KanjiMonster: ahh, thanks for your response. What is the "cpu port of the switch"? My board is actually only using one of the ethernet ports supported by the mt7620a and I'm trying to figure out how to read and change its settings. Jun 08 08:31:16 I'm stepping through the driver's fe_get_link_ksettings and trying to find the actual phy_dev and I'm not even seeing phy_init (in drivers/net/ethernet/mtk/mdio.c) ever being called Jun 08 08:32:49 oh wait, I withdraw that last statement. I thought I added a printk to that function but I don't actually see it, oops Jun 08 08:33:35 bah, I edited the wrong copy of it Jun 08 08:37:20 KanjiMonster: oh wait, you mean that eth0 is the interface connected from the µC's internal ethernet interface to the internal switch device? Jun 08 08:40:29 If so, that could explain why there's no struct phy_device for the thing. Also, that would mean my only recourse is to implement the set_port_link function of struct switch_dev_ops? Jun 08 08:40:46 dansan: what are you trying to do? Jun 08 08:41:08 I need to change autonegotiate and duplex for a port on the swtich Jun 08 08:41:39 have you looked at swconfig dev switch0 show output? Jun 08 08:41:46 apparently, auto negotiate fails on some very expensive Cisco routers, so I need a way to manually set it Jun 08 08:42:20 oh yes, but changing the settings is currently not supported by any drivers (that I can see) except some broadcom drivers Jun 08 08:43:30 dansan: what device is this? Jun 08 08:43:41 For example, swconfig dev switch0 port 0 set link "duplex half speed 100 autoneg off" -- that results in "operation unsupported" It's an mt7620a Jun 08 08:44:17 I'm not using the actual device this fails on, but I get the same error on my board too Jun 08 08:44:51 Also I'm using 18.06.1 at the moment Jun 08 08:45:59 or more precisely: Failed to set attribute: Operation not supported Jun 08 08:50:13 i don't have any 7620's plugged in, have you looked at the mediatek reference manual (or whatever they call it) Jun 08 08:50:30 russell--: So more precisely, in the initialization of struct switch_dev_ops mt7621_ops set_port_link is not set Jun 08 08:51:17 russell--: Yes, their "Programmer's Guide" -- they write the worst docs! :) I see how to do it in there, but I guess it hadn't yet dawned on me that it's really not implemented anywhere yet Jun 08 08:52:30 So I guess that's the case? The thing that fooled me is that eth0 says link up and down when I unplug my ethernet cable Jun 08 09:01:30 dansan: yes, that's what I meant Jun 08 09:01:48 KanjiMonster: Thank you, that is SO helpful! :) Jun 08 09:02:27 KanjiMonster: Yeah, I just recompiled and rebooted and phy_init is never called -- which makes sense if there's no physical link aside from a tiny trace on a die Jun 08 09:02:52 OK, so set_port_link it is Jun 08 09:29:05 ldir: ah, I'm not sure I can Jun 08 10:33:18 ynezz: I think this is fixing the problems we see with the hardened user copy: https://www.spinics.net/lists/stable/msg306333.html Jun 08 10:33:37 when I searched for the error message I also found the linked fix for arm64 Jun 08 13:20:17 hello, I'm considering opening a PR to add a package for the bnx2x kernel driver and one for the corresponding firmware Jun 08 13:20:20 would that be OK? Jun 08 17:17:19 Does anyone else get perl locale warnings when pulling from the openwrt git server? Jun 08 17:17:35 eg. perl: warning: Setting locale failed. Jun 08 17:18:40 my understanding is that ssh is passing certain locale env vars across the git ssh session and I'm assuming the server doesn't have "LC_CTYPE = "en_GB.UTF-8" installed **** ENDING LOGGING AT Sun Jun 09 02:59:57 2019