Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3209282imu; Sat, 24 Nov 2018 00:08:58 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wm5akh8c1Kc6bqeMLEH/pvV/iGHFQTa73TMAYBytMvJ6iCFtAtY4vLo/zGfJsRHzu1msyW X-Received: by 2002:a63:e711:: with SMTP id b17mr16570594pgi.363.1543046938832; Sat, 24 Nov 2018 00:08:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543046938; cv=none; d=google.com; s=arc-20160816; b=CwH7qAhaIsO3nequJasRbPm9JHJN8sXxOEcuRvyycmY/R6zYXRK3YdrJgAGjRYVvBN RROW0PD0mkJtBYv4RdgLGCg5OKtHYk/Lb4ONrZ8Dc2fFOvcKOqO7xzuwAH2Q0aJzsVRx MUYxx2NC5OtUlpMCEFPYDTCJ/ydSouMSeUaAzQz4tgeimHzX1zSZoiOot6QTac2v0tB+ EECrN+yWsuBqU61KamQGnRY90jB2GD3Cl4kSyLEIoPvOtggJEuKQorjmvX7+PHDC6O1g LttfKu1cUvcNX4JWH4azyZlN7pjCm/RXH3Xet3EOHuDyXpwMPIvvJAaC6H4TXsSCXwf6 4o/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=uV24Im1rZNiBkNPIvnRo93q+4f5fPhC1aZDVzsXWlSk=; b=qrOhqhZ4igfvnbvkZJgvcou+7q32qX/UIKAATiiTQ0/2uiEBc5JSGZQ3ngYmhVog2e 23hDVpv5OwZmAHIZ4g2a9bsY64FH1u+UCCZw8BQF5RPnenhoAo07j+3aaIiX/jmBAISv C2duGkRMLHurHhkEr3dR5Tp9Ox8oMQqHY4xJ/lLL92B049j80I4APNpEm7SGPAhG6tNX 4YQlfMfEo/xrNV7HRfRsyioy7/Am06e5zFzjjMmwhnRpyDjbCayq2K884PmbfoRNkEdc D4LbM+qgZ7TFrXw2OZpG4du2ZoDGcXDR6NH7xo9PJ0FxsOxdO2T4CoiNiBuFeTB4GgxB 3Xcw== 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 t11si28243573plo.293.2018.11.24.00.08.44; Sat, 24 Nov 2018 00:08:58 -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 S2408353AbeKWSq0 (ORCPT + 99 others); Fri, 23 Nov 2018 13:46:26 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:60335 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732073AbeKWSq0 (ORCPT ); Fri, 23 Nov 2018 13:46:26 -0500 Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gQ6Qh-0004x7-1P; Fri, 23 Nov 2018 09:03:11 +0100 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1gQ6Qe-0008O2-D4; Fri, 23 Nov 2018 09:03:08 +0100 Date: Fri, 23 Nov 2018 09:03:08 +0100 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Stefan Agner Cc: gregkh@linuxfoundation.org, jslaby@suse.com, fabio.estevam@nxp.com, s.hauer@pengutronix.de, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] serial: imx: fix error handling in console_setup Message-ID: <20181123080308.b5t75gfmjcop5rmb@pengutronix.de> References: <20181114174940.7865-1-stefan@agner.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181114174940.7865-1-stefan@agner.ch> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 14, 2018 at 06:49:38PM +0100, Stefan Agner wrote: > The ipg clock only needs to be unprepared in case preparing > per clock fails. The ipg clock has already disabled at the point. > > Fixes: 1cf93e0d5488 ("serial: imx: remove the uart_console() check") > Signed-off-by: Stefan Agner > --- > drivers/tty/serial/imx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c > index 0f67197a3783..313c3b1900a8 100644 > --- a/drivers/tty/serial/imx.c > +++ b/drivers/tty/serial/imx.c > @@ -2068,7 +2068,7 @@ imx_uart_console_setup(struct console *co, char *options) > > retval = clk_prepare(sport->clk_per); > if (retval) > - clk_disable_unprepare(sport->clk_ipg); > + clk_unprepare(sport->clk_ipg); good catch, Reviewed-by: Uwe Kleine-K?nig Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |