Received: by 10.213.65.68 with SMTP id h4csp710424imn; Fri, 23 Mar 2018 14:09:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELvX/iytmnulZZKOS5f6S3tgLuWBxUpR5HbHbMCR+4QBCFt+PP55JN9zdmhrmm5OeoKUQ99j X-Received: by 2002:a17:902:d886:: with SMTP id b6-v6mr25261231plz.254.1521839377965; Fri, 23 Mar 2018 14:09:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521839377; cv=none; d=google.com; s=arc-20160816; b=GSdaJrC0JRXGqHF0BMbKFGZmyrUu522Mv6zl3Lckus+kURpkTiIZJgSgM1LoTqJWRm G8K/i3X5JsCe5KOmCYK3F0WFb2zGY27V9ooahz5aEWighrGR26jKfm6PO55BS3K7tgJr 1xflKuTTXNh4wr56F1aEbZ+3wt/IKw1YY1I2xw6XdYjSL6eWJ8/Ir8hKhsOiWESKD+ih IXo+99AQuneYSSUP2HkqUpTSm7/x8RaIr01+7gwCHiqFKdmKTHbRiMLnawnwpvMhiRFP FDujmtw5iCV3zuTXjGfnF1gteuFTm1OtAHjYGY2NCppyqi07TO3Ry3BT6Sx9VHgMjj53 xt/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=bKXGAOLKTmuQ0F5+c875lFls7WwPfiOEJBXk8SF77xI=; b=LRQkddTTqWRFPQVV7caXOnSc44BessQTZDKQIltgH44OuetA4V62Qai4DwUNq5HdCO 8QJR69F1D7r43LyXFnC61h01JurNYCawdLFO9iM1+4wMtbl9Tex5tWToTW4Xw+uM3Z4g H0m4h5wLg7oT4I6H22tbmGvqJsOMHC28WkZt+qRDKvKVZasY2NtQDi6AcjXQB1NIC10q f+PzU2hX/ZHEa7Gf42HKDipl7RDnsBn7FFzNZ+MC4FqVJ0Jd33r+heU/dgWrshLNc+k/ veSYUUp2AAlvm56FnGATa5Cdh70DwBUHN4AfjCfI2hTW+oECtRZpyeEOwVXshv7T7vOt ugqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iIfSW3YO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9-v6si9444640plz.161.2018.03.23.14.09.23; Fri, 23 Mar 2018 14:09:37 -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=@gmail.com header.s=20161025 header.b=iIfSW3YO; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752065AbeCWVI3 (ORCPT + 99 others); Fri, 23 Mar 2018 17:08:29 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:38686 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751873AbeCWVI0 (ORCPT ); Fri, 23 Mar 2018 17:08:26 -0400 Received: by mail-wm0-f68.google.com with SMTP id l16so5843214wmh.3; Fri, 23 Mar 2018 14:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bKXGAOLKTmuQ0F5+c875lFls7WwPfiOEJBXk8SF77xI=; b=iIfSW3YOaXl1stUOg/Jy2RQ6rbvDZVQBZC2zUD9pXg3a94Mp7ebqAaH2sCD4W+sTAp Lc6q9EK6YqaZD00PZlcARaw1r+c0MdTsym6ytWcoUOmXdIZRrbVwrUhj+gDKWCgev8WP urUhV+6f4DBVn2Vh6DToXQHuyAzYdIwZOREwWaC02ipqKVtneaNukryVCLqmJ5EAFRDy RDnMXD7/lZvOCsz/0Ak3qwDsHDOJUDQ+IrR/ijpp6VmS4RoIvLN7OKcTpwLGRYbHe4ag OQba6j1CYePBGof/ao2lYt1ANjyQ77M3/IWewzblZOIUFBSCTC2lvoUfFYYAAdhwww7w nESw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bKXGAOLKTmuQ0F5+c875lFls7WwPfiOEJBXk8SF77xI=; b=km4CivlStAfqi7/XIGvaEtY465CD5MOKDyPDQagaLJlvUBOFQIJWbnKco+b6vg1nGS UVV1ab5lLet3VlGClt4cVr2IkC78du1z5WnmMDYS9MJ+dWqfKocET69za3hgdL80jxkZ T0sk7uTX46jv2J+HdeZ8NHP0CgIDmuFTZgIPkL9A0b2a8ru3bEjyiCSyETDfWmNn7EiB zNoZN/GlEgF6sABgghro5Mt/XKWGliz2q48S9GH4FtlU+JcdL3wtLMQxJydqbaZebo9V MHiQ5Npsf7k5veKybbUdagtVrcGMJsVrxak75wq9QndghhFKPbXWpFIeb1SmuRe4CeLz 3+jg== X-Gm-Message-State: AElRT7EPiAFwXXmLco70SMWPeb431cYI6Ts6Yz2pEvcFLqfBMsf1+8S4 emQfB855Bw3GRkC+S7GNzCc= X-Received: by 10.80.240.81 with SMTP id u17mr19392665edl.276.1521839304793; Fri, 23 Mar 2018 14:08:24 -0700 (PDT) Received: from [10.69.41.93] ([192.19.223.250]) by smtp.googlemail.com with ESMTPSA id z4sm6776695edm.44.2018.03.23.14.08.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 14:08:23 -0700 (PDT) Subject: Re: [PATCH net-next 1/8] net: phy: Add initial support for Microsemi Ocelot internal PHYs. To: Alexandre Belloni , "David S . Miller" Cc: 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 References: <20180323201117.8416-1-alexandre.belloni@bootlin.com> <20180323201117.8416-2-alexandre.belloni@bootlin.com> From: Florian Fainelli Message-ID: <1caa7359-9ca3-be22-fae0-475daf8b220f@gmail.com> Date: Fri, 23 Mar 2018 14:08:10 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180323201117.8416-2-alexandre.belloni@bootlin.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). -- Florian