Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp339866ybg; Tue, 9 Jun 2020 01:50:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOpevG0TWy+N8Qt3r4pKrGkw4SmU2w/YNyUVbHyOeEl/ShHQpZd/40w1RDQTN8ZmyWOnA/ X-Received: by 2002:aa7:c356:: with SMTP id j22mr24607567edr.59.1591692601497; Tue, 09 Jun 2020 01:50:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591692601; cv=none; d=google.com; s=arc-20160816; b=0XmxIvdP1sK0L4uu43rhvc4MPPFtFcd/6NEZo1/CpGK/3swv7DpxWE3l+iHjE7PTOs Y5UnpfTt9qtd1K7oHwakTe+m6euXRu2/Q6BBpfs6AfNKt61/j5b9YzzgLVFJx9r9yBfX FGZ8H8JLZMbk08n/oV3vWgL9HLj5/TYaRK3zHKD+IE+Lqm9tJnxwwCrfmrSvqJtjZ48p MKGolnxFqFSfgRiHxf8j3E/aXNQnKg58F3zMpqNhk6y185MPx8m80Je019ptQbtJ5dyM QoXpGhry/1Swiw8NAqoDBjnkG9fvttQB8+BLnqVMc73G9xY7cI0FmEg3iB8CzaoR+cVS saQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UNHGpGdA7vaK59r9MwYNcQllznohwUU921u02R3jDls=; b=eWjgB/Ivf4ZY4QSEs2GKTExkmqKpyJDlEf8x8mDr3PskMSeS5VdpSjCGrgT1uKCipl IoO/14z3DTncOF/sFkOE7kgellA/8+Byw2FzSkLOblf7Nea0lwKeFcAjfQPcNiBn4qyh MdS7z916syxQZekmV4qrsqzX2WhW5pYVUQNQ+jv3CFluf7Rkd3YdkhFy09AK2m21NUGW 5KLW4ZVoE6RyZfrd0blmoeNl+vI2XVVooBeU2tJg/156EYdRgHRenwoiCLcyonFWeE9r vmmoFX1i1N52lf34abxdYKfUQeJYPq71zqmIuYV3mWYyuvEpGwxuOD03vzLbdA+2FxJZ /xHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si8565051edv.243.2020.06.09.01.49.38; Tue, 09 Jun 2020 01:50:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728248AbgFIIrs (ORCPT + 99 others); Tue, 9 Jun 2020 04:47:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728034AbgFIIrk (ORCPT ); Tue, 9 Jun 2020 04:47:40 -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 A225FC08C5C2 for ; Tue, 9 Jun 2020 01:47:38 -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 1jiZun-0008CA-4X; Tue, 09 Jun 2020 10:47:25 +0200 Received: from ore by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1jiZuh-0003gS-BX; Tue, 09 Jun 2020 10:47:19 +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 v3 0/3] Add support for SQI and master-slave Date: Tue, 9 Jun 2020 10:47:15 +0200 Message-Id: <20200609084718.14110-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 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 | 25 ++- uapi/linux/ethtool_netlink.h | 326 +++++++++++++++++++++++++++++++++++ uapi/linux/genetlink.h | 2 + uapi/linux/if_link.h | 7 +- uapi/linux/net_tstamp.h | 6 + uapi/linux/netlink.h | 103 +++++++++++ uapi/linux/rtnetlink.h | 6 + 11 files changed, 561 insertions(+), 4 deletions(-) -- 2.27.0