From: Alexandru Marginean Date: Sun, 24 Nov 2019 21:04:41 +0000 Subject: [U-Boot] [PATCH 5/6] arm: dts: ls1028a: adds Ethernet switch node and its dependencies In-Reply-To: <5cd1a5ff72caafe763676d1acc4fdb3d@walle.cc> References: <20191122013659.2480-1-alexandru.marginean@nxp.com> <20191122013659.2480-6-alexandru.marginean@nxp.com> <5cd1a5ff72caafe763676d1acc4fdb3d@walle.cc> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Michael, On 11/24/2019 1:11 AM, Michael Walle wrote: > Am 2019-11-22 02:36, schrieb Alex Marginean: >> The definition follows the DSA binding in kernel and describes the >> switch, >> its ports and PHYs. >> ENETC PF6 is the 2nd Eth controller linked to the switch on LS1028, it is > > nitpicking.. LS1028A > > >> not used in U-Boot and was disabled. > > it should be checked that the connected enetc port should be enabled. > otherwise this driver goes awry. On LS1028A if mater Eth is disabled (ENETC PF2) there is a crash, I assume that's what you bumped into. From the looks of it that's caused by a hardware issue. For others reading this, the issue is making PCI PF5 (the switch) unable to use its internal MDIO registers if PF2 (master Eth) is disabled. I don't think I want to have switch driver code check on the ENETC functions, this should end up in a SoC erratum with the recommendation to have PF2 enabled when using the switch. On other platforms having a master Eth disabled means traffic through the switch won't work, but should not crash U-Boot either, uclass code seems to be fine in that regard. Thanks for the review and for the comments, I'll send a v2 for this series. Alex > > [snip] > _______________________________________________ > U-Boot mailing list > U-Boot at lists.denx.de > https://lists.denx.de/listinfo/u-boot