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] [day] [month] [year] [list]
Date:   Fri, 15 Dec 2017 09:54:38 +0100
From:   Andrew Lunn <andrew@...n.ch>
To:     Pavel Machek <pavel@....cz>
Cc:     Tristram.Ha@...rochip.com, f.fainelli@...il.com, muvarov@...il.com,
        nathan.leigh.conrad@...il.com, vivien.didelot@...oirfairelinux.com,
        UNGLinuxDriver@...rochip.com, netdev@...r.kernel.org
Subject: Re: [PATCH net-next 1/1] net: dsa: microchip: Add Microchip KSZ8895
 DSA driver

> > I also have a simple utility to communicate with that registers file to read/write
> > register individually.  Is there a standard Linux utility for that
> > function?
> 
> I don't think standard utility exists. Binary file which can be
> written by userspace shoudl be enough.

mii-tool will allow you to read PHY registers. The kernel API it uses
allows you to read any register on the MDIO bus.

>    spi@0 {
>         compatible = "microchip,ksz8895";
> 	...
>  	ports {
>  		port@4 {
>  			reg = <4>;
>  			label = "cpu";
>  			ethernet = <&mac0>;
>  			fixed-link {
>  			    speed = <100>;
>  			    full-duplex;
>  			    };
>  		};
>         };
>  };
> 
> On one side, and
> 
>  mac0: ethernet@...f0000 {
>        phy-mode = "rmii";
>        status = "okay";
>        fixed-link {
>        		  speed = <100>;
>  		  full-duplex;
>    };
>  };

Are the MAC connected back-to-back, or do you have PHYs in the middle?

mac0 you have phy-mode = "rmii";. You can put the same in the port@4,
but i don't know if the driver looks for it, and configures the MAC as
needed.

	Andrew

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ