From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH v2] net: ibm: emac: support RGMII-[RX|TX]ID phymode Date: Thu, 21 Dec 2017 09:04:35 +1100 Message-ID: <1513807475.2743.17.camel@kernel.crashing.org> References: <20171220160201.17143-1-chunkeey@gmail.com> <20171220.151046.2079992548386220503.davem@davemloft.net> <5154461.jTBeEfsTQW@debian64> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, andrew@lunn.ch, christophe.jaillet@wanadoo.fr To: Christian Lamparter , David Miller Return-path: Received: from gate.crashing.org ([63.228.1.57]:45609 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755691AbdLTXIw (ORCPT ); Wed, 20 Dec 2017 18:08:52 -0500 In-Reply-To: <5154461.jTBeEfsTQW@debian64> Sender: netdev-owner@vger.kernel.org List-ID: On Wed, 2017-12-20 at 22:07 +0100, Christian Lamparter wrote: > > > will read this and say "Oh the function tests against these weird > > PHY_MODE_* aliases, but the helper function phy_interface_mode_is_rgmii() > > tests against PHY_INTERFACE_MODE_*, what is going on?" > > > > I hate to do this to you, but please get rid of these confusing and > > completely unnecessary PHY_MODE_* CPP aliases first, and just use the > > proper PHY_INTERFACE_MODE_* values consistently. > > Yeah, I can do that. no problem. > > Question is, should I also replace the rgmii_mode_name() with phy_modes() too? > > The only user of rgmii_mode_name() is this notice printk in rgmii_attach(): > Yup, this is all pre-hisorical gunk, feel free to replace it. Cheers, Ben.