Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1628435imm; Thu, 14 Jun 2018 00:55:08 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJWC+2vPolRYKvoFf15AJn/DYR+t12YyS1Wu0iprp/2+LlCaP1JWvfyUwa0qptsPRrRotT0 X-Received: by 2002:a62:f407:: with SMTP id r7-v6mr8277068pff.47.1528962908784; Thu, 14 Jun 2018 00:55:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528962908; cv=none; d=google.com; s=arc-20160816; b=On7hmf8TIHGPBQF6O+lWAMcwcSuxrQBnhhwGvQEOppXB8NQFlMqYgTwKr934EI206K RGJzvU7qWY9kxBRp9q8cixj3rIVN6MzhACs+xwCxaPY5uWMb2W+rOBbW6uVVN+JLjHGr tA+6LxWpfUlYHPSrZsIgAvCm7Tn/urBZSzYWnlK6sDKNMKwEoneaCa0CnlbKs1lPeqkd kJaw/Y3y/Nyyke+BflLLTO1jnXZXyDCXLq7jjxWMiNU2rGYukzak0vBjHEj8zdcjTnD1 8Cc3wHKcwJtayXD36W+y7H0p5bPHSuUc/FpfIw7zPegY0Do0hD9U5ofr5SwDUgJLa1Ow eDSQ== 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:message-id:date:subject:cc:to:from :arc-authentication-results; bh=jy84yoyF99uY10hT6dO0Q2dddhschTh5uzlcDHgFx4Y=; b=hmJzXQxXtuUb8Jhu8gZ078FSaBuWEuJMlN4roBnZfQ6pnexEb8qbcjePU8NmobIcA6 RX2AVt1EX1OZJQhuVJLWT8NDh/Egg6i4Zic+woq8pBrGfDWE3LZJFgg3mNvZp8LfQSeK eMxy27bYfgIMCsN4wwiX72ftO4Ur3BTin/yhbwRmyBlhokPdyEqJaH6aqbkSXCCmPmRF TXRI3krdlqrcvtsRpyVPvboC3RljTloVQGALvxOKvED0SR0ClGs5SxSUEEq/5yNkhAPo djS9CiPfIMV1XjaH7jASNXQkZwj0Tmfz2sdOAOA1shaIUUg6NiJYosLWCCTgqpNc89eP KBSQ== ARC-Authentication-Results: i=1; mx.google.com; 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 t13-v6si4068226pgs.661.2018.06.14.00.54.54; Thu, 14 Jun 2018 00:55:08 -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; 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 S1754633AbeFNHyb (ORCPT + 99 others); Thu, 14 Jun 2018 03:54:31 -0400 Received: from gloria.sntech.de ([95.129.55.99]:51500 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752813AbeFNHya (ORCPT ); Thu, 14 Jun 2018 03:54:30 -0400 Received: from ip5f5a8448.dynamic.kabel-deutschland.de ([95.90.132.72] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.1:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fTN5G-0003CL-5k; Thu, 14 Jun 2018 09:54:18 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: David Wu Cc: davem@davemloft.net, robh+dt@kernel.org, mark.rutland@arm.com, huangtao@rock-chips.com, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: ethernet: stmmac: dwmac-rk: Add GMAC support for PX30 Date: Thu, 14 Jun 2018 09:54:17 +0200 Message-ID: <1961033.25ax7s0Z5i@diego> In-Reply-To: <1528956927-32440-1-git-send-email-david.wu@rock-chips.com> References: <1528956927-32440-1-git-send-email-david.wu@rock-chips.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi David, Am Donnerstag, 14. Juni 2018, 08:15:27 CEST schrieb David Wu: > Add constants and callback functions for the dwmac on PX30 Soc. > The base structure is the same, but registers and the bits in > them are moved slightly, and add the clk_mac_speed for selecting > mac speed. > > Signed-off-by: David Wu [...] > @@ -1042,6 +1101,10 @@ static int rk_gmac_clk_init(struct > plat_stmmacenet_data *plat) } > } > > + bsp_priv->clk_mac_speed = devm_clk_get(dev, "clk_mac_speed"); > + if (IS_ERR(bsp_priv->clk_mac_speed)) > + dev_err(dev, "cannot get clock %s\n", "clk_mac_speed"); > + I don't see that new clock documented in the dt-binding. Also, which clock from the clock-controller does this connect to? Thanks Heiko