Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp31080imn; Mon, 25 Jul 2022 09:27:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ujuBGKJf8D9bnheR/dNVirPeoUX1Ms7d8zo7s0m2QBANfCfZ2hm2UumHJPOieJZWEfPaTQ X-Received: by 2002:a17:907:28ca:b0:72b:110a:b34e with SMTP id en10-20020a17090728ca00b0072b110ab34emr10657501ejc.113.1658766434965; Mon, 25 Jul 2022 09:27:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658766434; cv=none; d=google.com; s=arc-20160816; b=MDka7uaOZMI9DQYglBC9GFQt95yegb1hSuj2HVj/08ATvy00qGEnB8q5tXuUs2FCQd hjKcWrxtzFYY/3WUsyWk8oKRnhZgFmcHBWhRnrtFPXp6jnwhh654c8q0+scTU5oKWIQ/ z8cQPyrf5jrkWk/YvoT96m2m2FQ18KwTfNPrFjYY8e7CK/wMV3GWNRYi5//16nQTpenC ArW1K/eldc4z8MQiM+tL+J8SMILFnRW4t1cb1Q2R1dSzZR/uD8DRcPvDRsqYtRxAJf1b tpQ77zTnHtw4k31IQEHY+CzUaecX1knWQP+Kui7jt7yT+IfmN3GSbuarSQXheHd9PdT6 4Qbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=X5PtptT5MGKoliRohdoT/El7PLZkkAvtB3XDWrkG3nU=; b=CiZrZvp6jv4bByqsA1HnufxKUY9L1BvDVn/kQICgVzdNOAsqKCqjNkbrr9ydPghV+A cbBby/9BQcGiI1ToWK3fmNgENaLOrnLnn+UtaammTJfqzqEAUXduQJNAub3TXZUgQHTF 488Z3qFdjBWEBVnKzcx7iBGiKfasftkVjU17/+BZZStgC1GEz0ZAr94nqVMm+YNptwpX JFqgvw05k5+R4hiGmFxbqACA8264EOiedyFCdNOhvkTsW8utB49YnSD8HqLVxnuNq4xE o8rCrNFS3CVWP1Uq7G9F1aYNDVsxktDgoNWmkyBXCX7GdWnNhPbZc+iHMWbJejs/0CYE 3nDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RoqFwVel; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hr22-20020a1709073f9600b0072ae569d6a0si15632249ejc.632.2022.07.25.09.26.50; Mon, 25 Jul 2022 09:27:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RoqFwVel; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234317AbiGYPlh (ORCPT + 99 others); Mon, 25 Jul 2022 11:41:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231907AbiGYPlX (ORCPT ); Mon, 25 Jul 2022 11:41:23 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8874F233; Mon, 25 Jul 2022 08:41:08 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id mf4so21358879ejc.3; Mon, 25 Jul 2022 08:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=X5PtptT5MGKoliRohdoT/El7PLZkkAvtB3XDWrkG3nU=; b=RoqFwVeln7p2VdwXFVEl4sRYcm+l4ctGuM+chpQn2L9hezz7eHtN8MueytvmParpjZ WhqjVDGPdHDKlaGFofKDP00X1b+gD5RO+9qhNTcQrlHnLH4cPvDQTYjleyrjDytz4fPD 2G+RRIIday0+wHWKTBN7jAmzXQMAuvoYL+FbvDIDlOJ3km8X6zp/6VnhGGed4In6VgQO ab45DAyC6husiLaGbRybxb5ipzyPzX0HN39bm2uinxn7XsXSyHjv4gQHR4hzaTokpdhQ nrUJsHuW9qCJvG/Tnqa895HFxTeIKeuovTnlOXdxPKpEOtm0r8PhpTGgjxhdVY67RHfE t51w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=X5PtptT5MGKoliRohdoT/El7PLZkkAvtB3XDWrkG3nU=; b=jKiFAJ4fUNtg8SxY2DBKSTALf26HV2pkXQrs4h/Tr6mGI87MwoYBbQIP2w8oqB33O/ x0N9vvvMfV1SdOdJk0/bUdpzRSIfBbTJZGdjTdNK0WJLpkY3f41mVRhvrL7d4EZUbWZ2 kSaClTG+07oOeApzsFd+0xWmZBHyQVO6wGjQGYn1Mj13PqaN9uZP+/xEgXl7Onae65KL wx6O3iXcg+Smx8XkuAvtITO8oww4RckhSGmjE9xuhdeRRfrJLYhUb+UdOO+G8AgOEkXr SgZb4aG8NIEYQVGbspPaQzFESKiRYVobubJC3Ort6u19gHPnYxXYhw/ajLgRdkbGBAfd jSpA== X-Gm-Message-State: AJIora8gWnmU6RDNnoFdNvLxpHgFpYSp7KaLFISK2VdKidZioupDaF2k 1yFLYIrVXV1tYAYHq8x6t5L50EokM5Q9qg== X-Received: by 2002:a17:907:3f29:b0:72b:91df:2c4b with SMTP id hq41-20020a1709073f2900b0072b91df2c4bmr10566441ejc.206.1658763667039; Mon, 25 Jul 2022 08:41:07 -0700 (PDT) Received: from skbuf ([188.25.231.115]) by smtp.gmail.com with ESMTPSA id k7-20020a056402048700b0043a61f6c389sm7234872edv.4.2022.07.25.08.41.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 08:41:06 -0700 (PDT) Date: Mon, 25 Jul 2022 18:41:03 +0300 From: Vladimir Oltean To: Sean Anderson Cc: netdev@vger.kernel.org, Andrew Lunn , Heiner Kallweit , Russell King , Paolo Abeni , Eric Dumazet , Alexandru Marginean , "David S . Miller" , Jakub Kicinski , linux-kernel@vger.kernel.org, Vladimir Oltean , Russell King Subject: Re: [PATCH v3 06/11] net: phylink: Add some helpers for working with mac caps Message-ID: <20220725154103.e3l4cde3bhgdl65y@skbuf> References: <20220725153730.2604096-1-sean.anderson@seco.com> <20220725153730.2604096-7-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220725153730.2604096-7-sean.anderson@seco.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 25, 2022 at 11:37:24AM -0400, Sean Anderson wrote: > This adds a table for converting between speed/duplex and mac > capabilities. It also adds a helper for getting the max speed/duplex > from some caps. It is intended to be used by Russell King's DSA phylink > series. The table will be used directly later in this series. > > Co-developed-by: Vladimir Oltean > Signed-off-by: Vladimir Oltean > Co-developed-by: Russell King (Oracle) > Signed-off-by: Russell King (Oracle) > [ adapted to live in phylink.c ] > Signed-off-by: Sean Anderson > --- > This is adapted from [1]. > > [1] https://lore.kernel.org/netdev/E1oCNlE-006e3z-3T@rmk-PC.armlinux.org.uk/ I did not write even one line of code from this patch, please drop my name from the next revision when there will be one.