Thread (32 messages) 32 messages, 8 authors, 2022-07-08

Re: [PATCH RFC net-next v2 0/5] net: dsa: always use phylink

From: Hauke Mehrtens <hauke@hauke-m.de>
Date: 2022-07-06 19:06:52
Also in: linux-arm-kernel, linux-mediatek

On 7/6/22 18:27, Florian Fainelli wrote:
On 7/6/22 03:14, Vladimir Oltean wrote:
quoted
Hi Florian,

On Tue, Jul 05, 2022 at 09:42:33AM -0700, Florian Fainelli wrote:
quoted
On 7/5/22 02:46, Russell King (Oracle) wrote:
quoted
A new revision of the series which incorporates changes that Marek
suggested. Specifically, the changes are:

1. Patch 2 - use the phylink_get_caps method in mv88e6xxx to get the
     default interface rather than re-using port_max_speed_mode()

2. Patch 4 - if no default interface is provided, use the supported
     interface mask to search for the first interface that gives the
     fastest speed.

3. Patch 5 - now also removes the port_max_speed_mode() method
This was tested with bcm_sf2.c and b53_srab.b and did not cause 
regressions,
however we do have a 'fixed-link' property for the CPU port (always 
have had
one), so there was no regression expected.
What about arch/arm/boot/dts/bcm47189-tenda-ac9.dts?
You found one of the devices that I do not have access to and did not 
test, thanks. We do expect to run the port at 2GBits/sec on these 
devices however there is no "official" way to advertise that a port can 
run at 2Gbits/sec, as this is not even a "sanctioned" speed. I do have a 
similar device however, so let me run some more tests, we won't see a 
regression however since we do not use the NATP accelerator which would 
be the reason to run the port at 2Gbits/sec.
I will try this change on some devices with the lantiq gswip driver at 
the weekend.

On the SoC supported by the lantiq gswip driver the switch is integrated 
in the SoC and there is a internal link with more than 1GBit/s 
connecting the switch to the rest of the system. I think it is also 
around 2GBit/s. We can not configure the interface speed or many other 
interface settings for the link between the switch and the CPU. How 
should the device tree ideally look for this setup?

Hauke
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help