Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3520668pxb; Mon, 24 Jan 2022 11:17:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJxk8XfTET3lGpwNL+XplC5KvRkk2Djpr+rSUYIadKDho97q7h01MB2/dnT3wb8aXwSZWSfG X-Received: by 2002:a65:5a8c:: with SMTP id c12mr13061576pgt.54.1643051846447; Mon, 24 Jan 2022 11:17:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643051846; cv=none; d=google.com; s=arc-20160816; b=GzSWEBxTE1U3kY2Fz5vErZ/FMwtdI+YJtpsdo5E4ERH0C/41BuPSHIEdhWikJ6OtQX r/VupSpe1RacCoCZe50bCgbovLt5FfolnHaNsNDMKJy/4zuaNuuOBglwJqMcTgAxo41M vkFb7VwSQRb7/mWpuqF8q4BtMrOnxUVMpaFr09MrIVhoUrLH+rl+oLsXv1ZwIgANuQ+y zwiGzBMQ+sT8Qf7Fxqcx5PYlkJnu+FOXXfo74N3V68OimSDaR9ELcLkDomr0xk5RxqFK P/C83+26NmEGgbBNM5PUtxmbLyeQKNM1wKfhGLEDywe/u+5HsEY/gQIzTaHy+BnT+g6e 5Iaw== 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:dkim-signature; bh=PeFIruRVAx/9fcHZk7SrtQ7xKuJ0YbP5VfyDFWFEJSw=; b=IWUshj2pLw7bUtAvEvY7fkR7RE181eR148mNJoJDG8EinP4pMxhy79FRSDR4cehv38 nz4e4rgSrJo/uMjWA5n9J5eX5C2lse0HX1IRSuhdqmZFSzr287IKa6N7ddG+6FGI3eoC BOkfPDQEdPOHCwmc9oQIvIMMf7M7md7jF9fsUIjL8GgLgDr12RZcoFQoS8UyNCSVLeJw jDyL0sZmq5Tqf0cUrLMaqPQL1O0G9P8KfJgoyrCExEz6xYnajzSzfluiN9DmLjyTO+nq ZuEuoC82mlcklYf2lsM8AXKd4xMja0tOX3NSaaiNxIUYLY5owKwIlPeoWAKLQD5J4mhq KIXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="xNaC/FgU"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x12si98757pjv.2.2022.01.24.11.17.08; Mon, 24 Jan 2022 11:17:26 -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=pass header.i=@lunn.ch header.s=20171124 header.b="xNaC/FgU"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239871AbiAXNPn (ORCPT + 99 others); Mon, 24 Jan 2022 08:15:43 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:50718 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbiAXNPm (ORCPT ); Mon, 24 Jan 2022 08:15:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=PeFIruRVAx/9fcHZk7SrtQ7xKuJ0YbP5VfyDFWFEJSw=; b=xNaC/FgUnUbJApVTzE3QBM8Djn w16MkgJn3jTsl3IlNpc0Uu7r56sCQIwzpR7BGd/HuczSidjDiif1i+IUYc0NELP8xMK65vYvZCmXe 53bERZ7s8V4cinKzRid22A2gaCq4jElkED97VaRNfxWKGsQVeSDwhtrRus9S32iYtoU0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nBzBr-002TB3-P7; Mon, 24 Jan 2022 14:15:23 +0100 Date: Mon, 24 Jan 2022 14:15:23 +0100 From: Andrew Lunn To: Mohammad Athari Bin Ismail Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , Ong Boon Leong , Voon Weifeng , Wong Vee Khee , Huacai Chen , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net 2/2] net: stmmac: skip only stmmac_ptp_register when resume from suspend Message-ID: References: <20220124095951.23845-1-mohammad.athari.ismail@intel.com> <20220124095951.23845-3-mohammad.athari.ismail@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220124095951.23845-3-mohammad.athari.ismail@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > @@ -3308,13 +3309,11 @@ static int stmmac_hw_setup(struct net_device *dev, bool init_ptp) > > stmmac_mmc_setup(priv); > > - if (init_ptp) { > - ret = stmmac_init_ptp(priv); > - if (ret == -EOPNOTSUPP) > - netdev_warn(priv->dev, "PTP not supported by HW\n"); > - else if (ret) > - netdev_warn(priv->dev, "PTP init failed\n"); > - } > + ret = stmmac_init_ptp(priv, ptp_register); > + if (ret == -EOPNOTSUPP) > + netdev_warn(priv->dev, "PTP not supported by HW\n"); > + else if (ret) > + netdev_warn(priv->dev, "PTP init failed\n"); The init_ptp parameter now seems unused? If so, please remove it. Andrew