From patchwork Wed Jan 8 14:04:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Marginean X-Patchwork-Id: 239264 List-Id: U-Boot discussion From: alexandru.marginean at nxp.com (Alex Marginean) Date: Wed, 8 Jan 2020 16:04:08 +0200 Subject: [PATCH] net: phy: add XFI, USXGMII types to is_10g_interface helper Message-ID: <20200108140408.3167-1-alexandru.marginean@nxp.com> The helper is used to reset PHYs on connect and it determines the clause to use (c22/c45) based on interface type. This fixes 'PHY reset timed out' warnings in console for USXGMII/XFI PHYs. Signed-off-by: Alex Marginean --- include/phy.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/phy.h b/include/phy.h index 6ace9b3a0c..8debb28fad 100644 --- a/include/phy.h +++ b/include/phy.h @@ -249,7 +249,9 @@ extern struct phy_driver gen10g_driver; /* For now, XGMII is the only 10G interface */ static inline int is_10g_interface(phy_interface_t interface) { - return interface == PHY_INTERFACE_MODE_XGMII; + return interface == PHY_INTERFACE_MODE_XGMII || + interface == PHY_INTERFACE_MODE_USXGMII || + interface == PHY_INTERFACE_MODE_XFI; } #endif