From patchwork Wed Jun 10 08:37:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 217873 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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT 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 0D611C433E0 for ; Wed, 10 Jun 2020 08:38:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD9682072F for ; Wed, 10 Jun 2020 08:38:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726854AbgFJIiE (ORCPT ); Wed, 10 Jun 2020 04:38:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbgFJIiD (ORCPT ); Wed, 10 Jun 2020 04:38:03 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F782C08C5C1 for ; Wed, 10 Jun 2020 01:38:03 -0700 (PDT) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jiwF5-0000Ii-SU; Wed, 10 Jun 2020 10:37:51 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jiwEz-0007ud-Kk; Wed, 10 Jun 2020 10:37:45 +0200 From: Oleksij Rempel To: Andrew Lunn , "David S. Miller" , Florian Fainelli , Heiner Kallweit , Jakub Kicinski , Jonathan Corbet , Michal Kubecek , "John W. Linville" Cc: Oleksij Rempel , David Jander , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Russell King , mkl@pengutronix.de, Marek Vasut , Christian Herber , Amit Cohen , Petr Machata Subject: [PATCH v4 0/3] Add support for SQI and master-slave Date: Wed, 10 Jun 2020 10:37:41 +0200 Message-Id: <20200610083744.21322-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: netdev@vger.kernel.org Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch set is extending ethtool to make it more usable on automotive PHYs like NXP TJA11XX. They make use of new KAPI (currently in net-next, will go probably to the kernel 5.8-rc1): - PHY master-slave role configuration and status informaton. Mostly needed for 100Base-T1 PHYs due the lack of autonegatiation support. - Signal Quality Index to investigate cable related issues. changes v4: - rebase is against current ethtool master - pull headers from current kernel master - use tabs instead of spaces in the manual changes v3: - rename "Port mode" to "master-slave" - use [preferred|forced]-[master|slave] for information and configuration changes v2: - add master-slave information to the "ethtool --help" and man page - move KAPI update changes to the separate patch. Oleksij Rempel (3): update UAPI header copies netlink: add master/slave configuration support netlink: add LINKSTATE SQI support ethtool.8.in | 19 +++++ ethtool.c | 1 + netlink/desc-ethtool.c | 4 + netlink/settings.c | 66 +++++++++++++++ uapi/linux/ethtool.h | 16 +++- uapi/linux/ethtool_netlink.h | 153 ++++++++++++++++++++++++++++++++++- uapi/linux/genetlink.h | 2 + uapi/linux/if_link.h | 1 + uapi/linux/netlink.h | 103 +++++++++++++++++++++++ uapi/linux/rtnetlink.h | 6 ++ 10 files changed, 369 insertions(+), 2 deletions(-)