Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp578188ybs; Sun, 24 May 2020 14:31:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsan9q/s5nPVhNq9Mm7ZvVmNjFUoi++xsk9v/pEs3vCOVH778Uu2VD7AXSFlH9p4Zp10YD X-Received: by 2002:a17:906:bcf3:: with SMTP id op19mr16874671ejb.537.1590355885799; Sun, 24 May 2020 14:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590355885; cv=none; d=google.com; s=arc-20160816; b=CgqlyaN+lCQCkBd70nmRixyDXJAulh7TidEaktSRGFZJVZzSdOF00CJDzCJ0qum4JX AVp+5myUlAS9ttAvXVFsr1g8DVE5CwT0pyKSBn+mB5RfPF/hZC98HNXKMhc46mXFeCEN rmUD2PLQsi9DwStNKMYxKQrOyCgg53aDYZ3J2lCOCyjv+DqkjKRTaIjKLKtELuv7WcUY Vzu4eDXHS37tDQOGopXmW8djBeyc0k00AlEN9F3BGcNQ+Jtl4TDb07SQfJnxI2poc82x JymocRS8j9l4mOWNHCP2vVhUasNF628Guoc7yZRyt1xG+sZmntoB+/V74eHCoIKS7P7u E49g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/tN0XacH4kgE3g0oXls6YEeJJr1RJFKTotdo6Ucayvg=; b=shw7Mtdyfms7cTTX3FCqb6bZzEvp2MNSzxkoew8gb1r91NzXHn1OXavxqdk+xvhbwr E9aD5VWqK+t5TGVKmyfJQYdYnT4Fq1L+P1kA0hY2rmXWC8uiDMzPGRmBJUNCmXqMzGAa yQiEKEDWje+/E0vlGTH3rfJpHK5RBKDRI0vzvzekowgyOEnL/W1lmjbtz3ShwHMY+QjL +oEl14ZASoqnCZ+A9iRqRpSszgqxdUJuqn0G9UjKZ4H9NXqwbIUAUJ1g60p9bBQHSrfC hGyakyGvPils/ovJU68AHAt8cn26k57z7Y//U6SUJKtGAC0ppLUBW4S9QKJx9HL48HwJ LH0Q== 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 r15si3304326ejx.650.2020.05.24.14.31.03; Sun, 24 May 2020 14:31:25 -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 S2388444AbgEXV2n (ORCPT + 99 others); Sun, 24 May 2020 17:28:43 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:57740 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388370AbgEXV2i (ORCPT ); Sun, 24 May 2020 17:28:38 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 715D61C02AB; Sun, 24 May 2020 23:28:37 +0200 (CEST) Date: Sun, 24 May 2020 23:28:36 +0200 From: Pavel Machek To: Andrew Lunn Cc: Oleksij Rempel , Michal Kubecek , Marek Vasut , Florian Fainelli , Jonathan Corbet , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Russell King , mkl@pengutronix.de, kernel@pengutronix.de, David Jander , Jakub Kicinski , Christian Herber , "David S. Miller" , Heiner Kallweit Subject: Re: signal quality and cable diagnostic Message-ID: <20200524212836.GE1192@bug> References: <20200511141310.GA2543@pengutronix.de> <20200511145926.GC8503@lion.mk-sys.cz> <20200512064858.GA16536@pengutronix.de> <20200512130418.GF409897@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200512130418.GF409897@lunn.ch> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 2020-05-12 15:04:18, Andrew Lunn wrote: > > > As for getting / setting the threshold, perhaps ETHTOOL_MSG_LINKINFO_GET > > > and ETHTOOL_MSG_LINKINFO_SET. Unless you expect more configurable > > > parameters like this in which case we may want to consider adding new > > > request type (e.g. link params or link management). > > > > Currently in my short term todo are: > > - SQI > > > > - PHY undervoltage > > - PHY overtemerature > > Do you only have alarms? Or are current values available for voltage > and temperature? > > Both of these would fit hwmon. It even has the option to set the alarm > thresholds. The advantage of hwmon is that they are then just more > sensors. You could even include the temperature sensor into a thermal zone to influence > cooling. There are a couple of PHYs which already do hwmon, so there is code you can > copy. Yes, hwmon can do a lot of stuff. OTOH figuring out "what hwmon device corresponds to what network device is going to be tricky, and Im not sure if we want utilities like mii-tool to start using hwmon interfaces... Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html