From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9F1D2C43334 for ; Thu, 14 Jul 2022 03:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ibvPfswaDiE3YJxHyxiFt99aAU/7ABmblW7vARf66S4=; b=fb8BizPGBywpEb /jFaMexo/HR6APEbb/kv0dFnqkM0fsMOj5Hb5RdXlqKpJuCiGykmY5CUSH3bXIW90CtFYnJoZWBo7 y/4yVWuBBuxzqhYf94Vz5lFzaR5qBIV35kgxLWE1IhOt50zmojaG82Dr1QWFBG0wXM/oj7NyAwfKH Y343vf9FrTQCLOrcvAmnme+IDj6oSWAtrnyNpGUNaJGNikm1ZKM2mjj15EY/HGqtLC0NY0aICp1vz kr6+UqfEvqQMrAVxLGB+RLYMkeXV1s3Sja279Pf4laKtw2E+PTVF4Sjk0hs1u6BslyMIvTg1t/gch eTVMx3Vvthmy9aQaMy1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBph7-00AMGt-Ez; Thu, 14 Jul 2022 03:39:17 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBph3-00AMEz-W1; Thu, 14 Jul 2022 03:39:15 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1B6F161DC4; Thu, 14 Jul 2022 03:39:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA429C34114; Thu, 14 Jul 2022 03:39:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657769952; bh=zopjln99q1rxFvM6ak58aizazSshf28UHBqgM18CFvY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=O17AZt/AeHkPn061iiEgqkpCxr/6kBkYFumRDxFpzpRDC0oakyZZ3XRGmfmEY6Ei9 3ywnUmTLEXIsHlVvHMGqzUgTIpER87EFYeXOUR4n/d6QlwlK/L0Qmk8IRQ32aEqWdO +TRWuSukauk6OJIVXPhjRbYzN8zLn+pXZ1FOgs/Md9SffssjYPWH+RzvTOOR3XEm+K 7vnP1QnI8vnpRqzgkdhK1tFUJDN0trTKm+UI85RlhJTRLnmpf6th0iuPXZsZGNsfNr KrJuGiYy2WyUx3ImBk01c8POD00qj2MivZaDPDLEOrZHOJZ1icPv4DjGAl3WhPv/OR ppqEbKU1SP4kA== Date: Wed, 13 Jul 2022 20:39:10 -0700 From: Jakub Kicinski To: Biao Huang Cc: David Miller , Matthias Brugger , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Eric Dumazet , Paolo Abeni , Maxime Coquelin , AngeloGioacchino Del Regno , , , , , , , Jisheng Zhang , Mohammad Athari Bin Ismail Subject: Re: [PATCH net v4 3/3] net: stmmac: fix unbalanced ptp clock issue in suspend/resume flow Message-ID: <20220713203910.74d36732@kernel.org> In-Reply-To: <20220713101002.10970-4-biao.huang@mediatek.com> References: <20220713101002.10970-1-biao.huang@mediatek.com> <20220713101002.10970-4-biao.huang@mediatek.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220713_203914_101684_16579364 X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, 13 Jul 2022 18:10:02 +0800 Biao Huang wrote: > diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > index 197fac587ad5..c230b8b9aab1 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c > @@ -839,14 +839,6 @@ int stmmac_init_tstamp_counter(struct stmmac_priv *priv, u32 systime_flags) > if (!(priv->dma_cap.time_stamp || priv->dma_cap.atime_stamp)) > return -EOPNOTSUPP; > > - ret = clk_prepare_enable(priv->plat->clk_ptp_ref); > - if (ret < 0) { > - netdev_warn(priv->dev, > - "failed to enable PTP reference clock: %pe\n", > - ERR_PTR(ret)); > - return ret; > - } > - > stmmac_config_hw_tstamping(priv, priv->ptpaddr, systime_flags); > priv->systime_flags = systime_flags; > drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:837:6: warning: unused variable 'ret' [-Wunused-variable] int ret; ^ _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel