Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4334228ybx; Mon, 4 Nov 2019 11:35:26 -0800 (PST) X-Google-Smtp-Source: APXvYqySAzOX3lAzj60XWAO6ozxplGWrGBkcVwerc0L6CXABtkUuFdaPEC2wlkGsjpgW/QZw32cg X-Received: by 2002:a17:906:3501:: with SMTP id r1mr24713444eja.301.1572896126527; Mon, 04 Nov 2019 11:35:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572896126; cv=none; d=google.com; s=arc-20160816; b=lEoZYKmpgmVOCc/BM1As3+FwdPuWzR15mkfh7p91KQrqkwNRCXTu9xa/PvJ/bXTb8v 0YIGAIfY8uo+opM3twjENxK3WCuDwYHixzGCjo0SOo3GFZt0zR3mWKLwf4YHJBVEZ0vv 73cWXUAVi6sqDPigh4p4Yun/oMpOwBcOMcr98gR7ya35qQqOPPxwQewMFX0kv/t/81Kh STl5w4agmBP44AIcEwYfmIfOqPglspLdLFiw7PXRU80VSjx5x3Ld/IxfkfL1DDkiQcXz CC4dGbAWVMf2ftxink3Cwc6zknLpAuSyr9Fy5tZI/VLbkVZpq1qaLryKZyGHfnZvCgeI ckJQ== 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:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=dR/wxysSwJSFWrEC66MGZLihkJMTR8ButTWwcwNsnf8=; b=0dF4lesoyx18L8FmXNhLGG9YODBtVmqAw5ylT5DWWpC5pK+wXJr/iROhe61jeV5CBn PB1GbZyzqKwmMJFxYqZu3WBFRKtcPW0MDXmUicKV5r1AuXzPXFloTp8+D5KpdB405kd2 3gyWZfPloqfGQ7pVmtWN06jKgVizFGkRWdlwa/5gZ+f1rJy2Ffx6xlQq0aELZqs63IqH R2W6zr/eeTAkAG2MPEdgYvzcDkX2kGg2Q0/IDvGFaFGqDX4Ya6AcG+d1Ue/Hj96ejpvR tynQN0qt4ouYaJCjJAA625/P8Xnk0Bg7/2NhicVagr9BtQ+yIOnMfzPTAAx+AKDgX/fX o0ZQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l27si11481001ejg.124.2019.11.04.11.35.03; Mon, 04 Nov 2019 11:35:26 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729862AbfKDTdr (ORCPT + 99 others); Mon, 4 Nov 2019 14:33:47 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:50586 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728322AbfKDTdq (ORCPT ); Mon, 4 Nov 2019 14:33:46 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 592F6151D7249; Mon, 4 Nov 2019 11:33:45 -0800 (PST) Date: Mon, 04 Nov 2019 11:33:44 -0800 (PST) Message-Id: <20191104.113344.1336648901043158957.davem@davemloft.net> To: christophe.roullier@st.com Cc: robh@kernel.org, joabreu@synopsys.com, mark.rutland@arm.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, peppe.cavallaro@st.com, linux-stm32@st-md-mailman.stormreply.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, andrew@lunn.ch Subject: Re: [PATCH net-next 1/4] net: ethernet: stmmac: Add support for syscfg clock From: David Miller In-Reply-To: <20191104132533.5153-2-christophe.roullier@st.com> References: <20191104132533.5153-1-christophe.roullier@st.com> <20191104132533.5153-2-christophe.roullier@st.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 04 Nov 2019 11:33:45 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Roullier Date: Mon, 4 Nov 2019 14:25:30 +0100 > + if (dwmac->syscfg_clk) > + goto unprepare_syscfg; > return ret; ... > +unprepare_syscfg: > + clk_disable_unprepare(dwmac->syscfg_clk); > + > + return ret; This is so amazingly silly. You're doing a goto instead of the clk_disable_unprepare() call itself. Please don't do this.