Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752264AbdHCX0r (ORCPT ); Thu, 3 Aug 2017 19:26:47 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:33652 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751791AbdHCX0p (ORCPT ); Thu, 3 Aug 2017 19:26:45 -0400 Date: Thu, 3 Aug 2017 18:26:43 -0500 From: Rob Herring To: Alexandru Gagniuc Cc: linux-snps-arc@lists.infradead.org, linux-kernel@vger.kernel.org, Mark Rutland , Giuseppe Cavallaro , Alexandre Torgue , netdev@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 3/5] net: stmmac: Add Adaptrum Anarion GMAC glue layer Message-ID: <20170803232643.oqvdgvp6xqwgk6mh@rob-hp-laptop> References: <20170728220707.13960-1-alex.g@adaptrum.com> <20170728220707.13960-4-alex.g@adaptrum.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170728220707.13960-4-alex.g@adaptrum.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1137 Lines: 24 On Fri, Jul 28, 2017 at 03:07:03PM -0700, Alexandru Gagniuc wrote: > Before the GMAC on the Anarion chip can be used, the PHY interface > selection must be configured with the DWMAC block in reset. > > This layer covers a block containing only two registers. Although it > is possible to model this as a reset controller and use the "resets" > property of stmmac, it's much more intuitive to include this in the > glue layer instead. > > At this time only RGMII is supported, because it is the only mode > which has been validated hardware-wise. > > Signed-off-by: Alexandru Gagniuc > --- > .../devicetree/bindings/net/anarion-gmac.txt | 25 ++++ The binding looks fine, but please split to separate patch. > drivers/net/ethernet/stmicro/stmmac/Kconfig | 9 ++ > drivers/net/ethernet/stmicro/stmmac/Makefile | 1 + > .../net/ethernet/stmicro/stmmac/dwmac-anarion.c | 151 +++++++++++++++++++++ > 4 files changed, 186 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/anarion-gmac.txt > create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-anarion.c