Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp353721pxy; Thu, 22 Apr 2021 03:47:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVZhUB7gi9iLgptE0eb3R76eWbs0L5ZV0WEfdkhaeD06a6sSPy8Qtx4Do2l+7KV1NnmDMl X-Received: by 2002:a65:5203:: with SMTP id o3mr2861447pgp.305.1619088423563; Thu, 22 Apr 2021 03:47:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619088423; cv=none; d=google.com; s=arc-20160816; b=NKlvgRpLXNhDhz6uoypVvHdYFHqnefVhgffSVpJMUySEuyxWoHUUz3fUbFSV96cNsR X3X0zrGqvj9kQ6F7GRRrGS6x/SXLryK0l2Q5QMD8hcVh4vupfUVKTuO/kL4c4O+JuZmt 9t5TD7ChqZw5/monjMdkZ5C6jz7xqSdGGC1MMnAZcpqjzzhmWgcOpw7jSebPAr/dz0cz Zo/ohLv2fdXtMbFtNZtfKUbkeVUoSqRrgPJELUSC/Toy+AwFci+nRuY9Xn1psnR7yMYS KmEqqaMI1u5JvqivdAUGMHl5hKa31Bf6BSJRSvpvVCE6t2MIyZ+/QM56hmH27fzgknQV fQIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=ChgsWVHouphJpIEvBcUP4TDV1Lb1Y7MqOzirYiGZuls=; b=S6+zwVLJdfcFfnRNO3OpnVsjYmpBi4lHDIGn6DmJLLx7EAg6VVvj8RAyPEgfXdBFcZ i9f4SqUd5TlTxRpJR1giQV1x7jbuBopkswswoM13IbmgzbqE38NY/or0HzQ29oVHtswc Ug1h+D2fgLbN9hqltRiK2++uqmWEoX4+Oe4u25kYwgfeEB03qliSbIuSNAU1syewiUbu 2oRPjVXdkkn52YVCyLlZvbQxVpxoWA7n67pb+t2riihiQQWYCfIUMy+MacpKMWUZ6icY vjJtpI1GAlDnZcgu1whXFstzfYf5Cga7BBGexqXR3XLOxXJ2Oyr2tEfTPAm9zDoUMBov FEEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q16si2771893pgg.312.2021.04.22.03.46.50; Thu, 22 Apr 2021 03:47:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235796AbhDVKrW (ORCPT + 99 others); Thu, 22 Apr 2021 06:47:22 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:59782 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235455AbhDVKrW (ORCPT ); Thu, 22 Apr 2021 06:47:22 -0400 Received: from mail-wr1-f72.google.com ([209.85.221.72]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lZWr9-00068R-3r for linux-crypto@vger.kernel.org; Thu, 22 Apr 2021 10:46:47 +0000 Received: by mail-wr1-f72.google.com with SMTP id t18-20020adfdc120000b02900ffe4432d8bso13662416wri.6 for ; Thu, 22 Apr 2021 03:46:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ChgsWVHouphJpIEvBcUP4TDV1Lb1Y7MqOzirYiGZuls=; b=DBezJGxR4Alx1Q9z7XDieZk7RWm19q0dSLbbaKvoCh01USJEFboniTsKRe2X9Ew1kA YT/7oyMlcn/+w+64a6aRSB9R7n3k3hfXeTbhWlySepnTijq2WHoaoT/IZK2HXCpqnhLx ZPtcfDnye0Jw0dxsO5RALGyyAbmogkKGn6CqhVCrzg/Vfpfi8g5op0mzLIQ/B44ZIrU4 0QDNcoVXKVkt4ZEqAbLaRXbod7NZ8S07iuqTyN85TRG6/Rg1fHuGqH2oRg514A7LpCgw NguDoN6fiyVLOBQwyefnYzOaXQTFozqI5XFTQ4w12XjLJKwzxP2c5SPS0+rfbPKko5+t AdAw== X-Gm-Message-State: AOAM532Ds2NBBHbunp9q5A3hGrj4jR5W2MRtnGXZXYRnQBuaWEy2ATsd l4v1WI/QnB92obcn0JzAQBz8VhFDw+6A1U5RvL5K5Bj6vZh1E0nF+tXaaRXKGyUDJ884pUbPsLm e982ZMkqxiyo6EWCjpRHFlNZDEyIgqx5MI+W6EK6BCA== X-Received: by 2002:a7b:c454:: with SMTP id l20mr14904423wmi.65.1619088406323; Thu, 22 Apr 2021 03:46:46 -0700 (PDT) X-Received: by 2002:a7b:c454:: with SMTP id l20mr14904416wmi.65.1619088406202; Thu, 22 Apr 2021 03:46:46 -0700 (PDT) Received: from [192.168.1.115] (xdsl-188-155-180-75.adslplus.ch. [188.155.180.75]) by smtp.gmail.com with ESMTPSA id h17sm2936241wru.67.2021.04.22.03.46.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Apr 2021 03:46:44 -0700 (PDT) Subject: Re: [PATCH v2] hwrng: exynos - Fix runtime PM imbalance on error To: =?UTF-8?Q?=c5=81ukasz_Stelmach?= , Matt Mackall , Herbert Xu , linux-samsung-soc@vger.kernel.org, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?Q?Bart=c5=82omiej_=c5=bbolnierkiewicz?= , Marek Szyprowski References: <20210422104141.17668-1-l.stelmach@samsung.com> From: Krzysztof Kozlowski Message-ID: Date: Thu, 22 Apr 2021 12:46:42 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: <20210422104141.17668-1-l.stelmach@samsung.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 22/04/2021 12:41, Ɓukasz Stelmach wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > the call returns an error code. Thus a pairing decrement is needed > on the error handling path to keep the counter balanced. It's exactly the same as Dinghao's patch: https://lore.kernel.org/linux-samsung-soc/20200522011659.26727-1-dinghao.liu@zju.edu.cn/ which you reviewed. It has even the same commit msg (although it's difficult to be creative here). I think it's better to resend his patch instead. Best regards, Krzysztof