From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 48001C433EF for ; Wed, 29 Sep 2021 23:21:22 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2032261504 for ; Wed, 29 Sep 2021 23:21:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2032261504 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9F42980EFB; Thu, 30 Sep 2021 01:21:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="mu5yFqgO"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4902E80D2E; Thu, 30 Sep 2021 01:21:15 +0200 (CEST) Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E112680607 for ; Thu, 30 Sep 2021 01:21:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bmeng.cn@gmail.com Received: by mail-yb1-xb2c.google.com with SMTP id w19so9063106ybs.3 for ; Wed, 29 Sep 2021 16:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yszaNynEHKGvNL8J8AgVjt+AmO9pUXxuhCk8Q9ktMJU=; b=mu5yFqgOFzCeShZC0ZMR4fyDiZn4JDQhfk/8eYYpJjTIn/KMG+q8FIYG6QSNe9q9lW aphqHVQy44U0JGi2GqV7mw240afGyPXgowTv1C+RrrgV5qs0MIhwSv++ODQ6g/QCii1/ VVI3IdBVnNPsNNGlGbOpaCn3vqtZyIWs1MLzfus0WXlqBxL6KFzPBMb8OEcoWDD7anm0 86sWPWVTMLOA1xCG0y4aeL7UR0Bfl+yMyNxkUHrcxeJqHD9EQo6oPI67GJwiW9bq8wWb MxtCG6IFOfrQOmSz7k1UOS42CAcu9avcDVoK9GcXqf9b5cD4UcQcO6WFQbAon137O6KM otGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yszaNynEHKGvNL8J8AgVjt+AmO9pUXxuhCk8Q9ktMJU=; b=K+FTrFgha/LydXa4RZELnwKX9ecOjcO+liApI75/whzrNY28Fm1f5S5KCXbAFXmsH7 yAbdNgX3xiDLuM9mf1lcQJkoR+YRCXeGhHpSyHfxubaOgFdOs8wFU2c11wfW2dnCA/Kd HDQYI6gJqfafO58nuZVme+XG5I6qvOeqvGZPMPMGCReN8UiKBjSffMg4yZADlNen4f3F F3RlffM0tL2f6hNOn0LFIk3ajejLgsQRs1bz9DC50OoourSR+BBL5k1Ao8t/UBJ2ZJB9 4H8EhlEJr94QSzEZFaU2sXc8qMmScGmzSPdZkbfUpsLKu2fJMiEswFHOSJ6chwK5xvce GfHQ== X-Gm-Message-State: AOAM531FyajYDIKi1vsOC7PP3q5sncXqzo4hr5/WQs4FQbf0fI8mGIro jl17SC0nSqPefNRoKyv4586tbWE/yGlsRPMZcAg= X-Google-Smtp-Source: ABdhPJzQ5ZDa4vCWZMCc5/KJ18fRFllHi6BxfckuZYXFe6ABDYpWUmHIM88OSjhvD0yY/rNAlgDlRw9eFimkzwIKcO4= X-Received: by 2002:a05:6902:70b:: with SMTP id k11mr3159847ybt.313.1632957670581; Wed, 29 Sep 2021 16:21:10 -0700 (PDT) MIME-Version: 1.0 References: <20210929150445.1593364-1-vladimir.oltean@nxp.com> <20210929150445.1593364-5-vladimir.oltean@nxp.com> In-Reply-To: <20210929150445.1593364-5-vladimir.oltean@nxp.com> From: Bin Meng Date: Thu, 30 Sep 2021 07:20:59 +0800 Message-ID: Subject: Re: [PATCH v2 04/10] net: introduce a helper to determine whether to use in-band autoneg To: Vladimir Oltean Cc: U-Boot Mailing List , Joe Hershberger , Ramon Fried , Priyanka Jain , Michael Walle Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Wed, Sep 29, 2021 at 11:05 PM Vladimir Oltean wrote: > > Certain serial SERDES protocols like 1000base-x, 2500base-x, SGMII, > USXGMII can operate either in a mode where the PHY (be it on-board or > inside an SFP module) passes the link parameters (speed, duplex, pause) > to the MAC through in-band through control words standardized by IEEE > 802.3 clause 37, or in a mode where the MAC must configure (force) its > link parameters based on information obtained out-of-band (MDIO reads, > guesswork etc). > > In Linux, the OF node property named "managed" is parsed by the phylink > framework, and the convention is that if a driver uses phylink, then the > presence of this property means that in-band autoneg should be enabled, > otherwise it shouldn't. > > To be compatible with the OF node bindings of drivers that use phylink > in Linux, introduce parsing support for this property in U-Boot too. > > Signed-off-by: Vladimir Oltean > Reviewed-by: Ramon Fried > --- > v1->v2: none > > drivers/core/of_extra.c | 12 ++++++++++++ > include/dm/of_extra.h | 14 ++++++++++++++ > 2 files changed, 26 insertions(+) > Reviewed-by: Bin Meng