Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp740082ybg; Wed, 3 Jun 2020 12:19:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxmYNBH+gxLgp8WlF4rvAOcNOf4mMKeZQZ3s8UoR704/HorAv0sPkx1lJvPBDqI/4Ewxcfw X-Received: by 2002:a17:906:ce2f:: with SMTP id sd15mr685914ejb.445.1591211974718; Wed, 03 Jun 2020 12:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591211974; cv=none; d=google.com; s=arc-20160816; b=tSFnL7MiDb6zoTnkJ+o054KBj6vjrbuK4Y90TPTA2ojojzxxueppPVJ4WGgLkAMT4F a6Ru2CAiQw0ubP89Xu73NKdy/FEulutXxBXSW4qQRZJW5kmqL5C+Ehj9x4b3muX/hnKB zyvkfNrapXVvfE+oP1+BXmXpZsb/iNjJcE5/2YaR2im+JfEJV+LFpaY9UCiOsRud5QYQ txY3dFN8VjQr9dksCHrzriAwES/TtVxwo1xPu48tGpGt4kUFAunF97fY0P95O18i+cY2 r5e45bc3jRD4JE4ie+kQ6VvlMStw+xPNaA0i7/o0CQPUzxNVDtKRCs0LUFA+Cggqc7o1 KE8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=6d7NwLsGT9XBwpif8ssbO5j7lS7Uj+B9cyPHxQfDOJc=; b=WwK1TzLNzy6HnF4nGIR3bvUC4M51lYRs3y+WGgK9eBSzYirskmTA8XMCCodtdtcuUG Bv/WDobG88z6hnZZVZzhHaWl6C2IWeX4DOy3ZLO+Tl1MQn3jlgqe3q7TKyNnrzU+ZDlS jEOjVcVNWO+a1gh6wQ4jzh8xHYEZmtjBeZ0QakKTOpxA/on0iWTkwUkbLvcp7qvfoKrG 3J74cQ48VjhEEFvWJ3SAp1K44o5u4B14DovJnNMf9VXDJ+HMLmtewtTfksQqm8+emH1R N7Sbvre2uNTBisleB5QjUuAiUfpJJ+WRSSTniMmenia3UU2qy0Uei75RxhG4IWeKn5ub peSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ADCpHKoU; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y14si257009edu.550.2020.06.03.12.19.11; Wed, 03 Jun 2020 12:19:34 -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=@gmail.com header.s=20161025 header.b=ADCpHKoU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726032AbgFCTRV (ORCPT + 99 others); Wed, 3 Jun 2020 15:17:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbgFCTRU (ORCPT ); Wed, 3 Jun 2020 15:17:20 -0400 Received: from mail-io1-xd41.google.com (mail-io1-xd41.google.com [IPv6:2607:f8b0:4864:20::d41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B1AEC08C5C0; Wed, 3 Jun 2020 12:17:20 -0700 (PDT) Received: by mail-io1-xd41.google.com with SMTP id s18so3602292ioe.2; Wed, 03 Jun 2020 12:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=6d7NwLsGT9XBwpif8ssbO5j7lS7Uj+B9cyPHxQfDOJc=; b=ADCpHKoU8KPg9vkQLXJpeR2WvdNX3yale3lmsNmB/MlAT85XGugfW6Lj0JQIuZBniy pQhMCZLP6wlhfgTC5gyglucH2XVir347K8atgenZhITjMWwV9H9/FwzDEgYd/1YM9O3e A/5oqkqKVDG+XvOnHRH4owoIxfCtewEsQ7GGcKqrkVYiBhThb0Q/wzmL+Xhr/MVq2CNd /lmNCqfogZR2eRo2oDHe2UGsyCbvTIH13ZQYfXGfDPdPnBu6L4wBqGJFfVIv7dXtGBEG 8mbWK69KdDvbTbmX5/BgzPHcEdTQaYVxjxlVv+Id4Dzo3tsflxDTgn6MnBaoVQEfc4M+ xvhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6d7NwLsGT9XBwpif8ssbO5j7lS7Uj+B9cyPHxQfDOJc=; b=qpQ3viO/UlUZ/h620nVTWxGpZ7Q0w2kvkx7Tg2anAxBnG5MLcpPKE2bbcTv676iZlo 7++xLy/xkt5bDVDmOYtZ7ZAkz1Np9WOajvb1niWwLelMuhpZj1ONSB/ZhYGGndbabZL8 1SQvG/vckETrsOWxRpfQkOsVGrM932IvHvULek/Kz8LgaAnvP4h/v/IB1gZkFJe+7pBn C1zS18Qu6tYRAqOOKr7K6gV+m9EhpwrKRjFdKhNFF/FYKsUcM4UZCouQKiZV96AFgoog ToR6+mMuJgkLBKeWMOqoUqMpT0mdhZ01A3kOe1U35GAj7Dz0HJeT+hxQRymMOzfVUIzK Ed8g== X-Gm-Message-State: AOAM532RmFYiZFyL4T3jK8pqg0VptaOTul0luYfOUvNnEaToc29p6brT QvylMvNkVFxbYrucrZH8Gko/wOJqRr1QhhyUfHQ= X-Received: by 2002:a02:dc8:: with SMTP id 191mr1279079jax.95.1591211839673; Wed, 03 Jun 2020 12:17:19 -0700 (PDT) MIME-Version: 1.0 References: <873bfb31-52d8-7c9b-5480-4a94dc945307@web.de> In-Reply-To: <873bfb31-52d8-7c9b-5480-4a94dc945307@web.de> From: Navid Emamdoost Date: Wed, 3 Jun 2020 14:17:08 -0500 Message-ID: Subject: Re: [PATCH] dmaengine: stm32-mdma: call pm_runtime_put if pm_runtime_get_sync fails To: Markus Elfring Cc: 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 , Vinod Koul , Maxime Coquelin , LKML , kernel-janitors@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > The PM runtime reference counter is generally incremented by a call of > the function =E2=80=9Cpm_runtime_get_sync=E2=80=9D. > Thus call the function =E2=80=9Cpm_runtime_put=E2=80=9D also in two er= ror cases > to keep the reference counting consistent. > > > Would you like to add the tag =E2=80=9CFixes=E2=80=9D to the commit messa= ge? > > Regards, > Markus --=20 Navid.