Received: by 10.213.65.68 with SMTP id h4csp687043imn; Fri, 23 Mar 2018 13:31:39 -0700 (PDT) X-Google-Smtp-Source: AG47ELuJ15ER0vOvhAoZUmZcTTMWuzN5iOd6bgFaIdFjvfpF9mists/rn/3/1oVvBuLVTuLDXUOh X-Received: by 10.99.96.19 with SMTP id u19mr21424328pgb.261.1521837099791; Fri, 23 Mar 2018 13:31:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521837099; cv=none; d=google.com; s=arc-20160816; b=jWuFwMbXVtt0sewqFeYrU71VdCG+qhh6av0t4Lqn364GQwQ675vkLPEM2McliUTv6v xg4C+zScBdg5YALqMFyhnskdf4tNDvi5xabHpyr+j9X1Wq0OCwTXdj9J3sMbEQENoXBu XjFDVzk3Zu0Oe1xKMyNuZ1U4++zljPcXBBKUp4s3m+a5dVvv6U85xSiIpC9t2EoKJZz6 5PWtvB9ly0NJ55A3m8IlEvN+3jI7lAdrGhfwT14oF4BUC18j+lAAv6YTILJbHWz0PXOI hbpEHvEUwkuTecj5UKpyo8mo3m7OxgWx9c5yKZxVt2NV6q7ewlQzHrXERdW2yX+uL2FW I+1A== 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:arc-authentication-results; bh=QjBUXQWrQWphotC9oTO1gve+8sOwiX+pw/2/x36COWA=; b=x15UNkbxRX3ZBZrPhK7ECDHTEdGuZInD30JdV/D8v2QFHUMny///qdSyfZ9SDYuTEA aa9BJnE5KsWZyDjYLQM7HaHNitQG02A6o2mehbYtMSu4yq7CHon7Ep7Aa028Zi80jRDx f9UdUEtiEvdUvv27mllxkHqkj7Wa3ajPILoq2MMs4CgJYqJldiLQMiXZi3hfP38tpFFn 1S4OCJQqJYvq9xO0P7AJT6WMZ+Dft7lbsyZIQuw41GbhLDyyvdajiPg1LIXVnoARweSw oUXMtFvqBMQ/gkD+EJlk8t/tWfKbaD5NIv108Gk1lVTPMFlWvwTX9NS202I1FZqpK3l0 BWfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=NFBex6Gq; 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 w8-v6si9007503plp.680.2018.03.23.13.31.13; Fri, 23 Mar 2018 13:31: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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=NFBex6Gq; 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 S1751892AbeCWU3v (ORCPT + 99 others); Fri, 23 Mar 2018 16:29:51 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:40602 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751427AbeCWU3t (ORCPT ); Fri, 23 Mar 2018 16:29:49 -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=QjBUXQWrQWphotC9oTO1gve+8sOwiX+pw/2/x36COWA=; b=NFBex6Gqp2fTxf5x3JGdIJCyPHdORlu3I8ls7gbwdCfmHwWHf/2NBHUJjTS8aIlFii/rFx4PKx3tHJKa0L8aqzECVKPh6z/v6Wm7Q9hTXbdGMI99WtJNjAUFsbE0WCa2W9gtrkkVQfg870mX22C4VWkOOsuwU+gbUgY3cUnbGAY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1ezTJm-0005Pl-Bi; Fri, 23 Mar 2018 21:29:42 +0100 Date: Fri, 23 Mar 2018 21:29:42 +0100 From: Andrew Lunn To: Alexandre Belloni Cc: "David S . Miller" , Allan Nielsen , razvan.stefanescu@nxp.com, po.liu@nxp.com, Thomas Petazzoni , Florian Fainelli , 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: <20180323202942.GR24361@lunn.ch> References: <20180323201117.8416-1-alexandre.belloni@bootlin.com> <20180323201117.8416-2-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180323201117.8416-2-alexandre.belloni@bootlin.com> 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 On Fri, Mar 23, 2018 at 09:11:10PM +0100, 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, No interrupt support? In fact, the only advantage i see this brings over the generic driver is that the name Microsemi OCELOT is printed. Andrew > + .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, > +},