Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3208452imm; Tue, 4 Sep 2018 18:02:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY7iZxlYUUQ19YfNDLBTv1mPeB5qDIveiC7nBv2Y939DDg1wWCdU73CGGF79GPkTxUnIZ1M X-Received: by 2002:a62:c082:: with SMTP id g2-v6mr37696407pfk.72.1536109361917; Tue, 04 Sep 2018 18:02:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536109361; cv=none; d=google.com; s=arc-20160816; b=r5DSX3m/FiwxLgv0jv1hr7nTipMPVbV6C5RRcEclvanhjWONLDsC69cNUFfNwIqwSf c3gvIe+uTVqOM2PPSHVDq+AWHCUDl0+iw/2Zv8SfEQKChjo7QvpeWcgkjDoph9RyF4wV Srs+T8AjfJRVklNKs791f5Tw2qru1W5IMxBd3/RsIx+Dn6iOD77Ta+5FljyHC8Kih1Nl 1UX8gyKYcSzc8nnZpi9WE36akLz4zX+JIJd0ZRDhJSvTiQJMpFxogaXacNHyA1Sa4pxL azzuO8HQ48JJNCeWOiciO10nLKzDV7fbq+hXob3Qpl0vTxpRyzMShGXT/3BquOl4S4Bc M5rA== 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=iPB25wNW0j3A2evm6krYoGLgNydIG3XxbqcBscVhsqA=; b=grL+LJbKhg8kIm9GR9ts8304KAE8rO0IQpjmTQqE8ITOdv51UfHaHKZ3leSE7hJOFQ C5lEx9j+9GPTLcBaQgTYucx8/VZgbzQTE1AYpHklPXBzbDXcbhJF1prskJHHf0OBh6Vh lNeGY87g5MWfKiHMIct6e2EOIzLyUZOaC6PUFlOh+zK8tOU8D/oULeIqKUWdFPvxnMDS KI1NkpAkT+iGC/ueHO1syypnHYCV1QlNg1ov/5QmOjth5MiWtcajulhR5Y0ClwViFoMS rCN8mCfRJtn+81Eme5abbLs6j2tP1ba8gHpShfivLsVEMbkEJ2D4PsUoQMcsaoHOfIKO D08g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=EA5tKBuU; 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 c4-v6si347767plo.192.2018.09.04.18.02.26; Tue, 04 Sep 2018 18:02:41 -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=EA5tKBuU; 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 S1726361AbeIEF2p (ORCPT + 99 others); Wed, 5 Sep 2018 01:28:45 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:52414 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbeIEF2p (ORCPT ); Wed, 5 Sep 2018 01:28:45 -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=iPB25wNW0j3A2evm6krYoGLgNydIG3XxbqcBscVhsqA=; b=EA5tKBuU+GG1JLAChmoAfa44m/LCQ+4DOztq/ByvLHlepylkP11YgxIzifmRJiOHgY81Gsay+AWFArs4Qd/+bl1V77TZagxirtXcHIGV37WVyPRk7+yFbbxc/iymKliGVa6cBsuTjFdJ53l6qOWZYeKruB+rzuqfkbmmNJTyLrw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1fxMBo-00041v-O1; Wed, 05 Sep 2018 03:01:00 +0200 Date: Wed, 5 Sep 2018 03:01:00 +0200 From: Andrew Lunn To: Moritz Fischer Cc: netdev@vger.kernel.org, davem@davemloft.net, f.fainelli@gmail.com, alex.williams@ni.com, moritz.fischer@ettus.com, linux-kernel@vger.kernel.org Subject: Re: [RFC/PATCH] net: nixge: Add PHYLINK support Message-ID: <20180905010100.GN29121@lunn.ch> References: <20180905001535.19168-1-mdf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180905001535.19168-1-mdf@kernel.org> 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 > 3) I'm again not sure about the 'select PHYLINK', wouldn't > wanna break the build again... Hi Moritz I think it is safe. PHYLINK has no stated dependencies on OF. But i suspect it currently is pretty useless without OF. > @@ -1286,7 +1329,13 @@ static int nixge_probe(struct platform_device *pdev) > priv->coalesce_count_rx = XAXIDMA_DFT_RX_THRESHOLD; > priv->coalesce_count_tx = XAXIDMA_DFT_TX_THRESHOLD; > > - err = nixge_mdio_setup(priv, pdev->dev.of_node); > + mn = of_get_child_by_name(pdev->dev.of_node, "mdio"); > + if (!mn) { > + dev_warn(&pdev->dev, "No \"mdio\" subnode found, defaulting to legacy\n"); > + mn = pdev->dev.of_node; > + } > + > + err = nixge_mdio_setup(priv, mn); I would suggest making this a patch of its own. Also, do you need the legacy behaviour? If there are no boards out in the wild which this will break, just make the change. Please also update the device tree binding documentation. Andrew