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]
Message-ID: <HK2PR03MB4307A5C2636F20F352FAB557E07B9@HK2PR03MB4307.apcprd03.prod.outlook.com>
Date:   Mon, 20 Dec 2021 03:24:30 +0000
From:   KARL_TSOU (鄒磊) <KARL_TSOU@...QCONN.COM>
To:     Andrew Lunn <andrew@...n.ch>
CC:     "woojung.huh@...rochip.com" <woojung.huh@...rochip.com>,
        "UNGLinuxDriver@...rochip.com" <UNGLinuxDriver@...rochip.com>,
        "vivien.didelot@...il.com" <vivien.didelot@...il.com>,
        "f.fainelli@...il.com" <f.fainelli@...il.com>,
        "olteanv@...il.com" <olteanv@...il.com>,
        "davem@...emloft.net" <davem@...emloft.net>,
        "kuba@...nel.org" <kuba@...nel.org>,
        "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH] net: dsa: microchip: Add supported ksz9897 port6

> -----Original Message-----
> From: Andrew Lunn <andrew@...n.ch>
> Sent: Friday, December 17, 2021 5:58 PM
> To: KARL_TSOU (鄒磊) <KARL_TSOU@...QCONN.COM>
> Cc: woojung.huh@...rochip.com; UNGLinuxDriver@...rochip.com;
> vivien.didelot@...il.com; f.fainelli@...il.com; olteanv@...il.com;
> davem@...emloft.net; kuba@...nel.org; netdev@...r.kernel.org
> Subject: Re: [PATCH] net: dsa: microchip: Add supported ksz9897 port6
> 
> On Fri, Dec 17, 2021 at 02:53:15AM +0000, KARL_TSOU (鄒磊) wrote:
> > The Microchip switch ksz9897 support 7 physical port, port 0/1/2/3/4
> connect to standard RJ45, port5 connect to PHY via MII to CPU and
> port6 connect to PHY via RMII (PHY ksz8081) on my custom board.
> 
> Please don't top post. Also, wrap your emails so lines around 70
> characters.
> 
> > I am facing a problem that I am not able to verify port6 via ping
> > command even though the link is up, port 0/1/2/3/4 are all works
> fine
> > by verifying with ping command expect port6
> >
> > When I go through port initialization code, a "if condition" below
> that aren't included port6 initialization.
> 
> This initialization is for the internal PHYs. They have to exist. External
> PHYs the switch driver should not assume exist. You normally connect
> to the CPU directly, not via back to back PHYs. Any there could be
> boards which use port 6 direct to the CPU without a PHY. So this
> change as is, is wrong.
> 
> You should be using a phy-handle in DT for port6, or port5, to indicate
> if a PHY is connected to the port. Do you have this property?
> 
> 	 Andrew

I understand how to use phy-handle in DT. But it seems DSA in kernel 5.10.y doesn't support connecting to external PHYs correct?
I have been studying parse DT code in net/dsa/dsa2.c





Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ