From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2816FC10F26 for ; Mon, 23 Mar 2020 06:07:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EF2FD206C3 for ; Mon, 23 Mar 2020 06:07:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584943639; bh=ibPYCWGXC+3W4pwXBMCDZLajjZQWIs4y9VSQ1PY2kkE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=VNu1Z4YMJX9Q/0yVspwPMM2c9h1QmL+rHUt87kfzG1Kkr60zbHDrgeSdGfirWCVDW A88JC8c/Z1cfyAH2h80KyjaBvXDFqtImYWXO43/y8kMrVK9whBDRjU8QyYl+1KWHdX 9dbDaOWIeVGD9BORtnv3X/Y+AzZh3OR6geuXjkgo= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727188AbgCWGHS (ORCPT ); Mon, 23 Mar 2020 02:07:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:44026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726142AbgCWGHS (ORCPT ); Mon, 23 Mar 2020 02:07:18 -0400 Received: from localhost (unknown [171.76.96.96]) (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 0DD4C206C3; Mon, 23 Mar 2020 06:07:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1584943637; bh=ibPYCWGXC+3W4pwXBMCDZLajjZQWIs4y9VSQ1PY2kkE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T+AKXtTiEx2F4fvV576lTkypnagA0PkvNzMXSxvZCfsQ+YIHsqHbXosnbB9ZvN8mv F3NhqdKp08F1Skw1MDp4NuKvE1w/xHqo5uPtiVFbcDk/CGoTaa649qlUQdGtAiFLc6 oPfZ4DmvrU+yToy7LBmg3A4VuQ+ng8ms2q+SF7Jg= Date: Mon, 23 Mar 2020 11:37:13 +0530 From: Vinod Koul To: Baolin Wang Cc: dan.j.williams@intel.com, orsonzhai@gmail.com, zhang.lyra@gmail.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] dmaengine: sprd: Set request pending flag when DMA controller is active Message-ID: <20200323060713.GC72691@vkoul-mobl> References: <02adbe4364ec436ec2c5bc8fd2386bab98edd884.1584019223.git.baolin.wang7@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <02adbe4364ec436ec2c5bc8fd2386bab98edd884.1584019223.git.baolin.wang7@gmail.com> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org On 12-03-20, 21:26, Baolin Wang wrote: > From: Zhenfang Wang > > On new Spreadtrum platforms, when the CPU enters idle, it will close > the DMA controllers' clock to save power if the DMA controller is not > busy. Moreover the DMA controller's busy signal depends on the DMA > enable flag and the request pending flag. > > When DMA controller starts to transfer data, which means we already > set the DMA enable flag, but now we should also set the request pending > flag, in case the DMA clock will be closed accidentally if the CPU > can not detect the DMA controller's busy signal. Applied, thanks -- ~Vinod