Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10682447pxu; Wed, 30 Dec 2020 08:47:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJxoNvbAXfscTu4Nh+z/QxSf8pivnLs1+8Vr8QxqbYERvISNiOzmZ2ZzLz2NRBaX16Jkn69L X-Received: by 2002:a17:906:369a:: with SMTP id a26mr48363703ejc.276.1609346837356; Wed, 30 Dec 2020 08:47:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609346837; cv=none; d=google.com; s=arc-20160816; b=anklzy6ottU6WiIGbvxbvVBe/WejtoF+cSeLzJuM3yv+0W9IQ1WYUFErL83tkFmORi 05GC+zKAXbeUKqVoEJSIVGjkoOEV/JMcChzve3GzxpvOe2Ice5vYTlYVBzZqZP8EikaJ CmleK1EoJiGMTp2uOUtkYRBONdo+trMECssO0ly2p5QLV3BP92QGYbH5B91ablXLTFLG pe7IcSw/bdzvkHx/3b15QM0ySDDUzG0EbOHR4mNvw1sxB5mi8zS7Yq15HDh5SaCW1Aoj P2P45C7EYqFx/RoQrgSQZlGxq0+LhofDZeZD/I/7LU01V35cA0bKsRp9fx53Ivh/TzL5 gVhA== 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; bh=A6upGeACjACSaQgxDZm6IBfGrUhrZi2fdjYy/i2km88=; b=UsjwlR5xYWp7Pk+3ZJ44NjPULQXspjJxqh0P1riHF80wrSGIFn4d59uBJjwbB+9iC3 E+WBfIyPGN9RowT/Czc710nuI0tPdMROcDgVqIy5S3RVv7lGO1vAy7axm1aO6M/WKlDD TlcHRbz5FpAlP4WAuPTqMa2kPi+AT+ghcT92fLP6lSR8WatpYv1m3ZBqBqDjYWr129Wn YRPIh9I0Jn5eytnDTr1sdFY7HdnbDXNVUYA3uhInKJHY+Q2GGCrTbc7LTyRpxxXHMO9K y2hvz458QKq0TC1MznoA60xwExYX7UFt5A5faX0WI9zziQneRdkGdWje3YHF4+UPP5oT ukPg== 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 j9si23935228edv.261.2020.12.30.08.46.54; Wed, 30 Dec 2020 08:47:17 -0800 (PST) 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 S1726530AbgL3Qp3 (ORCPT + 99 others); Wed, 30 Dec 2020 11:45:29 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:44748 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726391AbgL3Qp2 (ORCPT ); Wed, 30 Dec 2020 11:45:28 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kueaX-00F3el-28; Wed, 30 Dec 2020 17:44:41 +0100 Date: Wed, 30 Dec 2020 17:44:41 +0100 From: Andrew Lunn To: Charles Keepax Cc: nicolas.ferre@microchip.com, claudiu.beznea@microchip.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: macb: Correct usage of MACB_CAPS_CLK_HW_CHG flag Message-ID: References: <20201230103309.8956-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201230103309.8956-1-ckeepax@opensource.cirrus.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 30, 2020 at 10:33:09AM +0000, Charles Keepax wrote: > A new flag MACB_CAPS_CLK_HW_CHG was added and all callers of > macb_set_tx_clk were gated on the presence of this flag. > > - if (!clk) > + if (!bp->tx_clk || !(bp->caps & MACB_CAPS_CLK_HW_CHG)) > > However the flag was not added to anything other than the new > sama7g5_gem, turning that function call into a no op for all other > systems. This breaks the networking on Zynq. > > The commit message adding this states: a new capability so that > macb_set_tx_clock() to not be called for IPs having this > capability > > This strongly implies that present of the flag was intended to skip > the function not absence of the flag. Update the if statement to > this effect, which repairs the existing users. > > Fixes: daafa1d33cc9 ("net: macb: add capability to not set the clock rate") > Suggested-by: Andrew Lunn > Signed-off-by: Charles Keepax Reviewed-by: Andrew Lunn Hi Charles Since this is a fix, this should be based on the net tree. And you indicate this in the subject line with [PATCH net]. If this applies cleanly to net, Dave will probably just accept it, but please keep this in mind for any more submissions you make to netdev. Andrew