Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp387985pxu; Fri, 4 Dec 2020 05:54:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwA164pOML/I9LTX101ZIV4MK3MHm4x9+QK0DmU0gkopvbpgXpzd9P/Ck5S4m6ZtsPnOExi X-Received: by 2002:a17:906:81ca:: with SMTP id e10mr7068940ejx.449.1607090085039; Fri, 04 Dec 2020 05:54:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607090085; cv=none; d=google.com; s=arc-20160816; b=S3HxVUdPyrHkQJcDjWK4tH9fLMKoE0QavKBXCSnv0jEL/h+qJlveY+gFogcZpdqlh1 sAd8ZGZM3xSb2I546iWlfeEiLHY2oeVRymBz1TNFm6k0xVBrjOjLYsUuWGOAvFTV+WVJ /QFBcZ7Rsdfib/gBKf/Z/hSvCGhVJJXBGTuFPJum0ZnXBKgCR6s4vT9MYD59Cr/M31AZ d2x8FfkincPF3sMlpySPgjaM9RuLbjIbL4V+UN+XaUpz5jzDT28R5Jnmax+0MvFGUDwU ps9DjuLpsLMV3VdSiV6W/hXTYkBxj//049B7IaJzTQWgeTb77y1kadwp6Ddx/K5eAZly l4og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :dkim-signature; bh=YWEeJgrK/B5ymUVtl+hoeooXn4gJh0mSrOndNqDnFKs=; b=sP8Np5adYyBk1I3A8x1ThTVwTxPeFCzMOQfKrkw+ImN7auCFpRv85h/IS4ZeWYz13V pxHw693f1z44vP7Wwc5ZHRMDcCw14acExzD9CB2kZYMIiRWustEvovQWR5LFrHSYt81F EulTb6PysW7iL3cX9Avrl7rJgiR2W2ZfoyAntMNsLvdzPU+xFGNiEyR9843UyAC43Qio BI1sV63G7VKKJmX97tdF7lrKPyhjxlw6pBQ67M7MRrlL7xg6/gDGN31MT42OQpPNtz5T HGDeApC3B3poLx8+3wJIzZPgJK/h67E8oGbIuR9rlBat8ru8Kh2GF9MHOQUWBpR/BK5n O7+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=1gJkdzhe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r2si2951323edx.114.2020.12.04.05.54.22; Fri, 04 Dec 2020 05:54:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b=1gJkdzhe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730251AbgLDNwS (ORCPT + 99 others); Fri, 4 Dec 2020 08:52:18 -0500 Received: from esa5.microchip.iphmx.com ([216.71.150.166]:60581 "EHLO esa5.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbgLDNwR (ORCPT ); Fri, 4 Dec 2020 08:52:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1607089937; x=1638625937; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ck/uu08xuRYdD8AcD/ZXVJ8Zeup1t0ngXLoX1ZNCizk=; b=1gJkdzheqKjV/JlXz5DZxZkyac1AaVR7/0AHCMKtYgeYJ0hwD5IUW4L8 efauTQRBdKWB1D2Y7KPlveFVfaHem7kFBA/mQ0ICZ2UphjzXwxLWj6vnl wLXRxT18OCUeCKVtlBJpCzfsIhdX5NDS7th8XnI2CgMz/E45AszpGqxB1 iNzBKuejBJ6sGJykMNwqnTEkFL5Lt1gQinWWZxpNPJsuHdGfPiMqnaBws xUNxVRLKOWX1HvF7VVgZuN7AXh0v8unQ16F/I5vO9mjTugsxW8f7tMna5 80T4I+9HaOgF42zitwmT1afKHnNBkwp0DMzBG1kmBF6plwa++Iony+s8V g==; IronPort-SDR: 7KKCuq7zDvodWckmI6RAQQ9MrOeg96i4TLPR41wNH5Sm43aeNZoqG4hD8n/kUOUDwwH3uaU2Uu Bv5LjC5sUwTtNtAHhT5cATUsLrAQGjOUZx+7hRbSSaoLoD7QbpDp4YldyMzZR/nBStcWujgelX ne+WetyNeAkollwoq0NXpb0a/h2Jq/FpuhHW6brcFeJdz7HoofwI2FsYWjfnVzkbzxCFC7Njqr VsiosUM4udBwhxLMSoPZuT88NUhBj5DLnw5fuQPVOGDim5IHOFPsbBeInQxR7145SbEP1/JsbA VI8= X-IronPort-AV: E=Sophos;i="5.78,392,1599548400"; d="scan'208";a="100924024" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 04 Dec 2020 06:51:11 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Fri, 4 Dec 2020 06:51:11 -0700 Received: from localhost (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Fri, 4 Dec 2020 06:51:11 -0700 Date: Fri, 4 Dec 2020 14:51:10 +0100 From: Steen Hegelund To: Russell King - ARM Linux admin CC: Andrew Lunn , Kishon Vijay Abraham I , Vinod Koul , , Alexandre Belloni , Lars Povlsen , Bjarni Jonasson , Microchip UNG Driver List , , Subject: Re: [PATCH v8 3/4] phy: Add Sparx5 ethernet serdes PHY driver Message-ID: <20201204135110.p5kdyvhxmuplao2u@mchp-dev-shegelun> References: <20201203103015.3735373-1-steen.hegelund@microchip.com> <20201203103015.3735373-4-steen.hegelund@microchip.com> <20201203215253.GL2333853@lunn.ch> <20201203225232.GI1551@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Disposition: inline In-Reply-To: <20201203225232.GI1551@shell.armlinux.org.uk> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03.12.2020 22:52, Russell King - ARM Linux admin wrote: >EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > >On Thu, Dec 03, 2020 at 10:52:53PM +0100, Andrew Lunn wrote: >> > +/* map from SD25G28 interface width to configuration value */ >> > +static u8 sd25g28_get_iw_setting(const u8 interface_width) >> > +{ >> > + switch (interface_width) { >> > + case 10: return 0; >> > + case 16: return 1; >> > + case 32: return 3; >> > + case 40: return 4; >> > + case 64: return 5; >> > + default: >> > + pr_err("%s: Illegal value %d for interface width\n", >> > + __func__, interface_width); >> >> Please make use of dev_err(phy->dev, so we know which PHY has >> configuration problems. >> >> > +static int sparx5_serdes_validate(struct phy *phy, enum phy_mode mode, >> > + int submode, >> > + union phy_configure_opts *opts) >> > +{ >> > + struct sparx5_serdes_macro *macro = phy_get_drvdata(phy); >> > + struct sparx5_serdes_private *priv = macro->priv; >> > + u32 value, analog_sd; >> > + >> > + if (mode != PHY_MODE_ETHERNET) >> > + return -EINVAL; >> > + >> > + switch (submode) { >> > + case PHY_INTERFACE_MODE_1000BASEX: >> > + case PHY_INTERFACE_MODE_SGMII: >> > + case PHY_INTERFACE_MODE_QSGMII: >> > + case PHY_INTERFACE_MODE_10GBASER: >> > + break; >> > + default: >> > + return -EINVAL; >> > + } >> > + if (macro->serdestype == SPX5_SDT_6G) { >> > + value = sdx5_rd(priv, SD6G_LANE_LANE_DF(macro->stpidx)); >> > + analog_sd = SD6G_LANE_LANE_DF_PMA2PCS_RXEI_FILTERED_GET(value); >> > + } else if (macro->serdestype == SPX5_SDT_10G) { >> > + value = sdx5_rd(priv, SD10G_LANE_LANE_DF(macro->stpidx)); >> > + analog_sd = SD10G_LANE_LANE_DF_PMA2PCS_RXEI_FILTERED_GET(value); >> > + } else { >> > + value = sdx5_rd(priv, SD25G_LANE_LANE_DE(macro->stpidx)); >> > + analog_sd = SD25G_LANE_LANE_DE_LN_PMA_RXEI_GET(value); >> > + } >> > + /* Link up is when analog_sd == 0 */ >> > + return analog_sd; >> > +} > >You still have not Cc'd me on your patches. Please can you either: > >1) use get_maintainer.pl to find out whom you should be sending > your patches to >or >2) include me in your cc for this patch set as phylink maintainer in > your patch set so I can review your use of phylink. > >Consider your patches NAK'd until you send them to me so that I can >review them. > >Thanks. Hi Russell, I will CC you on the next version of this series. In reality I was just asked by Vladimir Oltean to crosspost to netdev. This is a series for the Generic PHY subsystem. Sorry about the confusion. > >-- >RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ >FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! BR Steen --------------------------------------- Steen Hegelund steen.hegelund@microchip.com