Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp442903pxb; Fri, 29 Oct 2021 12:53:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMLQVfv5ODwKPspWQrduKnD3ugm9sQBEKDHrWNQmgEXmGsoAaY7l7+d1aFWqJtk4YBIeXY X-Received: by 2002:a92:b110:: with SMTP id t16mr5119034ilh.38.1635537198283; Fri, 29 Oct 2021 12:53:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635537198; cv=none; d=google.com; s=arc-20160816; b=cIaifT9i/+ytxhUUmu3af8KrzTbOfozLyszIxpDkXocLsnU0xs8OMV0oUkoF9sn5Zb tCoZnKHn4Re75sSA690GJPPj3Y2/+MJ/ltKjVZCtWAJbNwrBBNlVIqOr+D4oBD3uAoZB 1uxVaqsvNPDQLYD2V84Us3Ysf/TECBPGJO+qAwxGOMzokfhSs+NqRCbhTr+nB9IbJr/n sZK/ABSPijqxLkr4B2oyGZqAC7nrYdMVJUmnoffwsNPbSKemYYV8nsjpnGCqWgJ16MSm l1dxo9PdBRwr+yav9jNeXdgp8Xh7t2Fqy/tRfMDbnu1NEejN1wk3A5N9g1YLi3nnTTPj goJQ== 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:mail-followup-to:message-id:subject:cc:to:from:date; bh=l7necyvKfcjLE7NmQzCf4V7mw6ZJgHsTvw4SHSbKHm4=; b=jcUzMkux0Mdvwy474/h5ArFgk6MzhA34WsuRpolzQVizqN5jsKOwLIpV/AV7YTQKow w6XCYt2jVIY8U5lbon1cFzpgz8fuexbfD8T3TKTr9Dt2wrscblj1pDQ3SQ8nT8Bacg0f JEckr3j8XJCy3OPa2T9UZOa7oBwPp42y+KkcJGoeiOK58hBkWA0rMJyRU2PMmE//x1xG xwItZwkpsaqycakts+1+7Tldf0fQ3o3s+xmmIBlZVtt1TiQ2wcHE4LcfXsibO2lc6xcI 18hEyECJ23uz0Siy100ucPyy3XJBkoEyJ9hrcxJPw2RbIuA88NQmBednj9J8ijW/NCnX KGpw== 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 x21si8188752jan.73.2021.10.29.12.53.06; Fri, 29 Oct 2021 12:53:18 -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 S230397AbhJ2Tyk (ORCPT + 99 others); Fri, 29 Oct 2021 15:54:40 -0400 Received: from sauhun.de ([88.99.104.3]:37796 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230467AbhJ2Tyj (ORCPT ); Fri, 29 Oct 2021 15:54:39 -0400 Received: from localhost (p5de04e1e.dip0.t-ipconnect.de [93.224.78.30]) by pokefinder.org (Postfix) with ESMTPSA id D7A252C00AC; Fri, 29 Oct 2021 21:52:07 +0200 (CEST) Date: Fri, 29 Oct 2021 21:52:07 +0200 From: Wolfram Sang To: Dmitry Osipenko Cc: Thierry Reding , Jonathan Hunter , Laxman Dewangan , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] i2c: tegra: Ensure that device is suspended before driver is removed Message-ID: Mail-Followup-To: Wolfram Sang , Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Laxman Dewangan , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20211019232919.21916-1-digetx@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nQtl7vGokyqWsQ1f" Content-Disposition: inline In-Reply-To: <20211019232919.21916-1-digetx@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --nQtl7vGokyqWsQ1f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Oct 20, 2021 at 02:29:19AM +0300, Dmitry Osipenko wrote: > Tegra I2C device isn't guaranteed to be suspended after removal of > the driver since driver uses pm_runtime_put() that is asynchronous and > pm_runtime_disable() cancels pending power-change requests. This means > that potentially refcount of the clocks may become unbalanced after > removal of the driver. This a very minor problem which unlikely to > happen in practice and won't cause any visible problems, nevertheless > let's replace pm_runtime_disable() with pm_runtime_force_suspend() and > use pm_runtime_put_sync() which disables RPM of the device and puts it > into suspend before driver is removed. >=20 > Signed-off-by: Dmitry Osipenko Applied to for-next, thanks! --nQtl7vGokyqWsQ1f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEOZGx6rniZ1Gk92RdFA3kzBSgKbYFAmF8UOcACgkQFA3kzBSg KbavlQ/+L5xrHBpyis/WSbwIgJKdE8IknJFBlnJ6lqXQcCINWezSQKRkJUzx5rt3 HEA6VUXY4oSVYjfKhqZUGSqxWM2M3dTHl+uCgzR90jcLo1+MAdNwoweQlfv3aOxV kkrp6taeHXlj/b8ilX7QrvFWno9iXYnbFH3ZpBdr6JDfZvZw9aZ+nE+/obaubalk orwEBOTl053OkBNlAuMseMM+SzSJli5ZYSC5cnbH08/07N5OGtE6Yf3fi45jMicu oXN/lzX/2XOulACsdX/ooK+6FVstSSZ1ZISI9VbDB6jaYQlZ//nLk4TBXnmWwpq1 z9+hBm6s1hKEltdSTcyUE4TOHYgSmFtbTq2Jl2oQEbc6aIwf+utBaXY4p+pISVUU 60zbMYYS+hhE0zOI0DurrsH/iBuguSXm0wF/GRGGTTkZTMH5Q/F/hXdenRmqJ3h2 qLgpFGXt9SOmdF9DI5397NLvq1eYl/qBHwZ2t1Vhtfse3VN/5f6ErAZCw/HbbaER GzznfQX+7Z/yCW98QtWUi662HisUtavcFLvLdkT/NwHMhF2QleE9Zb7gfayNET4S Zk4K34lV/4+rNgexU0gWWHAg2LWh5tTrS8UiTma6x40Xg9Jg8gu1QOZ6z8i03d/S cAQX6zqMrqlm3u05qt0SMq7g2EyNmZ+XZFp9j7F2g5h76qROvVQ= =782P -----END PGP SIGNATURE----- --nQtl7vGokyqWsQ1f--