Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4610936imd; Tue, 30 Oct 2018 04:58:36 -0700 (PDT) X-Google-Smtp-Source: AJdET5eYNDOKJ4A4lvzlGGCi9vkeLQ3eDfmnC9ymcpliEfzQQ2eBMzdAXyHQI4fUIBxDQSs+adSL X-Received: by 2002:a63:4342:: with SMTP id q63mr3086984pga.63.1540900716568; Tue, 30 Oct 2018 04:58:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540900716; cv=none; d=google.com; s=arc-20160816; b=w3BJMIX/ieDEJH4m0rye8QKe0P59uVlVYIp4yk3xYAqxkcHwY5TOEw6XvOm6unVe+C RcomADbES/83HEPzeAxJd+6uT3ct1o/VvKZfeaOULRbDYpIs2+IUjJvrlV1tm9DBbjSK hZ0SVmPtpxYiUyEBN5N2hZZsfBrDdbulNVWpkX6dsard6n3PbG0hijbUWrIPn/6yfN8L GU4U+z22T71bvBpxC22brSVur/rA2MWY/utvfoT0CFjILtMpB0S9XMtdI5xVlY1eoLcp saaDfrsbJ8PIpXvjUeTvfaHh9ZlfyQVYKZ8SRgzh+Lfgpu0i7vhcLLZf+uTe6qoEkx3K Ivwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=fGAXxkMpjEQScWxcavJWXrtG5M3JJ/Cg71rddAg+URg=; b=f6nYalEj9uJBFxhF3RmIlDD897Y4Ngn5k+nO+w+x2s5r8Ki9R69Y5fYtyT8J+gRnhp oFmtFX65GtEocYKzcyZQot7mt0NjuKbNrVtubaAFcvQ2X/ayKIXFUr5GFezoK/A5FbxS /8TfrD9dXgot7pYP3LMR+LutN6kG5pIgIKX9Z5J79TUgzayM3ssi6jTW806UpaG3RYRC CCF+YVMYQsU3UThofLP1lGuL3d+eX1pPyanVNeYc5pxMFhMCMoeD/5QTXtugK9r1H3Gt dKQiEvSgeHsRd4cQgWyZDDJuqCw1dLHMnI865cb5iabD9GHoKqEv8SOxfJLNxl3ZIuZc EQhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=dVkvjuPH; 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 1-v6si19266600plp.114.2018.10.30.04.58.20; Tue, 30 Oct 2018 04:58:36 -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=@lunn.ch header.s=20171124 header.b=dVkvjuPH; 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 S1727825AbeJ3Ut6 (ORCPT + 99 others); Tue, 30 Oct 2018 16:49:58 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:46033 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727800AbeJ3Ut6 (ORCPT ); Tue, 30 Oct 2018 16:49:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=fGAXxkMpjEQScWxcavJWXrtG5M3JJ/Cg71rddAg+URg=; b=dVkvjuPHiiSGA404TpAyYNH26Hm8ZDWYMzQPx+NeYPBePlqKnyyo1Q8Ir9RER1mSNeDsbwv4eUbmLH1yitU+ERyViUkINZiw+UkSfkwo98zO5xD4RYC0cG0wah1YyXP3F+0IGOFG/Tybm2kxds55LOhIg+8+bd4lctii/9I+IRE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1gHSdS-0007Jn-JW; Tue, 30 Oct 2018 12:56:38 +0100 Date: Tue, 30 Oct 2018 12:56:38 +0100 From: Andrew Lunn To: biao huang Cc: Corentin Labbe , davem@davemloft.net, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, nelson.chang@mediatek.com, netdev@vger.kernel.org, sean.wang@mediatek.com, liguo.zhang@mediatek.com, linux-kernel@vger.kernel.org, matthias.bgg@gmail.com, joabreu@synopsys.com, linux-mediatek@lists.infradead.org, honghui.zhang@mediatek.com, yt.shen@mediatek.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] net:stmmac: dwmac-mediatek: add support for mt2712 Message-ID: <20181030115638.GB27873@lunn.ch> References: <1540782294-27721-1-git-send-email-biao.huang@mediatek.com> <1540782294-27721-2-git-send-email-biao.huang@mediatek.com> <20181029100828.GA19103@Red> <1540883812.26982.15.camel@mhfsdcap03> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1540883812.26982.15.camel@mhfsdcap03> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > + 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; > > > + plat_dat->maxmtu = 1500; > > > > ETH_DATA_LEN ? > how about getting maxmtu from device tree rather than assignment here? Does it vary between devices? I expect it is a constant, determined by the DMA hardware design. So no need to make it configurabale. Andrew