Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp612465ybt; Wed, 17 Jun 2020 09:22:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz3g0P1DNcuxtxDdHjPssCA+63jDFpgaOE3+W27ft16Z/5H9PNkHTtTqsBxpf4Yk/hwT/fG X-Received: by 2002:a17:906:86c5:: with SMTP id j5mr8574141ejy.88.1592410927387; Wed, 17 Jun 2020 09:22:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592410927; cv=none; d=google.com; s=arc-20160816; b=FZgCNDBtkf0GlRAn49fCEAx+dR7jedreSoIEVIrNZCCofGps4kYVlMmmW8XZyAPAGp VXJM35dvBv0DPF4XG3H/cOPKIu4DdDMdRe19N+YbWmz1JFF/Ajufkx3A4k0qmIqWLSLV HUPzmxcwBiWyPYWu6jeN0eJzbt/uQwUFq/PubLQm4wnMtE+e/ueT/BjDOPBZAFhgoo56 6mOJzNDy0OvAHSXCsZyokKzB+2H5izC6xrQa4OmrQelqUJKOLOp1NaGfvE38o/h/PvWD gi83dyPnLgvuluborAsiFDAxTXebqnccNBt/uMamU4GSwxOb1flZ9MbMq1PGR/WTj/85 5PUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=kru3IG/Wa416uDJZ8ZudmS+KU84+OzFXJChvEcXaRGo=; b=DXJLu7a24XQPKoGH6uX5hlu56NNSPMZc25s0dtUqCXLwSgAxJO+O8yiUlDmyz74mTT LegFfWo6ftkyHfZH1l97clcmnRF5iCrdo03+35Lqyvk1MSQk6g78Yw2irWU4GVOGegRj mNvhEnHmn0o665z/PwYll9aW1DDaxmBamRujaQYQK+52WMwe5ShRDmpwvm+WXjRmKXgf PKH2UyWT6Yr533GtiUordYu8suxhydCnap8RCXBt1VLhXddP+9z3Qko5QQrYIOLnfY4v 4qpBvb54n5oPHHwz8guOdobL/5vYv9QZun5PBD0yvXlE8SbySNC6Wcm8E7v44/gUhJBz wtAw== 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 j24si193239ejy.277.2020.06.17.09.21.44; Wed, 17 Jun 2020 09:22:07 -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 S1726899AbgFQQTe (ORCPT + 99 others); Wed, 17 Jun 2020 12:19:34 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:44332 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgFQQTe (ORCPT ); Wed, 17 Jun 2020 12:19:34 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1jlamb-000yiz-7I; Wed, 17 Jun 2020 18:19:25 +0200 Date: Wed, 17 Jun 2020 18:19:25 +0200 From: Andrew Lunn To: Dejin Zheng Cc: f.fainelli@gmail.com, hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Kevin Groeneveld Subject: Re: [PATCH net v1] net: phy: smsc: fix printing too many logs Message-ID: <20200617161925.GE205574@lunn.ch> References: <20200617153340.17371-1-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200617153340.17371-1-zhengdejin5@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 17, 2020 at 11:33:40PM +0800, Dejin Zheng wrote: > Commit 7ae7ad2f11ef47 ("net: phy: smsc: use phy_read_poll_timeout() > to simplify the code") will print a lot of logs as follows when Ethernet > cable is not connected: > > [ 4.473105] SMSC LAN8710/LAN8720 2188000.ethernet-1:00: lan87xx_read_status failed: -110 > > So fix it by read_poll_timeout(). Do you have a more detailed explanation of what is going on here? After a lot of thought, i think i can see how this happens. But the commit message should really spell out why this is the correct fix. Thanks Andrew