Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3979326pxv; Mon, 19 Jul 2021 13:29:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPdhpDtiecABbH+VRgiVLX62aRyyZDtUt6jNW8otWVyORUNCRhy83Y2NcyYGSlUazccZn5 X-Received: by 2002:a17:906:a2c4:: with SMTP id by4mr10204299ejb.521.1626726570559; Mon, 19 Jul 2021 13:29:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626726570; cv=none; d=google.com; s=arc-20160816; b=rx5DP9TGg78UHw54+tumWTPUma9TrX8b+QjzEd1Xd7iC8IuaiVP7nveHF+1ni9TRna Q6iHTXqD6gsj2p3l7Ncrp2+tykMGtPPQLjCvnB/JZwo0X67y4uG1P1TkjifScv7RomF+ pQHZzqnHv78lFvUQ/XUnKNcksQ9PRR05qPO0eebN8CCSQkXoLLz2too1zJtO5U1hxe9t 7/K+p6Xa61bRiwa0XJ7jnH1vymEPto3F8ZBrvfOsJCFnuK5phxftDc6QSFMHl8asdOD5 W8+JEOBGaiRv7hExUMqkfs/Pq763bLelJDZcjaGgRB+sMoxIXxJoJDg96aJMamj+jY8X xKlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MpEyn1pQ8l2HvWMWGEa3AhtkYJDX6GLV9nl0yEUWM14=; b=MtlOvV+Hm+0ZBTWNKxjBioiTTQCmI2YmUlfBAYUjB49kKbrKUGgQ1VrkNE3r2GiN1D VjyXDOcBDjKbt8Erx+j1F1A1k32raTpkQxwcrne7Jy9pxem37sByOj4lIST4qyZHnHqM H4zzyOZqf+CDixp2ua0lyo0Ia5bkXOoZSjAnqCX6iGDynjwaRiwyBY6vnddZQ7DamJ8G Y3A8VodS6z+aicmyK6G3aZ493rPR6FXDikN9KFo2aI+6IElRkYV3yIALQo6nYmui0IyT +IWzxSdzx7gzoFWb+7M8sUHoNKFdP3DyktIM6h/3F0hrfHSy1gpxaJLyQojBxPDiYoE5 CVeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=2s0wrwA8; 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 s6si20838931ejs.573.2021.07.19.13.29.07; Mon, 19 Jul 2021 13:29:30 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=2s0wrwA8; 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 S1386659AbhGSTgi (ORCPT + 99 others); Mon, 19 Jul 2021 15:36:38 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:34660 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385728AbhGSTIa (ORCPT ); Mon, 19 Jul 2021 15:08:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=MpEyn1pQ8l2HvWMWGEa3AhtkYJDX6GLV9nl0yEUWM14=; b=2s0wrwA8pwvnAuX2PxG+beLmQY KpDRKdogrjz2PDRFl6GlhRaEdmMfOI5+R0uQNzQ4pBQsrJdepX6Xg8zlwIG2W68d012YY6c5e2gRB cfA3mFDobMR1ySd8gajLhAqvMkJeEIDtSMc0GoHDOmUSmKvwSIiGJDO49od3im9QD/yE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1m5ZFc-00DxMj-KL; Mon, 19 Jul 2021 21:48:28 +0200 Date: Mon, 19 Jul 2021 21:48:28 +0200 From: Andrew Lunn To: Hao Chen Cc: peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, davem@davemloft.net, kuba@kernel.org, mcoquelin.stm32@gmail.com, linux@armlinux.org.uk, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] net: stmmac: fix 'ethtool -P' return -EBUSY Message-ID: References: <20210719093207.17343-1-chenhaoa@uniontech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210719093207.17343-1-chenhaoa@uniontech.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 19, 2021 at 05:32:07PM +0800, Hao Chen wrote: > The permanent mac address should be available for query when the device > is not up. > NetworkManager, the system network daemon, uses 'ethtool -P' to obtain > the permanent address after the kernel start. When the network device > is not up, it will return the device busy error with 'ethtool -P'. At > that time, it is unable to access the Internet through the permanent > address by NetworkManager. > I think that the '.begin' is not used to check if the device is up. You forgot to update the commit message. Andrew