Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp402670pxb; Thu, 21 Oct 2021 01:41:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyyhwWKfWX941XaGy550AcDHfG2sHcH3dIL8nKPybQe4xhllABDgB+zcOquzg7gBCMd+LBk X-Received: by 2002:a05:6a00:1946:b0:44d:8136:a4a4 with SMTP id s6-20020a056a00194600b0044d8136a4a4mr4264209pfk.46.1634805671497; Thu, 21 Oct 2021 01:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634805671; cv=none; d=google.com; s=arc-20160816; b=tGaJgqY2VY6GVRoYANKCZCgSjiPRIgtcLOFkI/0sBqbCCz4N7OJtYEn9eB1LxX2RHQ F5AfL4Twk7r21CXzSKA5m0WmdZhJPqvcYoId6rZUzykR/mMeG18IkfV5CxsJGSuHaVpI gZ4stG4PEwNHtL84l76DJ3b3uJD+QbVNcz8PK+9rvmwT2xHrQPqpr+PI+lV8nXtyw91c TqDPaLxxuKEqS92ouw/cDnIDnRMgQLGXj5bCvdMTUSrj6nCH0/mxGwVC2yCBfPRElki3 7ShINzTMFOViyOQmPRKm+ch+wyP3kWEllERMeAjfI3o78q72tSua1eAdpfA53QCcKPYS g2nQ== 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; bh=AP99hTDmS4Fo+qiAlqiRYc6rLC2ApHU1pUzBREMOKKs=; b=BcEuKT4UIk6bweXxSrCcXMqQEG/Ue5TFw1i05cewbi8st1H5Go+/YAeLK7qqX9BWxF ZmCvquHnQ4PH9pom/aRgTdrVSXr2zcSs4jH7nGcHGjviB8WEURikfzhnXfVI7RsLxcr8 SO+/IrsWThGTun4jnVtw+h0AhNrkBSQCrTftHd1ebOJ6F1HDtof8lqGpgFn6GlXUUXSx 6FqSoCba+HLDjwn/PF4hHH5XI6QtFWbivgQbVny2t/sM63fEV8pmEKLIsHobVMBpnbKK 5KGSYdf/m3XXF4nExDaH4ohbSYWSiGYq6QYPfPVoCHs89RcbYvcPDsV1GGE68WAgCpdQ 3bdQ== ARC-Authentication-Results: i=1; mx.google.com; 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 j3si6020945pgp.88.2021.10.21.01.40.58; Thu, 21 Oct 2021 01:41:11 -0700 (PDT) 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; 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 S231424AbhJUIl5 (ORCPT + 99 others); Thu, 21 Oct 2021 04:41:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231315AbhJUIl4 (ORCPT ); Thu, 21 Oct 2021 04:41:56 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23713C06161C for ; Thu, 21 Oct 2021 01:39:41 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mdTbm-0000Vy-Bv; Thu, 21 Oct 2021 10:39:30 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mdTbk-00081Y-Pw; Thu, 21 Oct 2021 10:39:28 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mdTbk-0000A3-Oj; Thu, 21 Oct 2021 10:39:28 +0200 Date: Thu, 21 Oct 2021 10:39:15 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Francesco Dolcini Cc: Greg Kroah-Hartman , Jiri Slaby , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] serial: imx: disable console clocks on unregister Message-ID: <20211021083915.4rpku6mtwzb2gqiv@pengutronix.de> References: <20211020192643.476895-1-francesco.dolcini@toradex.com> <20211020192643.476895-3-francesco.dolcini@toradex.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="y6gglve2xlbipk5d" Content-Disposition: inline In-Reply-To: <20211020192643.476895-3-francesco.dolcini@toradex.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --y6gglve2xlbipk5d Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 20, 2021 at 09:26:43PM +0200, Francesco Dolcini wrote: > During console setup imx_uart_console_setup() enables clocks, but they > are never disabled when the console is unregistered, this leads to > clk_prepare_enable() being called multiple times without a matching > clk_disable_unprepare() in case of console unregister. >=20 > Ensure that clock enable/disable are balanced adding > clk_disable_unprepare() in the console exit callback. >=20 > Signed-off-by: Francesco Dolcini Acked-by: Uwe Kleine-K=F6nig Thanks Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --y6gglve2xlbipk5d Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmFxJyoACgkQwfwUeK3K 7AkNJAf/euBdQ/R/DwFToMZ2PjKFK7cGNOE5MVbNtUd6GHCCTI4dsP0Wu+AzU3Mb 9YzfAsZCe1htDW03TyouJxEwHHmHen6T9Qz06iJEp2LGPo/MXBRx3EggHHdT3oan am7iWS+1rbfhiSSpy4eiA8ZJG7QTaHnONEI13J5Jd4wyqWVTZ2gh0dkpYsl45Wqe ShJD5/uoMx4M4m7IM9KX1rTnNSJ0hVhmUIyQbnA6hOVCDfwgNBDm+vykxwiVLcUf 0Jx75AvbJhBnJwqKzKOYlw7LGQD57BvQcvXeunt5jYI4vFiuWDgLcFrllhOcP/+T LDf65T8HQryYc8ZvkVLdt9QquJ3eKA== =KhiM -----END PGP SIGNATURE----- --y6gglve2xlbipk5d--