From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751580Ab1IVIXD (ORCPT ); Thu, 22 Sep 2011 04:23:03 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:33570 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750990Ab1IVIW6 (ORCPT ); Thu, 22 Sep 2011 04:22:58 -0400 Date: Thu, 22 Sep 2011 09:22:05 +0100 From: Russell King - ARM Linux To: Barry Song <21cnbao@gmail.com> Cc: Jassi Brar , Piotr Ziecik , Jaswinder Singh , Vinod Koul , Pelagicore AB , Nicolas Ferre , linux-kernel@vger.kernel.org, Yong Wang , Barry Song , dan.j.williams@intel.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] dmaengine: delete redundant chan_id and chancnt initialization in dma drivers Message-ID: <20110922082205.GI17169@n2100.arm.linux.org.uk> References: <1316166200-20595-1-git-send-email-Baohua.Song@csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 22, 2011 at 08:08:44AM +0800, Barry Song wrote: > actually i don't like the way dmaengine core handles chan_id. in my > opinion, every dmac only needs to tell dmaengine core the chan_base. > then dmaengine core set the id in a global scale. Think about where we're heading with DT - with the description of the hardware setup. We're no longer interested in a global number from 0 to N. We're more interested in per-device numbering.