Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp344771rdh; Thu, 26 Oct 2023 04:04:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHuNw7VWJe4P/0xKvmiA5fOw/cTTu5S5/QpH+WuSgb1bPVnAklpytGpZTFaWLExz7A6U04v X-Received: by 2002:a05:6808:1a88:b0:3ad:fe8d:dfae with SMTP id bm8-20020a0568081a8800b003adfe8ddfaemr13653987oib.57.1698318252013; Thu, 26 Oct 2023 04:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698318251; cv=none; d=google.com; s=arc-20160816; b=W+sw+WOKlEA2aTDwWS9pE6TfCcUpSq5gTsC8TK6U5Xc7QfzqBIXAdMq84k1m7SZu9L 2OXQATF+u/2DWkOmix2C3apGDQGHnXtmKrn17ovQoHI0Yx4qylreaY3mYm4KIkSD5KMG xF/gEBp687zB98g4MlQWd7IgGKllmpkkN4l62ZaWeXoEcLYWavxrMQDIQmNuQ/kZhb4w OMnZT34now/MUzV5pyA3ZRFZbbHwCtaHNfUtibFdoACcny7CFZO/akVX5//Sdm8Vhc/F UjBZFKVhUmiyue+3w8COkjc6lYP+s/ZTEuPZe3ayIUwdBcSE9tBgfhDl2FX89uURaNUT v+hA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=iHjiiSzkh9udigE4nIlVeYQ3C3Kg8K4ddmqM2Tzx13Y=; fh=9iaPZ7Cuvnr9YGK8Ce9odLdEfPssUqvmoD+zBo30J0M=; b=ufyGZXZGYBoDx2FOS+XD1OfUBPcuJIXCtxnvrRngbqzO/LOflmBE9Ab7QReG6vxmvS o6J2P4nvm6Y7z1be+bGQyO08VtOO2brUSg8Cmsycd2Vqz8QQMBXtbScIMXnFd8EklZk5 /T3ZiNAXEpcl9x1rnlASqG9Ww5MFpbyxZTHSCsQii4zcb9F0wd2YgpRpIgTxN/3nLI1n QdGChFXP/20odNZwOaHNofTx4zUgZjqSkfCeOajtsKAmmr69NcdYJYATfi+ZMefMGupq 8nGgWr3yJQ5zGi3+2Dsh5kp/vFgMoYIejqM/AOPivCTkQ4hElDI2LyOTUs144rbKLN2L Kjlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="Bc/0gUe3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id e65-20020a251e44000000b00d8d3b231a75si13917708ybe.733.2023.10.26.04.03.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 04:04:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="Bc/0gUe3"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 554FD8108BDA; Thu, 26 Oct 2023 04:03:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344710AbjJZLDt (ORCPT + 99 others); Thu, 26 Oct 2023 07:03:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234943AbjJZLDs (ORCPT ); Thu, 26 Oct 2023 07:03:48 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D17919D; Thu, 26 Oct 2023 04:03:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=iHjiiSzkh9udigE4nIlVeYQ3C3Kg8K4ddmqM2Tzx13Y=; b=Bc/0gUe3r1WB9WvGs0MACOeio/ SLQ/xrMpi/iphV7/amzWpASArGPm06mfRMUIudqH2aPusBpXP8j1o0NivSGNw0vcQEDbK4UzffY3+ 4qa+i7EmhS2/oBcW/auxn+0r5xSa1YUYH0qelqBYXMuSHAVgU8ng6MkB6cvm7Yujyp0B+3gvkyYjp W/bFrC51kVTSaYzqfyUb582LjNE1g6ykgx/Xy8bbYs2uKHzN3PnuGXrHo2OO+FRraZTs9ip4ZllQr Q4AL0TiPtVLegidEaRCXsk954uIssmiP1/vBP0xJQ5ku5j8Vzsy6VN/rtLsGq7NoQNqcbC8zZWMps Ou3JigHQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44196) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qvy9L-0006cz-2x; Thu, 26 Oct 2023 12:03:39 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qvy9L-00082m-TT; Thu, 26 Oct 2023 12:03:39 +0100 Date: Thu, 26 Oct 2023 12:03:39 +0100 From: "Russell King (Oracle)" To: Raju Lakkaraju Cc: netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, andrew@lunn.ch, Jose.Abreu@synopsys.com, fancer.lancer@gmail.com, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next V2] net: pcs: xpcs: Add 2500BASE-X case in get state for XPCS drivers Message-ID: References: <20231026101642.3913-1-Raju.Lakkaraju@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231026101642.3913-1-Raju.Lakkaraju@microchip.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 26 Oct 2023 04:03:57 -0700 (PDT) On Thu, Oct 26, 2023 at 03:46:42PM +0530, Raju Lakkaraju wrote: > Add DW_2500BASEX case in xpcs_get_state( ) to update speed, duplex and pause > > Signed-off-by: Raju Lakkaraju Sorry for not doing a fuller review with the earlier iteration today. Also, please note that on netdev, it's customary not to post more than one version of a patch per day. Please see the netdev FAQ for guidance. > +static int xpcs_get_state_2500basex(struct dw_xpcs *xpcs, > + struct phylink_link_state *state) > +{ > + int sts; > + > + sts = xpcs_read(xpcs, MDIO_MMD_VEND2, DW_VR_MII_MMD_STS); if (sts < 0) { state->link = 0; return sts; } especially as a negative errno value could result in state->link being true. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!