Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1138252yba; Sat, 4 May 2019 22:59:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyP7FqLNpJU7eXGzacXXAux/dXfV2C5+6Xg1yDpFEYNGuFCvNZdCdcJhHX8V898tdCtyNL5 X-Received: by 2002:a17:902:24a:: with SMTP id 68mr22342742plc.250.1557035979240; Sat, 04 May 2019 22:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557035979; cv=none; d=google.com; s=arc-20160816; b=nP6xLUeeG8VRaNd9VVCfabIXINd0pujFyg8VEXqXDG8T9iWSOxXWY9WCDSHx4LDzhS fDzZqB7m3xJPFO9sXOcM2ll/S10X0mvg7Spr1946uMSLtEX53t1GNx9N/UUxVxMrcDN2 +yzb3jLrDJHPg8yxAufOZWROWx6/CAsLqwy7RDqoTe7BW2mO58iw4Vwlg4EQB9qM1bku mnt2X2QXsCQzecgF4o7B+ajEvLBZ6RM7yCvmav2WCtOSFF+Qn2HqvLOuA3Ia+tyZdk37 Yxp4DVMHfkfm5uLE7v7nvqVaxQ/8kRzs70FFMo68IwprQT4NhVcMfEdM2gBYREU3DmRs R82Q== 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; bh=hc8z7FYp6BWm0H3g9Ob+RqGUB+A7xcCxyIkyANPGnRo=; b=wM8/zx/f9Pmoe54Gh5fGAo0fyLIyH3FAPDkdDK1Eb1IzAoVhSJCevkbXlXpU2ts0lV uzdze7sMLU2RQWHrhdQBxFr685YwY6tdL6dQqMV5+o84CLkj8CbHlASe4gaT+YCgzpe0 GgTc6MP4bZr3el31f9TgUJNcPY4l9RMBNHaMtF4UpuEE+ycbRCjE/uUuKZFOcQIwCgKC 9ew66k4v/IuJGwf4V7up4yL+Y5doMirQv0fK/fkMa0MxlRPq5NK2V0UOnDBU4LUD00Iu nwkOTTQQdfxb3IapBoysJ1hjjCdm1gJZp43XXQf/0hdXU/YOiez9utQVbZlQy+KpHUAm FLeQ== 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 z29si10360577pgl.584.2019.05.04.22.59.24; Sat, 04 May 2019 22:59:39 -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 S1726708AbfEEFld (ORCPT + 99 others); Sun, 5 May 2019 01:41:33 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:47363 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726237AbfEEFlc (ORCPT ); Sun, 5 May 2019 01:41:32 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hN9tp-0000vQ-Py; Sun, 05 May 2019 07:41:21 +0200 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1hN9tn-0007wk-6c; Sun, 05 May 2019 07:41:19 +0200 Date: Sun, 5 May 2019 07:41:19 +0200 From: Oleksij Rempel To: Chuanhong Guo Cc: Andrew Lunn , Paul Burton , Ralf Baechle , James Hogan , Rob Herring , Jay Cliburn , Chris Snook , "David S. Miller" , Mark Rutland , Pengutronix Kernel Team , linux-mips@vger.kernel.org, open list , devicetree@vger.kernel.org, John Crispin , Felix Fietkau , netdev@vger.kernel.org Subject: Re: [PATCH v3 3/3] net: ethernet: add ag71xx driver Message-ID: <20190505054119.ac3jxtonkpn4pszn@pengutronix.de> References: <20190422064046.2822-1-o.rempel@pengutronix.de> <20190422064046.2822-4-o.rempel@pengutronix.de> <20190422132533.GA12718@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 07:36:45 up 106 days, 10:18, 78 users, load average: 0.00, 0.00, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, May 04, 2019 at 11:40:53PM +0800, Chuanhong Guo wrote: > Hi! > > On Mon, Apr 22, 2019 at 9:28 PM Andrew Lunn wrote: > > [...] > > > + /* > > > + * On most (all?) Atheros/QCA SoCs dual eth interfaces are not equal. > > > + * > > > + * That is to say eth0 can not work independently. It only works > > > + * when eth1 is working. > > > + */ > > > > Please could you explain that some more? Is there just one MDIO bus > > shared by two ethernet controllers? If so, it would be better to have > > the MDIO bus controller as a separate driver. > > mdio registers exists on both ethernet blocks. And due to how reset > works on this ethernet IP, it's hard to split it into a separated > driver. (Only asserting both eth and mdio resets together will reset > everything including register values.) > The reason why gmac1 should be brought up first is that on some chips, > mdio on gmac0 connects to nothing and phy used by gmac0 is on mdio bus > of gmac1. It could be implemented as mfd device. Not sure if it is worth it. Pro/contra argumentation is welcome. -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |