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=-2.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_PASS,T_DKIMWL_WL_HIGH,USER_AGENT_MUTT autolearn=ham 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 487FBC5CFE7 for ; Wed, 11 Jul 2018 12:18:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F1E3020C51 for ; Wed, 11 Jul 2018 12:18:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="2RtrHlIQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F1E3020C51 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732993AbeGKMWa (ORCPT ); Wed, 11 Jul 2018 08:22:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:58954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbeGKMWa (ORCPT ); Wed, 11 Jul 2018 08:22:30 -0400 Received: from localhost (unknown [106.200.243.225]) (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 AFEDD2084A; Wed, 11 Jul 2018 12:18:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531311506; bh=FDUAlOIMOa2dsSB42iRjaXYLF9vMgJtEJfqna1/YIA4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=2RtrHlIQvTWeHfqczJ1ZPjrfRJCoMtbNcmexRo3kkJ9zTiQXP/Scfz02XYhSrbxZt dKThm4pMadj8GEeZL3RWxKa+mEwF4ydaIDu4BfECzClbCsOKV5krFdx+JTPNFDmkOY RFBC0fd9nnoxi+BypFI41ZhQ14t4GRzQ340VL8V0= Date: Wed, 11 Jul 2018 17:48:18 +0530 From: Vinod To: Paul Cercueil Cc: Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , James Hogan , Zubair Lutfullah Kakakhel , Mathieu Malaterre , Daniel Silsby , dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org Subject: Re: [PATCH 06/14] dmaengine: dma-jz4780: Add support for the JZ4725B SoC Message-ID: <20180711121818.GT3219@vkoul-mobl> References: <20180703123214.23090-1-paul@crapouillou.net> <20180703123214.23090-7-paul@crapouillou.net> <20180709171458.GL22377@vkoul-mobl> <1531237502.17118.3@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1531237502.17118.3@crapouillou.net> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10-07-18, 17:45, Paul Cercueil wrote: > > > Le lun. 9 juil. 2018 à 19:14, Vinod a écrit : > > On 03-07-18, 14:32, Paul Cercueil wrote: > > > The JZ4725B has one DMA core starring six DMA channels. > > > As for the JZ4770, each DMA channel's clock can be enabled with > > > a register write, the difference here being that once started, it > > > is not possible to turn it off. > > > > ok so disable for this, right.. > > > > > @@ -204,6 +205,8 @@ static inline void > > > jz4780_dma_chan_enable(struct jz4780_dma_dev *jzdma, > > > { > > > if (jzdma->version == ID_JZ4770) > > > jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DCKES, BIT(chn)); > > > + else if (jzdma->version == ID_JZ4725B) > > > + jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DCKE, BIT(chn)); > > > > but you are writing to a different register here.. > > Yes. SoCs >= JZ4770 have the DCKE read-only register, and DCKES/DCKEC to > set/clear bits in DCKE. > On JZ4725B, DCKE is read/write, but the zeros written are ignored (at least > that's what the > documentation says). and that was not documented in the log... so i though it maybe a typo. -- ~Vinod