Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp769348imm; Mon, 9 Jul 2018 10:16:02 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfYO2elPO2IOBXT9hb246i+aMg2rrupdKLgoK4xB8LvJBNV8W+iGf4kn3+T+ByDD0qH2XJ4 X-Received: by 2002:a65:520d:: with SMTP id o13-v6mr19406188pgp.282.1531156562682; Mon, 09 Jul 2018 10:16:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531156562; cv=none; d=google.com; s=arc-20160816; b=IGUUoBoTH6jRYttXVStuC5OWHAoRlnuR9Ji+5G9ZnbVI8vT4Ebgk+2KDGlrrXe0VZg kt9fi0rSVejSR9ppuamBiltjs4Ofmj0dVVQ4ekO/BpWSFd7bDkOTklYhHxIWzvRGRzO3 CfZHLaO5jcCvgg4U42s7xHIr8vpU7SeyaeUx6E12mvmiQAzusfYD9HLHNWKa+h9+bClY tUghVzeCPk0I/Gj8a+0vcE79Ii+HFIBEC3OZSB5wZF7R6tjedHO+K4hJS4RL3EQo5/4Y QbLaQm/PZsUpgpGDw+ldOlkRxyhriX7CpQypsZcZpuhu7KeTpgrY4sTMg5SlSWaDsyIy /h4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=YHvAJ42YwngPFOi+FoFn3J9GYbdCwXWs14MoCJBkVXI=; b=gRLh6OwYcCKLRWVm2DO7ym454cBA426W+fuMBEIJKFhnkrwj4bJOLRF5S14dYPAZzM ffOvTP3NVeB+EPoMzMKGeJEnWkyDmDBh7T64cxCADvGZHtQisdKJpanYxm3BZf5atHO+ cXaKYGOvaIEroHYslHxQPGWPfBvx/dInK3Zj5poyfWqlXCy/gX8mY3CvMx+g9aV49yeu dw9UeJKDXV/fILyXcStIzAIyW0HgGiiwUFtFmcoRZ3ZHv9ICb2fJisq0qoV69NM6Ay2l JbsmKcs6fCZYu41eeU/s8XvtZnbFr69qMMgEiqrsV7Qzlq6h92HTJl6naEf8guZ+v3Qa epdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ofsTksSX; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x68-v6si15181166pfc.239.2018.07.09.10.15.47; Mon, 09 Jul 2018 10:16:02 -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=@kernel.org header.s=default header.b=ofsTksSX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933489AbeGIRPJ (ORCPT + 99 others); Mon, 9 Jul 2018 13:15:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:56322 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933360AbeGIRPH (ORCPT ); Mon, 9 Jul 2018 13:15:07 -0400 Received: from localhost (unknown [106.201.46.178]) (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 4F55C20871; Mon, 9 Jul 2018 17:15:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531156507; bh=mnbJASZQ6vB8nBRDMUBh+xawH7madxOgrKeixrgkcv8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ofsTksSX/OSzuLwld6bgnPx84JXyEDgvLYae5hmFcq+C5xpapSSGuRBb/I0fIcKof jIDXVppVVgwFinJ1GeQtA0su3VJjeNr7YXz+c9bYAjmLJ8+18eMxpOg0bg+v4aYWS8 +ZLT7+W3eKh2+jiMfpsxQfXqGEcRZ1U+iPc6w4Qc= Date: Mon, 9 Jul 2018 22:44:58 +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: <20180709171458.GL22377@vkoul-mobl> References: <20180703123214.23090-1-paul@crapouillou.net> <20180703123214.23090-7-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180703123214.23090-7-paul@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 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.. -- ~Vinod