From patchwork Sat Mar 14 10:09:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Russell King \(Oracle\)" X-Patchwork-Id: 222497 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D565C0044D for ; Sun, 15 Mar 2020 01:30:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2636320637 for ; Sun, 15 Mar 2020 01:30:29 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="wjvsfnsD" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727217AbgCOBa2 (ORCPT ); Sat, 14 Mar 2020 21:30:28 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:55780 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727152AbgCOBaX (ORCPT ); Sat, 14 Mar 2020 21:30:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:Content-Type:MIME-Version: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=cgR907S9wLAHP6ybLzd4i2gXZ4kedTLH2MInh7JTOsQ=; b=wjvsfnsDs67p4H7GDgi/Q9Djc uArBb3vyt5Vrr5f3nHRxLc8Qmih3xzlL24wGgJOY/WpuQ7WG3IsbhyGztAS9UBcAgyO4NFp3iFBWa HLnmQkaZ2AEzg/GsNDIYw+3iB534tmfV9SqiK6Q/bfBljQPOsKYaUdbkiD7nMJ284JsfgNtbrtxlr Q8dl4IScUCfVshtRw5AHaiOVk70beOjkwko/HHJ1zd6CzpieBXATBbWLjMPyVf5KrJlYrdCi9tK/T M6V1/odMwGxQzu1ZUTTWtQov4LWu1iYUYNTLP3Fj7a+5lVSmNRHAXXtKKvkjz8hvU+R1bUZkOi5B0 DhiH6PPDQ==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:52860) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jD3jM-000694-25; Sat, 14 Mar 2020 10:09:20 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1jD3jI-0008Dj-NJ; Sat, 14 Mar 2020 10:09:16 +0000 Date: Sat, 14 Mar 2020 10:09:16 +0000 From: Russell King - ARM Linux admin To: Andrew Lunn , Florian Fainelli , Heiner Kallweit Cc: "David S. Miller" , netdev@vger.kernel.org Subject: [PATCH REPOST net-next 0/2] net: mii clause 37 helpers Message-ID: <20200314100916.GE25745@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This is a re-post of two patches that are common to two series that I've sent in recent weeks; I'm re-posting them separately in the hope that they can be merged. No changes from either of the previous postings. These patches: 1. convert the existing (unused) mii_lpa_to_ethtool_lpa_x() function to a linkmode variant. 2. add a helper for clause 37 advertisements, supporting both the 1000baseX and defacto 2500baseX variants. Note that ethtool does not support half duplex for either of these, and we make no effort to do so. include/linux/mii.h | 57 ++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 39 insertions(+), 18 deletions(-)