Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp513573ybt; Wed, 17 Jun 2020 07:04:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxgmtwQe+kZ36pWthZBl5V5Uy23rqT/YUleer2PJyk6BVQw2RnwbOd9jcyOGQJLXzjnEVt5 X-Received: by 2002:a17:906:3da:: with SMTP id c26mr7362829eja.451.1592402669730; Wed, 17 Jun 2020 07:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592402669; cv=none; d=google.com; s=arc-20160816; b=jTj3A9eN8tBPoddeELvxhX+VE1Oon/75ot8pD7E0YNZMHgnBIReyy+oSyWcjM0Fp0f B4CYg/peNjAW6fUVik+Qq4X/UeWjXxBjbNnVonakyr8Rn7kuAIiDAF4jGmae7z537r/n zv/Gge8/biK2GqSeX/dLd2qd/UGUZn3EQhsjsbNbyUBuEwcumXRR5DALZt3BoEvMHhbO gt07Cj8Hwem7iXedEEXYTOad9RS22RD67nXrGV/g1z9zDuNVnwrV2sLoXpqI4mBE2rEq 8Ro5Q2TA8ADVr85t4ikepamDPV5dbPV0XcKqc7VrXQTCZBpkqzjFkn+62N9gNpS6roXO 3njg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hZRPeSvI/cQyNt+VqqPN5JVy0EpHSBbSz9POW4EAIBM=; b=gSJSQ+DJC5mzJx6cNPlXZq3pvPLfB9V7O7266gPJSdn9HkJ0CAMdIZYdkgAwLI9rFE RXyjQMsDwcYVOTZ5rG6YcnheekfiKs3Ib0wF1C1GB8URpVeleCw8F8gCJ3zr52tQfApW cuOS3NAnV90EtefQDlfnvkZ4HJ9xAhYTiTC26ZywX+35DQrtZLUyemETkn6IBGRtLlCL kxkJZSffKAHKSFTz3YTuX6xhdqrFYdTcNh9oz/XO8j1Sqwa9gc6sh6QJsBx03F0ZVAzM BOEoL7IDoIwHui7ZPyJhFJEWDuaHt9guBe4Ft9aFo+6r+nEd0Mt9VELCplz4zlHV4PLH 4+VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LMOFazE1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si30515eda.569.2020.06.17.07.04.05; Wed, 17 Jun 2020 07:04:29 -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; dkim=pass header.i=@kernel.org header.s=default header.b=LMOFazE1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726940AbgFQN7q (ORCPT + 99 others); Wed, 17 Jun 2020 09:59:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:49944 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726920AbgFQN7p (ORCPT ); Wed, 17 Jun 2020 09:59:45 -0400 Received: from localhost (unknown [171.61.66.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E1A4E20776; Wed, 17 Jun 2020 13:59:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592402384; bh=0Lz6TFQhfGp4bkoSVLTJgIT/broxuaK6TXcJSsj1HDM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LMOFazE11y2j35ElYwUhFG1c7RveWXp6JEzTsPUId8PCinClymu6lifqi+kjEA+7N ROrH8zIGYsAXahTZqkbHkC2tTE3RRK/NU6u4KzYYp8wNMheVO4SJyvikQNeLSb7Czv ZpkSIhit1bCec9vwK1O92LKaEcWlRVt/o5J2bQl0= Date: Wed, 17 Jun 2020 19:29:40 +0530 From: Vinod Koul To: Navid Emamdoost Cc: Markus Elfring , dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Alexandre Torgue , Dan Williams , Navid Emamdoost , Kangjie Lu , Stephen McCamant , Qiushi Wu , Maxime Coquelin , LKML , kernel-janitors@vger.kernel.org Subject: Re: [PATCH] dmaengine: stm32-mdma: call pm_runtime_put if pm_runtime_get_sync fails Message-ID: <20200617135940.GU2324254@vkoul-mobl> References: <873bfb31-52d8-7c9b-5480-4a94dc945307@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03-06-20, 14:17, Navid Emamdoost wrote: > On Wed, Jun 3, 2020 at 1:52 PM Markus Elfring wrote: > > > > > Calling pm_runtime_get_sync increments the counter even in case of > > > failure, causing incorrect ref count. Call pm_runtime_put if > > > pm_runtime_get_sync fails. > > > > Is it appropriate to copy a sentence from the change description > > into the patch subject? > > > > How do you think about a wording variant like the following? > Please stop proposing rewording on my patches! > > I will consider updating my patches only if a maintainer asks for it. Yeah ignore these :) no one takes this 'bot' seriously, it is annoying yes :( > > > > The PM runtime reference counter is generally incremented by a call of > > the function “pm_runtime_get_sync”. > > Thus call the function “pm_runtime_put” also in two error cases > > to keep the reference counting consistent. > > > > > > Would you like to add the tag “Fixes” to the commit message? > > > > Regards, > > Markus > > > > -- > Navid. -- ~Vinod