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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8FACC433EF for ; Fri, 1 Jul 2022 19:29:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232343AbiGAT3Q (ORCPT ); Fri, 1 Jul 2022 15:29:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232694AbiGAT26 (ORCPT ); Fri, 1 Jul 2022 15:28:58 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9B171F2 for ; Fri, 1 Jul 2022 12:28:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 85260B8311E for ; Fri, 1 Jul 2022 19:28:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34BD8C341C8; Fri, 1 Jul 2022 19:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656703684; bh=XFiF9O9nMK8GrdCfNShtw8oBQenyZQmibCsOZ29A9r4=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tkkXlGlONtnoseVjaFV48gdmxxETQ/kFmhvroW0xIWGyGNdq6KinGzwR7rPo/eFlt n5WNQzZAXoy86TDSL/9svpokOVHlWCIBqwl2bkTr6JywulCjgGpRafA6Io/E5ZIGjo crS/VpuaFloSOWpHgKgVAflAkCV7ZPe9HXUDxbiiUnmwxhSYmc19RdiwQYx1zmReHu BAOJociFxItbUyLr5odQWvZDlQ/IPB0bIgb33/vNkc5518n7x+weSYdgZNgBT9q29j vasGkL1IL9QpjkO8liZl2rEpZlVQzOlqNTkChx1yiFQnsgf8ZOF/gmi4SzkWdp1ncC bBkKo4iFK6LVw== Date: Fri, 1 Jul 2022 21:27:55 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: "Russell King (Oracle)" Cc: Andrew Lunn , Heiner Kallweit , Alexandre Belloni , "Alvin __ipraga" , Claudiu Manoil , "David S. Miller" , DENG Qingfang , Eric Dumazet , Florian Fainelli , George McCollister , Hauke Mehrtens , Jakub Kicinski , Kurt Kanzenbach , Landen Chao , Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Matthias Brugger , netdev@vger.kernel.org, Paolo Abeni , Sean Wang , UNGLinuxDriver@microchip.com, Vivien Didelot , Vladimir Oltean , Woojung Huh Subject: Re: [PATCH RFC net-next 3/6] net: phylink: split out interface to caps translation Message-ID: <20220701212755.156da4ff@thinkpad> In-Reply-To: References: X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 29 Jun 2022 13:51:33 +0100 "Russell King (Oracle)" wrote: > phylink_get_linkmodes() translates the interface mode into a set of > speed and duplex capabilities which are masked with the MAC modes > to then derive the link modes that are available. >=20 > Split out the initial transformation into a new function > phylink_interface_to_caps(), which will be useful when setting the > maximum fixed link speed. >=20 > Signed-off-by: Russell King (Oracle) Reviewed-by: Marek Beh=C3=BAn