lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 19 Jun 2020 10:47:43 +0200
From:   Kurt Kanzenbach <kurt@...utronix.de>
To:     Andrew Lunn <andrew@...n.ch>
Cc:     Vivien Didelot <vivien.didelot@...il.com>,
        Florian Fainelli <f.fainelli@...il.com>,
        "David S. Miller" <davem@...emloft.net>,
        Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org,
        Rob Herring <robh+dt@...nel.org>, devicetree@...r.kernel.org,
        Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
        Richard Cochran <richardcochran@...il.com>,
        Kamil Alkhouri <kamil.alkhouri@...offenburg.de>,
        ilias.apalodimas@...aro.org
Subject: Re: [RFC PATCH 9/9] dt-bindings: net: dsa: Add documentation for Hellcreek switches

Hi Andrew,

On Thu Jun 18 2020, Andrew Lunn wrote:
>> +Ethernet switch connected memory mapped to the host, CPU port wired to gmac0:
>> +
>> +soc {
>> +        switch0: switch@...f240000 {
>> +                compatible = "hirschmann,hellcreek";
>> +                status = "okay";
>> +                reg = <0xff240000 0x1000   /* TSN base */
>> +                       0xff250000 0x1000>; /* PTP base */
>> +                dsa,member = <0 0>;
>> +
>> +                ports {
>> +                        #address-cells = <1>;
>> +                        #size-cells = <0>;
>> +
>> +                        port@0 {
>> +                                reg = <0>;
>> +                                label = "cpu";
>> +                                ethernet = <&gmac0>;
>> +                        };
>> +
>> +                        port@2 {
>> +                                reg = <2>;
>> +                                label = "lan0";
>> +                                phy-handle = <&phy1>;
>> +                        };
>> +
>> +                        port@3 {
>> +                                reg = <3>;
>> +                                label = "lan1";
>> +                                phy-handle = <&phy2>;
>> +                        };
>> +                };
>> +        };
>> +};
>> +
>> +&gmac0 {
>> +        status = "okay";
>> +        phy-mode = "mii";
>> +
>> +        fixed-link {
>> +                speed = <100>;
>> +                full-duplex;
>
> Hi Kurt
>
> The switch is 100/100Mbps right? The MAC is only Fast ethernet. Do you
> need some properties in the port@0 node to tell the switch to only use
> 100Mbps? I would expect it to default to 1G. Not looked at the code
> yet...

No, that is not needed. That is a hardware configuration and AFAIK
cannot be changed at run time.

Thanks,
Kurt

Download attachment "signature.asc" of type "application/pgp-signature" (833 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ