Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3157478pxy; Sun, 25 Apr 2021 15:55:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUM11C4sJuOL8SCRzh0aW33tEcGuawtgPjM2SaVQgNEjDb2aWUlKJdscEXNB4ZV400Bvso X-Received: by 2002:a17:906:32d1:: with SMTP id k17mr15482066ejk.94.1619391347334; Sun, 25 Apr 2021 15:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619391347; cv=none; d=google.com; s=arc-20160816; b=JXE1McS9Zo7vBSpF93bbCe+/O8Ns+0cIRBoASkuURe8sJcJkZJ7sEZ5gtQQd8odBq9 EcgL9qzeWRf60k1ckBRUQiQbED7aYHffdMaobANA7mh0utY8STiSFtQNCrL6d2x0z9Nv O3JlJ0ceqvyboNezboDL9UHpFqGdZLQ7uSj5ZsvsNa7OqMLVTxex1mgBdTrnpjZhIVA6 xXqcy02qJw/3KdDeyMzzPXD3EMvTg6BH32u2zamj5GOUek7lD6VAHTNLGnmiFiPXsvPX mnZHCB2NW27vwNcBOhBUA4J9voSvv+wWfHBcF70JJWiSj+hPojcDsWLZdOXTuJtiG+7h /ISQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7qVZp2QTou5Kg8Nghz26SdzhdzXMj8gcYrjeTOzwiFs=; b=TCCN6+OyPXeXDdJux5dP2dZBhIhI6VMWOXTCvGvnwGmB95/MxlKQ6/EHJDhYRkxk4m i4HhuZrc3k6H63FFY3IhL+8mJ+6pOFGwBFMqKzC3m+fw4ijJkjsQ1eHVnoDOHqP6rE6D ttcX5S01Ti+ifaKVksuO7PYkZgrs75nW6QGdxUAWztihD8DMgo7QeghZ8/RpDgYSWufO cD0YuYM05qoleCU06YDK9MeesCMoXtVkS+OBGAI29Wa/8hMXRf4CdH7U2qbhOrRfrvcT VphrxpjhXhBi6i7950CjjxzRh/taObEIoR9Fqc3q+QH983Kh2A7+h/PIg3WLTZNwrU0t p+4Q== 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 eb13si12542861edb.223.2021.04.25.15.55.23; Sun, 25 Apr 2021 15:55:47 -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 S231403AbhDYWy1 (ORCPT + 99 others); Sun, 25 Apr 2021 18:54:27 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:59284 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231247AbhDYWy1 (ORCPT ); Sun, 25 Apr 2021 18:54:27 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 336471C0B77; Mon, 26 Apr 2021 00:53:46 +0200 (CEST) Date: Mon, 26 Apr 2021 00:53:45 +0200 From: Pavel Machek To: "Rafael J. Wysocki" Cc: Krzysztof Kozlowski , "Rafael J. Wysocki" , Len Brown , Linux PM , Linux Kernel Mailing List , Marek Szyprowski Subject: Re: [PATCH] PM: runtime: document common mistake with pm_runtime_get_sync() Message-ID: <20210425225345.GN10996@amd> References: <20210422164606.68231-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ggdAeHltlv4tpqCr" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ggdAeHltlv4tpqCr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > However, if the code wants to check the return value, that is: >=20 > error =3D pm_runtime_resume_and_get(dev); > if (error) > return error; Well, we mostly expect people to check error values, and the "continue on error" case seems to be pretty unusual and mostly result of oversight. Quite large percentage of -stable patches is fixes after people got confused with unusual interface... Best regards, Pavel --=20 http://www.livejournal.com/~pavelmachek --ggdAeHltlv4tpqCr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmCF8vgACgkQMOfwapXb+vJtVgCfUaLgQYF4oSk4oE+mS8CTACET a1UAoIvVgBFy1hFvUbJVrwoofZ1NEA0D =xDKw -----END PGP SIGNATURE----- --ggdAeHltlv4tpqCr--