Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp694625ybk; Fri, 15 May 2020 11:06:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5Yt8xL8x5NXab/M9ernHHg5j9LgpQW6/1qYV43OGhz0o2oM6umShJ7n/bCmKb/MNZRXAG X-Received: by 2002:a17:906:34c7:: with SMTP id h7mr3871429ejb.300.1589565960648; Fri, 15 May 2020 11:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589565960; cv=none; d=google.com; s=arc-20160816; b=Q4VVj9+13bMfEwhloN7DBDqUrH9ju9bp1fFayOBdynuqEm7DCUPFafBGqTs7T4LePR S+o+XENKWNmQyxkKAB7EzTC5Yvo0PQTDFZ9uAH1Rzt8Rr3TSXRiY95KBp3yJdn0/4lXQ 9yQYxGPPQOtzhVzBb+WiFCjSMwevXmosIR7kxOpQT2IPkRprvZ/Cue0umISzyKMv/rfR fYf007AWE9Accx83nRAzIe+RSbWn0Se5OPn6D8gucTNL2FyRJjfaaSsWmHcMeHaEcdjO TLKM+WtnMOq+Gl99ahFv0QIn9fj3rxtLD37ix9OWuWWD/9zRuH/aORiW/HD1BQN7RJwE V3bw== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=EjzoRuaBe1I85PTmewJyzzZIaFP1i0PNEC6qsIKLBNk=; b=D4IWhAgTC6o/W4RYoyMp263A6TQ9J2FW4BCMrfabX1LaecVARlZTrbjeMUA+ieVja5 k4FyIpZsXqbIu3gVLvaQNjhkXtaW6xBB3bHOSsEdyPeqZxUzXsFGT0TiV799/L3VCfbg yX8jiR8ByXcwyh1crFlgYQwpTItnqLxa87GjYfLTzJY+NTpBxQgdN70AgnueK8JaeFOq Yaal6SmesqPRc/w8cHVJG8KO0lmyimydB9JJgwd7nm2tdZx9aLqbBZXoscr5qxpmdAXw bssJsQuehozS5m/4zNfIvUaFSnBH1lxuTgwlRhiySBeH6HTIlOxLCmrysbQ1/y6crJ4o v76g== 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 h4si1687717edn.445.2020.05.15.11.05.37; Fri, 15 May 2020 11:06:00 -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 S1726388AbgEOSD2 (ORCPT + 99 others); Fri, 15 May 2020 14:03:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726144AbgEOSD2 (ORCPT ); Fri, 15 May 2020 14:03:28 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 629AFC061A0C; Fri, 15 May 2020 11:03:28 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id AE43F14EF40A9; Fri, 15 May 2020 11:03:27 -0700 (PDT) Date: Fri, 15 May 2020 11:03:27 -0700 (PDT) Message-Id: <20200515.110327.618691695451535144.davem@davemloft.net> To: o.rempel@pengutronix.de Cc: andrew@lunn.ch, f.fainelli@gmail.com, hkallweit1@gmail.com, kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, marex@denx.de, david@protonic.nl Subject: Re: [PATCH net-next v1] net: phy: tja11xx: execute cable test on link up From: David Miller In-Reply-To: <20200514194218.22011-1-o.rempel@pengutronix.de> References: <20200514194218.22011-1-o.rempel@pengutronix.de> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 15 May 2020 11:03:28 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oleksij Rempel Date: Thu, 14 May 2020 21:42:18 +0200 > A typical 100Base-T1 link should be always connected. If the link is in > a shot or open state, it is a failure. In most cases, we won't be able > to automatically handle this issue, but we need to log it or notify user > (if possible). > > With this patch, the cable will be tested on "ip l s dev .. up" attempt > and send ethnl notification to the user space. > > This patch was tested with TJA1102 PHY and "ethtool --monitor" command. > > Signed-off-by: Oleksij Rempel Applied, thanks.