From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755884Ab3KMPMC (ORCPT ); Wed, 13 Nov 2013 10:12:02 -0500 Received: from mga01.intel.com ([192.55.52.88]:6247 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753133Ab3KMPL7 (ORCPT ); Wed, 13 Nov 2013 10:11:59 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,693,1378882800"; d="scan'208";a="432795978" Date: Wed, 13 Nov 2013 19:46:18 +0530 From: Vinod Koul To: Lee Jones Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linus.walleij@linaro.org Subject: Re: [PATCH 02/13] dma: ste_dma40: Parse flags property for new 'high priority channel' request Message-ID: <20131113141617.GB8834@intel.com> References: <1383732985-18928-1-git-send-email-lee.jones@linaro.org> <1383732985-18928-3-git-send-email-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1383732985-18928-3-git-send-email-lee.jones@linaro.org> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 06, 2013 at 10:16:14AM +0000, Lee Jones wrote: > This is used for MSP (audio) devices which is about to be fully DT:ed. > > Cc: Vinod Koul > Signed-off-by: Lee Jones Acked-by: Vinod Koul -- ~Vinod > --- > drivers/dma/ste_dma40.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c > index b8c031b..00a2de9 100644 > --- a/drivers/dma/ste_dma40.c > +++ b/drivers/dma/ste_dma40.c > @@ -2409,6 +2409,7 @@ static void d40_set_prio_realtime(struct d40_chan *d40c) > #define D40_DT_FLAGS_DIR(flags) ((flags >> 1) & 0x1) > #define D40_DT_FLAGS_BIG_ENDIAN(flags) ((flags >> 2) & 0x1) > #define D40_DT_FLAGS_FIXED_CHAN(flags) ((flags >> 3) & 0x1) > +#define D40_DT_FLAGS_HIGH_PRIO(flags) ((flags >> 4) & 0x1) > > static struct dma_chan *d40_xlate(struct of_phandle_args *dma_spec, > struct of_dma *ofdma) > @@ -2446,6 +2447,9 @@ static struct dma_chan *d40_xlate(struct of_phandle_args *dma_spec, > cfg.use_fixed_channel = true; > } > > + if (D40_DT_FLAGS_HIGH_PRIO(flags)) > + cfg.high_priority = true; > + > return dma_request_channel(cap, stedma40_filter, &cfg); > } > > -- > 1.8.1.2 > --