Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2233612ybi; Thu, 20 Jun 2019 11:18:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4hq8r/0NRiVrVAANhszFEraBBaP+oStugRN+0aIXe60JFc28MXimXFPX7PCQe8rhNeyzJ X-Received: by 2002:a17:90a:208d:: with SMTP id f13mr992483pjg.68.1561054729425; Thu, 20 Jun 2019 11:18:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561054729; cv=none; d=google.com; s=arc-20160816; b=C5rEXJpUxw7bgR91XfKWJjFhUZ6XhGLmqT0SBi+kgUYSAfd6GG5wdK4msbFDnBGuf9 IOm9nDZOITJeTByDs5kMyBBoTE6GmOKWq2DWzPw4tNXqPyCt/lSp1KB3SxVTsRdffH1X XEdCuMR4NpuECU8Cuob7C46kC0Ny98oKckFgi/dX26PofpgtD2l9S6RTdhdhD6vU4IZk RyzDIK+fOw7Mq+vBe2J7YTna4jGWN8mQrHWRFkV69S6OZHvkN9et74Zsvb96E9tbsPxz 98RFtd4bRaj7sDCoMkbF9drTn+Z72WJTyfd/VZayVe6eXFEeytbI1FEjCoVpLGNYTa7Y qYDg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OAyWqcqb/sZSx5ABKMiV5r0yHq/aJIpVdXc/hw4Gchs=; b=ZRbtMFjw/dsb9WYxTvXCadQKhfS9uTP5z9HXOsRouD704mw0DbBH7sBXOath2ZjrKA 3ZWYMJJMZz994wYvFj/BX+YnRVgbhvAhm8QWaOoxOzlceDNVYz/KeTnh9QPTRMHEpVts 1T0f2b/Fa2UiCaOayY7wzr/KmnW3Lkr7+mH9NeOQZaX3tS1ey2+QePAoBzlkoEKwT+iV Urn5fmeoS0MJfl5u6//d4eZiwgj5j3ZRR8Wn+QRk9zlWjzjzopLZikVu6XbomV6oIq7G miCxrbrqbka65ZgmQxL9i0wagTZg5LAvfPzPWjhyCNxFSRMCtOJ1Gl+8x+s3oAkyAr2E dr5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Jaw5R/u0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d34si364939pla.283.2019.06.20.11.18.34; Thu, 20 Jun 2019 11:18:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Jaw5R/u0"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729797AbfFTSQg (ORCPT + 99 others); Thu, 20 Jun 2019 14:16:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:45780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729081AbfFTSQe (ORCPT ); Thu, 20 Jun 2019 14:16:34 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 94EF4205F4; Thu, 20 Jun 2019 18:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561054594; bh=0rHNTe7piWPQPp9EcUqjXMi/HxZeN+SZaZjtZOxQ19s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Jaw5R/u0ymSnUuPODwgkEYykMjKHfodMWWIhzuDk55+A6fVyXDEo5yRLePiyno9JR iOtG5U1qH/fbqyewkQdH96r42X13c3B4cUh5zV2AK72KX8H9aB0RDKv78hlw2SvmCu 2xx5jpteKDDFIaF6jlr/ts1Hy0thynhShw99duv4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Biao Huang , "David S. Miller" , Sasha Levin Subject: [PATCH 5.1 54/98] net: stmmac: dwmac-mediatek: modify csr_clk value to fix mdio read/write fail Date: Thu, 20 Jun 2019 19:57:21 +0200 Message-Id: <20190620174351.764275156@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190620174349.443386789@linuxfoundation.org> References: <20190620174349.443386789@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit f4ca7a9260dfe700f2a16f0881825de625067515 ] 1. the frequency of csr clock is 66.5MHz, so the csr_clk value should be 0 other than 5. 2. the csr_clk can be got from device tree, so remove initialization here. Fixes: 9992f37e346b ("stmmac: dwmac-mediatek: add support for mt2712") Signed-off-by: Biao Huang Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c index bf2562995fc8..126b66bb73a6 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c @@ -346,8 +346,6 @@ static int mediatek_dwmac_probe(struct platform_device *pdev) return PTR_ERR(plat_dat); plat_dat->interface = priv_plat->phy_mode; - /* clk_csr_i = 250-300MHz & MDC = clk_csr_i/124 */ - plat_dat->clk_csr = 5; plat_dat->has_gmac4 = 1; plat_dat->has_gmac = 0; plat_dat->pmt = 0; -- 2.20.1