Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3547241pxb; Mon, 16 Nov 2020 18:42:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvHNV95NM7LMeyBKzhw5keQj3czNuZ3EQmKedf/r72TdR6eyo309I3EwmatGNOjaamp9ID X-Received: by 2002:a17:906:4705:: with SMTP id y5mr16994393ejq.112.1605580938826; Mon, 16 Nov 2020 18:42:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605580938; cv=none; d=google.com; s=arc-20160816; b=GIFOGJoRfeMfQsRr0in1WbaAVa+bDpzlgC7SYXbxmdPs0lgLJAIFRn6ZTH1SxHyQFK FcbNMfKljPLq+v8db3KA6kY075QBIhxvhoPHP6dWIS9VDe9YhPcM2fI7lZm3kz18hdKO oUjrkOSY3X10EWitGCb2OyaOsyAOc0NFZtayg9LdnqwCIstdckfmhziM0o+9XUHMZAC9 8Y/z08S2XXxnBwD9Gzwi9RrVwxGiHJ7MhtcriI6EjNUezaQrnoTwiJj929M6MBNlyuKm 9mUAE6h7nHF8NPF539IBSJllwhtVFnWfJZQamr72eq+LX5g12t/uvy1TVLs3e+AicCFQ vr1w== 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=swCSAqNYuMAkXrUEiHTipqcdz+E22FtIX7D/MVJkzeI=; b=jAJmLs4UI1dSkXIqKRSxeHGxkCc31gkVXX02/lBcloN4byj2DWVvPUiaUNNUlzB43v lWXX02AXenGnJCgo8RgPmBofHqynkhtDKUXBAyn9UteaoUA3tf+wtPeV7vigY5tU7twt RdwuLR+vqY4HDvD1OyWFqd71adIf9pCxAFHp+nJG3CMNupcn+O5z1ZN9+TPqgFubKwzb b7VhsqBFSDwDU0Jq5H+bBL2yTxhj9xDhOFPwUbRLmgMhw5GqugBEDjwwlsjg+fPma/m8 DVPP1/1/TkjkJAP4kYMQzPHc/0ESf+jKIZm2UdKlzzMqkVxTMVlGy9TUQuLResEq0Crq sang== 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 lj4si13236185ejb.289.2020.11.16.18.41.56; Mon, 16 Nov 2020 18:42:18 -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 S1728374AbgKQCCd (ORCPT + 99 others); Mon, 16 Nov 2020 21:02:33 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:59114 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726571AbgKQCCc (ORCPT ); Mon, 16 Nov 2020 21:02:32 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1keqKA-007S5K-FA; Tue, 17 Nov 2020 03:02:26 +0100 Date: Tue, 17 Nov 2020 03:02:26 +0100 From: Andrew Lunn To: Martin Blumenstingl Cc: davem@davemloft.net, kuba@kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, robh+dt@kernel.org, netdev@vger.kernel.org, jianxin.pan@amlogic.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, khilman@baylibre.com, narmstrong@baylibre.com, jbrunet@baylibre.com, f.fainelli@gmail.com Subject: Re: [PATCH RFC v2 2/5] net: stmmac: dwmac-meson8b: fix enabling the timing-adjustment clock Message-ID: <20201117020226.GB1752213@lunn.ch> References: <20201115185210.573739-1-martin.blumenstingl@googlemail.com> <20201115185210.573739-3-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201115185210.573739-3-martin.blumenstingl@googlemail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 15, 2020 at 07:52:07PM +0100, Martin Blumenstingl wrote: > The timing-adjustment clock only has to be enabled when a) there is a > 2ns RX delay configured using device-tree and b) the phy-mode indicates > that the RX delay should be enabled. > > Only enable the RX delay if both are true, instead of (by accident) also > enabling it when there's the 2ns RX delay configured but the phy-mode > incicates that the RX delay is not used. > > Fixes: 9308c47640d515 ("net: stmmac: dwmac-meson8b: add support for the RX delay configuration") > Reported-by: Andrew Lunn > Signed-off-by: Martin Blumenstingl Reviewed-by: Andrew Lunn Andrew