Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp658197ybr; Fri, 22 May 2020 16:09:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkwL51RK+95VYHsoku7QANY1I+MteqUzKzS2/CjtBGL4GZCvdFf38YLIiXSyXjn4hQRfkg X-Received: by 2002:a17:906:ce39:: with SMTP id sd25mr10512865ejb.477.1590188954268; Fri, 22 May 2020 16:09:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590188954; cv=none; d=google.com; s=arc-20160816; b=C3tigIEeEBLNTYfCdP43EdHjYky6sLDa2ANCqvnFZG8W2SE/AwAFMZdIJuIBnRBioh YVoWuOd6OX/tM1/a2gFGw4TEZWX1V/IWM8IlacuB23vWPFUgzQJpkvyZfzlIqAoGiP1D papVDDBLhnZRXJdnVsPiq/2IHI/DmJ+4AbCyTSRmNHbrm7qLMPhOQNlmu0wKKXMUIEWj KWg7gz6KdpHB8O+tgcaAq5bMu/L1IFJqSNKZnl8MmIm6ZZ4Gr1sovWXhB5VcUwvcDvHm DkSCSOIrT7TXkXU2Y9ptss28b1qGxEMJOSIR16UWss6LlZfhZSz84g4n+kK+eVeWyB2B cXKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=lJJurG84gVXJFpu2ToclVEfGofoMHkBZTyGXQpeNRnU=; b=mDgwZs52l3jcU00UjGnUhRVfFecM34RFmwpuhumqWfA1JFYetWApc4cAgBD5DLoHN5 hydgYGR0XDC0pIfXiHRze8nTePV5vzhegEKFunVUMOiwjehyXqFOnMIcjv7J1hyOfz4L /Pon0WDwxVpzNFHKI3iyOG0yXWU3XgAxlCUdkNbM6USdTZt2IDzQcnIrkTTuYKWS5YTn UHgKVdKedRoZcf2Y0jBE3hqCMlWfiHXS4XrS6DSBIqrWC/kuwz63UrqYDYnR7P7nOfoZ CbDBluKrw7b3MwM9FbEgv1/ycPkcPGUW6Kxqlw3c8qZIQ3KAHHu1av/v26nUPN7XohjB pgxg== 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 a17si5824226eje.506.2020.05.22.16.08.51; Fri, 22 May 2020 16:09:14 -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 S1731302AbgEVXH0 (ORCPT + 99 others); Fri, 22 May 2020 19:07:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731175AbgEVXHY (ORCPT ); Fri, 22 May 2020 19:07:24 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2C08C061A0E; Fri, 22 May 2020 16:07:24 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 60DFF1274E076; Fri, 22 May 2020 16:07:24 -0700 (PDT) Date: Fri, 22 May 2020 16:07:23 -0700 (PDT) Message-Id: <20200522.160723.1511383489001652430.davem@davemloft.net> To: noodles@earth.li Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, adron@yapic.net, marcel@ziswiler.com Subject: Re: [PATCH] net: ethernet: stmmac: Enable interface clocks on probe for IPQ806x From: David Miller In-Reply-To: <20200521114934.GY311@earth.li> References: <20200521114934.GY311@earth.li> X-Mailer: Mew version 6.8 on Emacs 26.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 22 May 2020 16:07:24 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonathan McDowell Date: Thu, 21 May 2020 12:49:34 +0100 > The ipq806x_gmac_probe() function enables the PTP clock but not the > appropriate interface clocks. This means that if the bootloader hasn't > done so attempting to bring up the interface will fail with an error > like: > > [ 59.028131] ipq806x-gmac-dwmac 37600000.ethernet: Failed to reset the dma > [ 59.028196] ipq806x-gmac-dwmac 37600000.ethernet eth1: stmmac_hw_setup: DMA engine initialization failed > [ 59.034056] ipq806x-gmac-dwmac 37600000.ethernet eth1: stmmac_open: Hw setup failed > > This patch, a slightly cleaned up version of one posted by Sergey > Sergeev in: > > https://forum.openwrt.org/t/support-for-mikrotik-rb3011uias-rm/4064/257 > > correctly enables the clock; we have already configured the source just > before this. > > Tested on a MikroTik RB3011. > > Signed-off-by: Jonathan McDowell Applied, thanks.