Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp218919imm; Tue, 19 Jun 2018 19:42:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLv5o8P2ILSY9JKg0GyBBCojYDysSUFWgPuDPxl61zJZSLcOezKtdRov+vJHUBS9w57RzS5 X-Received: by 2002:a17:902:4203:: with SMTP id g3-v6mr21227473pld.315.1529462557335; Tue, 19 Jun 2018 19:42:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529462557; cv=none; d=google.com; s=arc-20160816; b=H6OXrnM1hLt6xKOfPa6AK/atc/uonHXBBLKb3doVj9fojpqwZTs2LcVrCALjVzoIUg QqixlEvtu8jVnebsvWw9YFJe/tIUhCJl8xiB2d4wlwxEQy3tJMpJpx00hR2uk2aOOi6M 1Ic9g6/ZJ8ayw+EhyeM7s0XPeaXKe/UHtrXWLlIMCr8yPYcLvVwNThw+Ow7FKWt723x3 FLtTr79cmuCfOjR54LWjiIowToKqABn7hgjirPkKW4+htP2Hvo5SbHBE9xhuOiuNOqPn oWkLkR6oXVGYH5GCCe9jvcPmR9OyV4/vfnZUCZBfW0ggo7w/ao3xqVJXQK2rbr+HCSMJ WpaQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=lmmza3dHSTRUU0IRxlvOyerIFeQLpeEXFhuyzVIXjhg=; b=wTt9ImtC5tiTxl2G9+X0LcFM3xSn/3aoWPRO8XaJ8K1StSxZQUpFxDQ/3r3PmGjTOU TbYAVTkDL8dpctZaEx7yqPj0yrS+60gD8iVc2W1rUmnLmmumgsVQd7qe/458+9JfEJjK PVk3GpgyeEl8ktsUFpgl40tjOZWH6cpt4wFoTqJXq1gvICAw8qxhTWJcNdgole0xu59K oUiUSXMzcESLsWTgnnokfUytJ9nBCvNOsl7238TNdBIIbxkbecv2xk5QNmvQSrmvfq7L r1ULeY8RmboJ7jxjse93/YwNnr4gug9xDwIx4MZYCZ1aQmsmINmzglXPQeuhaCKCHdAv /3Wg== 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 x33-v6si1185989plb.512.2018.06.19.19.42.23; Tue, 19 Jun 2018 19:42:37 -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 S1754186AbeFTCkq (ORCPT + 99 others); Tue, 19 Jun 2018 22:40:46 -0400 Received: from regular1.263xmail.com ([211.150.99.141]:54211 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753633AbeFTCkp (ORCPT ); Tue, 19 Jun 2018 22:40:45 -0400 Received: from david.wu?rock-chips.com (unknown [192.168.167.130]) by regular1.263xmail.com (Postfix) with ESMTP id 17BB270; Wed, 20 Jun 2018 10:40:38 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from [172.16.12.69] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id C5FE33B0; Wed, 20 Jun 2018 10:40:35 +0800 (CST) X-IP-DOMAINF: 1 X-RL-SENDER: david.wu@rock-chips.com X-FST-TO: elaine.zhang@rock-chips.com X-SENDER-IP: 58.22.7.114 X-LOGIN-NAME: david.wu@rock-chips.com X-UNIQUE-TAG: <222bdfff16e965101c0b90e0b4fc4893> X-ATTACHMENT-NUM: 0 X-SENDER: wdc@rock-chips.com X-DNS-TYPE: 0 Received: from [172.16.12.69] (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 14197XMBY9Q; Wed, 20 Jun 2018 10:40:37 +0800 (CST) Subject: Re: [PATCH v2] net: ethernet: stmmac: dwmac-rk: Add GMAC support for PX30 To: =?UTF-8?Q?Heiko_St=c3=bcbner?= 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, =?UTF-8?B?5byg5pm0?= References: <1528956927-32440-1-git-send-email-david.wu@rock-chips.com> <1961033.25ax7s0Z5i@diego> <3aa2445f-ab2a-93b6-3a49-36be6c98d327@rock-chips.com> <2582999.2hZx6CH9S6@diego> From: David Wu Message-ID: <157ecfc9-d0e6-7782-1cbc-d0fb76c81edb@rock-chips.com> Date: Wed, 20 Jun 2018 10:40:35 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <2582999.2hZx6CH9S6@diego> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Heiko, 在 2018年06月14日 16:30, Heiko Stübner 写道: > Am Donnerstag, 14. Juni 2018, 10:14:31 CEST schrieb David Wu: >> Hi Heiko, >> >> 在 2018年06月14日 15:54, Heiko Stübner 写道: >>> I don't see that new clock documented in the dt-binding. >>> Also, which clock from the clock-controller does this connect to? >> >> The clock is the "SCLK_GMAC_RMII" at the clock-controller, which could >> be set rate by the link speed. > > Hmm, while these huge number of clocks are somewhat strange, > shouldn't it be named something with _rmii instead of _speed then? Okay, it is better to be named _speed. > > Also, I don't see any clk_enable action for that new clock, so you could > end up with being off? The new speed is the parent of the clk_tx_rx, to enable/disable clk_tx_rx, the new clock would be also enabled/disabled. > > And someone could convert the driver to use the new clk-bulk APIs [0], > so the large number of clk_prepare_enable calls would be a bit > trimmed down. > > > Heiko > > [0] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/clk/clk-bulk.c > > > > >