From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755431AbbI2Gc3 (ORCPT ); Tue, 29 Sep 2015 02:32:29 -0400 Received: from mail-la0-f44.google.com ([209.85.215.44]:36727 "EHLO mail-la0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753740AbbI2GcW (ORCPT ); Tue, 29 Sep 2015 02:32:22 -0400 Reply-To: alex.popov@linux.com Subject: Re: [PATCH v3 2/3] powerpc/512x: add a device tree binding for LocalPlus Bus FIFO References: <1443115737-3948-1-git-send-email-alex.popov@linux.com> <1443115737-3948-3-git-send-email-alex.popov@linux.com> <560492C1.307@tabi.org> <56093F89.1020004@linux.com> <5609401F.3010603@tabi.org> To: Timur Tabi , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Anatolij Gustschin , Gerhard Sittig , Rob Herring , Grant Likely , Dan Williams , Vinod Koul , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , linuxppc-dev@lists.ozlabs.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Alexander Popov From: Alexander Popov X-Enigmail-Draft-Status: N1110 Message-ID: <560A3141.6090705@linux.com> Date: Tue, 29 Sep 2015 09:35:45 +0300 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5609401F.3010603@tabi.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 28.09.2015 16:26, Timur Tabi wrote: > Alexander Popov wrote: >> I've just followed devicetree/bindings/dma/dma.txt... >> This "rx-tx" doesn't mean much but it could show that LocalPlus Bus FIFO >> uses a single DMA read-write channel. Should I really drop it? > > Hmmm, I'm not sure. Is there anything else (besides your driver) that > parses this device tree node? No, mpc512x_lpbfifo.c is the only piece of code which is going to use this device tree node. > dma.txt says this: > > "The specific strings that can be used are defined in the binding of the > DMA client device." > > So this looks like it's driver-specific, Yes. MPC512x LocalPlus Bus FIFO uses the channel #26 of the DMA controller both for reading and writing, and other DMA clients use other specific DMA channels. This channel assignment is fixed in hardware and described in the Reference Manual. > but it is a required property. > I guess you should keep it, but I think you should get a second opinion. Ok, thanks. Best regards, Alexander