Received: by 10.213.65.68 with SMTP id h4csp634021imn; Wed, 28 Mar 2018 09:53:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx48IyJ8UlYpvRSpkbVmQutdvfmVRYPsZQtfS092k0NBO/OYso6+sfcRevtClT8+yGFcmy65M X-Received: by 2002:a17:902:7798:: with SMTP id o24-v6mr4456848pll.171.1522255988481; Wed, 28 Mar 2018 09:53:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522255988; cv=none; d=google.com; s=arc-20160816; b=YDGWwskl2cEWhXpGfpfGkq57clbbbS8MU/tOGEIN07V0CLnDsZikDc12HVQLvmm1sK eSpmnIuQLMqh2O13OaSJvC5Bpi6LoG52jJCXUk8GH4l2BG1t/I5uBsT4hktwsjGMV1In E7Rs4TAKtt50gn+VgAIwlh3BTdrJiDCgYfGDCtlwAoKbYmgWleRLBGhGWSliaqJlWd6q tEKRHiR2cK/1UAN054pVW5CAvZfh1fW1+cXag69hbzQcTd4jVCsPpf1xDNajp0wZB+3W 2vhq+sY0HpDqn0Uji7Brxj2EKqcDShtLJg5KCZWx0btfvDijDEqsfQqMoJciLTZo2/x2 g0sQ== 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:arc-authentication-results; bh=NYsEZS1cavf4sR2YcPnaUqZgtOVF/IC2NjnpfB4UdGI=; b=EpX9ovX0ZKIps8526VDXQoiYypcRMecduQLGek1QDRrWqGtWnCY2McCpgMw99/JpkG +jYEbt55mvRoZ2bVvClneL9MEGuM2iIiCDySNKjgP/Yq7or/gqwLNBn6EfjJl/VJvxTT os340D3b1eOigndyOt9nojpnfQGXkAd/LrPTrqkCH8NyYGL1PGCVcvrpPL90cFl1KAno quRlwOuSTRvp/lblFgdfLxHOnWquSVNECVB1GWw7j4awJAnHGH1XiOAGP9Sml9/mywF6 CsprgEm7C1zeNiLUpmf9ysD7JHFekZm1dWZujxb6yfjhrzMmLeErVz5eu6x6L3y7UcoZ qY+A== 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 y22-v6si3734896pll.270.2018.03.28.09.52.54; Wed, 28 Mar 2018 09:53:08 -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 S1752935AbeC1QTL (ORCPT + 99 others); Wed, 28 Mar 2018 12:19:11 -0400 Received: from mail.bootlin.com ([62.4.15.54]:39282 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbeC1QTH (ORCPT ); Wed, 28 Mar 2018 12:19:07 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id D0EBF206F3; Wed, 28 Mar 2018 18:19:04 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 7723620146; Wed, 28 Mar 2018 18:18:54 +0200 (CEST) Date: Wed, 28 Mar 2018 18:18:55 +0200 From: Alexandre Belloni To: Florian Fainelli Cc: "David S . Miller" , Allan Nielsen , razvan.stefanescu@nxp.com, po.liu@nxp.com, Thomas Petazzoni , Andrew Lunn , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Raju Lakkaraju Subject: Re: [PATCH net-next 1/8] net: phy: Add initial support for Microsemi Ocelot internal PHYs. Message-ID: <20180328161855.GJ13942@piout.net> References: <20180323201117.8416-1-alexandre.belloni@bootlin.com> <20180323201117.8416-2-alexandre.belloni@bootlin.com> <1caa7359-9ca3-be22-fae0-475daf8b220f@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1caa7359-9ca3-be22-fae0-475daf8b220f@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/03/2018 at 14:08:10 -0700, Florian Fainelli wrote: > On 03/23/2018 01:11 PM, Alexandre Belloni wrote: > > Add Microsemi Ocelot internal PHY ids. For now, simply use the genphy > > functions but more features are available. > > > > Cc: Raju Lakkaraju > > Signed-off-by: Alexandre Belloni > > --- > > drivers/net/phy/mscc.c | 15 +++++++++++++++ > > 1 file changed, 15 insertions(+) > > > > diff --git a/drivers/net/phy/mscc.c b/drivers/net/phy/mscc.c > > index 650c2667d523..e1ab3acd1cdb 100644 > > --- a/drivers/net/phy/mscc.c > > +++ b/drivers/net/phy/mscc.c > > @@ -91,6 +91,7 @@ enum rgmii_rx_clock_delay { > > #define SECURE_ON_PASSWD_LEN_4 0x4000 > > > > /* Microsemi PHY ID's */ > > +#define PHY_ID_OCELOT 0x00070540 > > #define PHY_ID_VSC8530 0x00070560 > > #define PHY_ID_VSC8531 0x00070570 > > #define PHY_ID_VSC8540 0x00070760 > > @@ -658,6 +659,19 @@ static int vsc85xx_probe(struct phy_device *phydev) > > > > /* Microsemi VSC85xx PHYs */ > > static struct phy_driver vsc85xx_driver[] = { > > +{ > > + .phy_id = PHY_ID_OCELOT, > > + .name = "Microsemi OCELOT", > > + .phy_id_mask = 0xfffffff0, > > + .features = PHY_GBIT_FEATURES, > > + .soft_reset = &genphy_soft_reset, > > + .config_init = &genphy_config_init, > > + .config_aneg = &genphy_config_aneg, > > + .aneg_done = &genphy_aneg_done, > > + .read_status = &genphy_read_status, > > + .suspend = &genphy_suspend, > > + .resume = &genphy_resume, > > With the exception of config_init(), suspend and resume, everything else > is already the default when you don't provide a callback. To echo to > what Andrew wrote already, if the purpose is just to show a nice name, > and do nothing else, consider using the Generic PHY driver (default). Ok, I'll drop this patch for now, until we handle more features for that PHY. -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com