Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1842511imm; Tue, 10 Jul 2018 08:46:48 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdzZHfE4QgKCuPYXOdLZV0pTE6lHabg9q5v7U4kBnaN2IkxCyaT68ZM5amDmz0rTDx5bqD5 X-Received: by 2002:a17:902:b08a:: with SMTP id p10-v6mr25837476plr.0.1531237608301; Tue, 10 Jul 2018 08:46:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531237608; cv=none; d=google.com; s=arc-20160816; b=Hrc2ebPyADIOsLCQ72/Zs+zwTWne1JdMNxZSLoZvtdoJmAlEKQl+Pgc/YnsdDY/qP2 oJpyUd5oVur/voi3fp1FAEwwcVB8FvZJvzSyZ6KjJ2Zfx9HYsUk+BVygpYeo/VSZzzCq D1WRu0Cvb9ex4wclF5CXq2kaHrVpNAVainsqsln60Dh94BA7NqfFGAT94hksp+lBuecz y27wUt+vpfdtjdIxw3mUzXwI+QW70Te49fhE/mq20YXiPfiaUjHz1YmSHyXtB7pzaifQ qJGtRLEusOHLbOgKEyRlMsx19M3ChogfPAj6ivmtY9bYxN3Egjfj0/NW9hgek1LA2gIZ 9KPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:content-transfer-encoding :mime-version:references:in-reply-to:message-id:cc:to:subject:from :date:arc-authentication-results; bh=WjTJmSBBrurN9JyF9IyWDMyPaD+mqwPGq8mYopQDoG8=; b=thFFEI+OK6GX9W4I38SUJIfVEQ7CnOWqXa+nSRVjVF9YfGKkbnc4sFgg03uWjt2/4W bJ/lvhRSyDEeqReQitLDSfYdHsbPhrzQ847wWKilJF46w7YMknqoentT6lQZM16nyj1S 7JQkrF2kNobd9liLPMgUoRVxTxlKj7aaRexPaxXyP+7Q177CHYKdcQBmTyFi9kOMg9qn YiacEpcUDvRDKSkSCfXsnni6ChWzJSJ7NbjuRs8TPQIGAbWAjH5pdsK2zXjN09Wj6tet HQiT5kSVa7Jcjw0pOlvFcWZZCKZ3gbNTkqCk/t53Si85GXfnbxCISLXr+BRsA0LFqpXq hl5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=DqSrVO4z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y40-v6si17039101pla.470.2018.07.10.08.46.32; Tue, 10 Jul 2018 08:46:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=DqSrVO4z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934218AbeGJPpK (ORCPT + 99 others); Tue, 10 Jul 2018 11:45:10 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:39258 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933501AbeGJPpJ (ORCPT ); Tue, 10 Jul 2018 11:45:09 -0400 Date: Tue, 10 Jul 2018 17:45:02 +0200 From: Paul Cercueil Subject: Re: [PATCH 06/14] dmaengine: dma-jz4780: Add support for the JZ4725B SoC To: Vinod 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 Message-Id: <1531237502.17118.3@crapouillou.net> In-Reply-To: <20180709171458.GL22377@vkoul-mobl> References: <20180703123214.23090-1-paul@crapouillou.net> <20180703123214.23090-7-paul@crapouillou.net> <20180709171458.GL22377@vkoul-mobl> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1531237507; bh=WjTJmSBBrurN9JyF9IyWDMyPaD+mqwPGq8mYopQDoG8=; h=Date:From:Subject:To:Cc:Message-Id:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DqSrVO4z5BhlGLAOU7Z7L7XLCxV2kHd9ITCUDKWOvlkRE+7O0nP2/683PCeGYv3cWc3IJg75AogCbLYK/lEnrvC2CDpXNh/7qnaTqTTlxitVmskMLN6u8CHblLLIT36BaR2eRDLMn7z9CBmhWFHhg82K+V0WC6boUZNfTN4v+K0= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le lun. 9 juil. 2018 =E0 19:14, Vinod a =E9crit : > 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. >=20 > ok so disable for this, right.. >=20 >> @@ -204,6 +205,8 @@ static inline void=20 >> jz4780_dma_chan_enable(struct jz4780_dma_dev *jzdma, >> { >> if (jzdma->version =3D=3D ID_JZ4770) >> jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DCKES, BIT(chn)); >> + else if (jzdma->version =3D=3D ID_JZ4725B) >> + jz4780_dma_ctrl_writel(jzdma, JZ_DMA_REG_DCKE, BIT(chn)); >=20 > but you are writing to a different register here.. Yes. SoCs >=3D JZ4770 have the DCKE read-only register, and DCKES/DCKEC=20 to set/clear bits in DCKE. On JZ4725B, DCKE is read/write, but the zeros written are ignored (at=20 least that's what the documentation says). > -- > ~Vinod Thanks, -Paul =