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=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham 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 7EA28C47247 for ; Tue, 5 May 2020 11:26:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 62E09206B9 for ; Tue, 5 May 2020 11:26:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728627AbgEEL0u (ORCPT ); Tue, 5 May 2020 07:26:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:42288 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727090AbgEEL0u (ORCPT ); Tue, 5 May 2020 07:26:50 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 19E82AD12; Tue, 5 May 2020 11:26:51 +0000 (UTC) Received: by lion.mk-sys.cz (Postfix, from userid 1000) id 173E8602B9; Tue, 5 May 2020 13:26:48 +0200 (CEST) Date: Tue, 5 May 2020 13:26:48 +0200 From: Michal Kubecek To: Andrew Lunn Cc: David Miller , netdev , Florian Fainelli , Heiner Kallweit , Chris Healy , michael@walle.cc Subject: Re: [PATCH net-next v2 09/10] net: phy: Put interface into oper testing during cable test Message-ID: <20200505112647.GM8237@lion.mk-sys.cz> References: <20200505001821.208534-1-andrew@lunn.ch> <20200505001821.208534-10-andrew@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200505001821.208534-10-andrew@lunn.ch> 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 On Tue, May 05, 2020 at 02:18:20AM +0200, Andrew Lunn wrote: > Since running a cable test is disruptive, put the interface into > operative state testing while the test is running. > > Signed-off-by: Andrew Lunn > --- Reviewed-by: Michal Kubecek Things could be simplified a bit by putting netif_testing_off() into ethnl_cable_test_finished() but it's probably not worth the confusion from setting the state in one place and clearing it in a completely different one. Michal