From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751635Ab2KPMiQ (ORCPT ); Fri, 16 Nov 2012 07:38:16 -0500 Received: from mga14.intel.com ([143.182.124.37]:13103 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751452Ab2KPMiO convert rfc822-to-8bit (ORCPT ); Fri, 16 Nov 2012 07:38:14 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.83,264,1352102400"; d="scan'208";a="218691545" Message-ID: <1353069475.11158.356.camel@smile> Subject: Re: [PATCH 2/2] dw_dmac: make usage of dw_dma_slave optional From: Andy Shevchenko To: Viresh Kumar Cc: Vinod Koul , Andy Shevchenko , spear-devel , linux-kernel@vger.kernel.org Date: Fri, 16 Nov 2012 14:37:55 +0200 In-Reply-To: References: <1352989248-28913-1-git-send-email-andriy.shevchenko@linux.intel.com> <1352989248-28913-2-git-send-email-andriy.shevchenko@linux.intel.com> <1352992898.11158.338.camel@smile> <1352993269.11158.340.camel@smile> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Mailer: Evolution 3.4.3-1 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2012-11-16 at 09:59 +0530, Viresh Kumar wrote: > On 15 November 2012 23:28, Andy Shevchenko wrote: > > On Thu, Nov 15, 2012 at 5:38 PM, Viresh Kumar wrote: > >> On 15 November 2012 20:57, Andy Shevchenko > >> wrote: > >>> Well, the prep_* should assign the value due to changes of check in the > >>> dwc_descriptor_complete. Otherwise we will potentially skip some > >>> important piece of code. > >> > >> What i meant to say was, set_runtime_config() must have already done this part. > > > > On one hand it is true. On the other - *_prep* functions use > > explicitly passed parameter. I doubt there is a consistency between > > value in slave config passed via dwc_control and value passed as > > explicit function parameter. > > I believe it should be consistent. > > @Vinod: Why have we duplicated direction? Once in prep_* and then in > slave_config? Documentation and TODO list say that slave_config.direction is kinda deprecated. > > -- > viresh -- Andy Shevchenko Intel Finland Oy