Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp566315imm; Fri, 22 Jun 2018 01:15:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKPW7MVYMYuR0f/H4oHObBxYZMkIVwjyUqu2cWYmIJusMzbcEiyfO/8yKhEh+5/Mp7lWYjE X-Received: by 2002:a65:4c09:: with SMTP id u9-v6mr524670pgq.256.1529655347467; Fri, 22 Jun 2018 01:15:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529655347; cv=none; d=google.com; s=arc-20160816; b=O+EOA2PBgtu31W+t1vYaU/UWdWmVMO3ghBeS5yxBzus7rmoRVN12Dhc4hyXt2NrLic jrhN6DGfTIYf5tYardHEmzp5uBd3K+yQKIZ3nyerWr3SywwjhMCcmhJHdFUkTxmOt27z BQPm6UXZxedEby4xQs4UNOPr8a0McMPpDs9xV5ZW2NIbn5v7yjgHjiCdX5aFKp4p4MqL 4wJpAxbMdXvlsCycl25TgBvql19D1BW3Jvqj6Xwnhqm8TsX83CjF78JC7K09QwHuORgB 0XaxZSg/dXX1l0xne4ieuiZhB5rvkxjKTJljCUbACF3cVkviKq/UPF52OSOaR46BE9uQ 1o3Q== 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=Fks+yB/PdRE/XeEJPmjTX0pkuVl6ZImoBziYAVCJ5As=; b=XpRm9v74APy9Ic63Uth7cV4ZiEkTMdWHEzRf6W1XFfXPKJdIbskegJi8whe5nJqwTN l2dBpKRwaynVLFeVvwSCh69+tCeWa5QhShZ3iHzSrUBBh5I5mZwsquNUaWTLLoEt1pLs 0XzYB0isCdeMI3aueGKvjuYU4hEVamvSEDR2BYShnrGbB3WZ+cdhsnBAJVRWHdbckM8Q LZm3uGcT78um0E3FYhAALCYv2HA2kGOuSZwXPiXoQIVHvYx8JdnxBq7eHBG0MracR6bQ 2UPgw9VnO2UtcsfBtZqZoK2da292um1Ns27kiuIbQfYNw0+Of4dsddl1jJ3WnOxjl9Au rX6Q== 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 v6-v6si6890392plp.60.2018.06.22.01.15.32; Fri, 22 Jun 2018 01:15:47 -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 S1754253AbeFVINb (ORCPT + 99 others); Fri, 22 Jun 2018 04:13:31 -0400 Received: from regular1.263xmail.com ([211.150.99.139]:36334 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbeFVIN1 (ORCPT ); Fri, 22 Jun 2018 04:13:27 -0400 Received: from david.wu?rock-chips.com (unknown [192.168.167.84]) by regular1.263xmail.com (Postfix) with ESMTP id 00D4355EE; Fri, 22 Jun 2018 16:13:16 +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.172] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 1BDC33D7; Fri, 22 Jun 2018 16:13:14 +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: X-ATTACHMENT-NUM: 0 X-SENDER: wdc@rock-chips.com X-DNS-TYPE: 0 Received: from [172.16.12.172] (unknown [58.22.7.114]) by smtp.263.net (Postfix) whith ESMTP id 67744R4ZY7; Fri, 22 Jun 2018 16:13:17 +0800 (CST) Subject: Re: [PATCH v2] net: ethernet: stmmac: dwmac-rk: Add GMAC support for PX30 To: Heiko Stuebner 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> <2582999.2hZx6CH9S6@diego> <157ecfc9-d0e6-7782-1cbc-d0fb76c81edb@rock-chips.com> <18221590.FEDROxemCD@phil> From: David Wu Message-ID: <7baeda9c-d7c4-e491-e18d-30afefa98c96@rock-chips.com> Date: Fri, 22 Jun 2018 16:13:13 +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: <18221590.FEDROxemCD@phil> 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月22日 15:30, Heiko Stuebner 写道: > Hi David, > > Am Mittwoch, 20. Juni 2018, 04:40:35 CEST schrieb David Wu: >> 在 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. > > Still it is nicer to really enable it, so that the clock-framework can keep > track of usage counts. > > Because also no-one hinders the chip-designer from putting a gate in > between in one of the next socs ;-) > Okay, i will add the enable/disable for clk_mac_speed. ;-) > > Heiko > > > > >