Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3103416pxb; Mon, 18 Apr 2022 16:03:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDVQYH6VxVV7qdwHhNbAVQ/PgAD2mSfe7CsvCbiZ6yUNgq9ya8JuA+iETHAap8I+/4ELpt X-Received: by 2002:a63:580e:0:b0:39d:b04e:3b2 with SMTP id m14-20020a63580e000000b0039db04e03b2mr11877102pgb.249.1650322989358; Mon, 18 Apr 2022 16:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650322989; cv=none; d=google.com; s=arc-20160816; b=V3D323ykKuC42/X/PGKj74vrZltslu9joqNltpEEBhObV/zeNaaoQ8uOJoOAMYIXOb jaBFTGgm3SQbjE55N4p4OsIjcEJEV6HGUP4B+xLLYjMYjpmC5etvNsIhH3b/e6xsJpbQ 99txiL39IM+vVu1expo1p4dNCwaXmXxYZjM5Er9QQPk/7gmnW20MHhjcu2ji3Z3Hp4W1 7jCZnRbF6pIv66WDbkY9kd+Pp8sDWRxeL9cpwj+uhDD3Z4I0Pld+zPdye86MjrGjNSJv DWlSaBXsZR2ZewcN5jj7/wS0LFHJ39d7wve0OvUu6quAgjkG3CR2BdSIjjEwVFAmu+9Q 5mbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=3WtkLXzR8btDWOW+nd0MzqY32Q1oAipNzNQPnHQTJ4E=; b=nWwnNLWgFluiLXBMLcr4VP+L6wGXmBwS3EeKYCJBYfhyU7+mqiXIB38aj8KBIied1m ttO5UFm7LhO5kutgTnbRYuBbraYWPc30/MJF+SYyOO0J0Cvi3qfrzL77ULjeBGJwikUG og+Cm7Xq4AGsSVnMFxK1Z6/R6YybLEngenYuxjuk0lE0ztg94eBcVgwZ94h/Gf2BD/nJ uqbQFxLDBxAxDpgzHnMD6fBBIFlfKGVuRXeu2lhCxkPDS9FTTspBby5v/HJ8Chzo/q1W EqXubH7jSeEopaagFgE3U696HnOxoL33cxfEJTvJMDcJ/fqOksNboLMXZsq7z5ltLkpW 4pog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J5IQdmmP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p14-20020a1709028a8e00b00153b2d1650dsi9567253plo.277.2022.04.18.16.02.49; Mon, 18 Apr 2022 16:03:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=J5IQdmmP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245650AbiDRODw (ORCPT + 99 others); Mon, 18 Apr 2022 10:03:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244746AbiDRNp1 (ORCPT ); Mon, 18 Apr 2022 09:45:27 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1F2F326D0; Mon, 18 Apr 2022 06:00:20 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 332856097A; Mon, 18 Apr 2022 13:00:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 429CFC385A1; Mon, 18 Apr 2022 13:00:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286819; bh=6qmuWssJE8BGwTQm90LV/eDA7PH3hvnsKvgw2QngIXw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=J5IQdmmPPc0nl6bhA/IHIi7h/q1XE7orO61bUQF2TGhwaI9rXOteOFvzdA8Vhlpfp dhObSKR39iFxVnxysTRvJvcQYi9G+/SusX20IFwhHxK/fi2ZdDxFRL+yPVLMBD5ocG F9AE9SnIptA6lAxv1WLDAyqNjNXVdE67bMZ5IQ7o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vinod Koul Subject: [PATCH 4.14 253/284] dmaengine: Revert "dmaengine: shdma: Fix runtime PM imbalance on error" Date: Mon, 18 Apr 2022 14:13:54 +0200 Message-Id: <20220418121219.505902220@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vinod Koul commit d143f939a95696d38ff800ada14402fa50ebbd6c upstream. This reverts commit 455896c53d5b ("dmaengine: shdma: Fix runtime PM imbalance on error") as the patch wrongly reduced the count on error and did not bail out. So drop the count by reverting the patch . Signed-off-by: Vinod Koul Signed-off-by: Greg Kroah-Hartman --- drivers/dma/sh/shdma-base.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/drivers/dma/sh/shdma-base.c +++ b/drivers/dma/sh/shdma-base.c @@ -118,10 +118,8 @@ static dma_cookie_t shdma_tx_submit(stru ret = pm_runtime_get(schan->dev); spin_unlock_irq(&schan->chan_lock); - if (ret < 0) { + if (ret < 0) dev_err(schan->dev, "%s(): GET = %d\n", __func__, ret); - pm_runtime_put(schan->dev); - } pm_runtime_barrier(schan->dev);