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 C61E3C433EF for ; Sat, 16 Oct 2021 18:28:30 +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 3FAAF61152 for ; Sat, 16 Oct 2021 18:28:30 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3FAAF61152 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 6466D83479; Sat, 16 Oct 2021 20:28:28 +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="NGA2PoVq"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E7BFE834C7; Sat, 16 Oct 2021 20:28:25 +0200 (CEST) Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) (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 8EB6B8326F for ; Sat, 16 Oct 2021 20:28:22 +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=rfried.dev@gmail.com Received: by mail-ot1-x32f.google.com with SMTP id g62-20020a9d2dc4000000b0054752cfbc59so265643otb.1 for ; Sat, 16 Oct 2021 11:28:22 -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=ASPHI6i9aqnC8LMu2NUo1BPVHuVfqClqMUVittoB66M=; b=NGA2PoVqQ3tK7/D61dk86arQv38gXFq2mgq0HTVJpn1AyLZwbDL+rx5vtkAcMq20mn gv+QYPSL5bHn2e833QizEnN3VN33hJ7av/dpbXLY9qql1zjw1n39tlS2jM7pdIh+kTzh P0t4+PnRAqrFVvi+zNNaxn6nZl6cIGQDAqalmvHfcQnDrcHEJvrwbR3MiFXMyep+yHuq 5pL2BROHbmSxhSrfeVBYKady/xY5tfPsWsg0fbqGbCE/XOH5avc2fAkRrTQVdT/Kmgv5 x/aGTVBd8MZ9Ft4BfBvKG+g2D0obn4ShvLRikha5anPGmeTd1lq3qEE8qNs0Y1N1OsC+ pepA== 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=ASPHI6i9aqnC8LMu2NUo1BPVHuVfqClqMUVittoB66M=; b=CeDRk4DoLdlbk6wYieZMcfTqkwerZpgLwmMcza+TG2NkzXVaKreIKmpP1lF/xR1Nhy FeTSjZddol2msrK883GWDaQiRFBTTZ48FI6PZDO06aXqFXO6z18arvxt4ABfp5pIQuo/ W2H/fdp10GikqJ8P6tUgX6XvCPNvW0NCIwgICmmusb1wO04t+iZMaGZp5Ygii9npYce7 0V6u2PXduC+A1tLCWdK4FWygNZZ1tUOAnkMKRErO77sW2zyebMm386GVvm2rKhaWlZ0y v8OSiojdQD+CySHahVJ9Wrr4Zm+RFvcMi0/pOWM8zJ5vG+W42LmWbiOaXijux1LEiDon t0kA== X-Gm-Message-State: AOAM531Aowc3CB8txVMl3ZLUzK49COCsZL+G6Fum3b7QrjRrR2BrZFGs vS0SzPBo37bo077wC9Ug3ygpuTeqraH3FoX9Vkk= X-Google-Smtp-Source: ABdhPJylb+ZdILvWh1bTsQ6m1QGvvVVRoA+SThyJabIH1GTHTUPTagk7ZAIjjjpdJriDdfXEF9X4gWfrXrD4KwIz4dg= X-Received: by 2002:a9d:396:: with SMTP id f22mr14194406otf.327.1634408901415; Sat, 16 Oct 2021 11:28:21 -0700 (PDT) MIME-Version: 1.0 References: <20210929150445.1593364-1-vladimir.oltean@nxp.com> <20210929150445.1593364-5-vladimir.oltean@nxp.com> In-Reply-To: From: Ramon Fried Date: Sat, 16 Oct 2021 21:28:10 +0300 Message-ID: Subject: Re: [PATCH v2 04/10] net: introduce a helper to determine whether to use in-band autoneg To: Bin Meng Cc: Vladimir Oltean , U-Boot Mailing List , Joe Hershberger , 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 Thu, Sep 30, 2021 at 2:21 AM Bin Meng wrote: > > 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 Reviewed-by: Ramon Fried