From patchwork Tue Nov 19 11:07:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 21615 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0495E23FB4 for ; Tue, 19 Nov 2013 11:08:10 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id r7sf14166970qcx.7 for ; Tue, 19 Nov 2013 03:08:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=+1q5uQs0pZl7ftpALuIoJwohhxfyNbeMStjLYFchLco=; b=lwqPYEn8vb8B4EkAm9YggXK+U6wyDHi+JwDdD8edeRfpJvq1MeF5DAOLyZuwBl09fF w07wt5woq1DuroIRGWO6UMs2Bkq50E1uZVhT/EfzOd3MTfW8y1+7QWK/yjl9S7COYMEB P+d7rkKBLYiEYD+V15bhTUDoRLJTInBT8X7RSUHfyDA7c308Fb7W8IhNMsHlwTof1GLZ PuuRavCW80jqD0brO8Hlv5vUWJ5bSadHlhVG6ezYBNPpzLECSN2M0tjgNb236i2327Ft +FDDHkiJ/5VBcB1FVFDJm4WjOicDduTgN2slRSatnwsLz3KuXHTV4EkzSiNkWhXzhbcn wuzQ== X-Gm-Message-State: ALoCoQnpFk9zeMi4IvALTO1lc+EQkQZx2wqX+RgYs9FdnuY891y0E+VFPLSDAb7tdRtf50ohV3Np X-Received: by 10.52.31.69 with SMTP id y5mr8318282vdh.4.1384859289855; Tue, 19 Nov 2013 03:08:09 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.14.106 with SMTP id o10ls2944729qec.36.gmail; Tue, 19 Nov 2013 03:08:09 -0800 (PST) X-Received: by 10.52.23.68 with SMTP id k4mr417996vdf.28.1384859289760; Tue, 19 Nov 2013 03:08:09 -0800 (PST) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id gq10si7999918vdc.30.2013.11.19.03.08.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Nov 2013 03:08:09 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id oz11so234003veb.4 for ; Tue, 19 Nov 2013 03:08:09 -0800 (PST) X-Received: by 10.58.210.66 with SMTP id ms2mr20841037vec.10.1384859289689; Tue, 19 Nov 2013 03:08:09 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp269497vcz; Tue, 19 Nov 2013 03:08:09 -0800 (PST) X-Received: by 10.60.68.135 with SMTP id w7mr25178948oet.9.1384859289149; Tue, 19 Nov 2013 03:08:09 -0800 (PST) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by mx.google.com with ESMTPS id uq6si15090164obc.148.2013.11.19.03.08.09 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Nov 2013 03:08:09 -0800 (PST) Received-SPF: neutral (google.com: 209.85.214.173 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.214.173; Received: by mail-ob0-f173.google.com with SMTP id gq1so3344435obb.32 for ; Tue, 19 Nov 2013 03:08:08 -0800 (PST) X-Received: by 10.182.88.202 with SMTP id bi10mr1142406obb.52.1384859288890; Tue, 19 Nov 2013 03:08:08 -0800 (PST) Received: from localhost.localdomain (cpc15-aztw25-2-0-cust493.aztw.cable.virginm.net. [92.233.57.238]) by mx.google.com with ESMTPSA id d8sm34904086oeu.6.2013.11.19.03.08.07 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 19 Nov 2013 03:08:08 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, Lee Jones Subject: [PATCH 02/10] dma: ste_dma40: Parse flags property for new 'high priority channel' request Date: Tue, 19 Nov 2013 11:07:41 +0000 Message-Id: <1384859269-19801-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1384859269-19801-1-git-send-email-lee.jones@linaro.org> References: <1384859269-19801-1-git-send-email-lee.jones@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.173 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This is used for MSP (audio) devices which is about to be fully DT:ed. Acked-by: Vinod Koul Acked-by: Linus Walleij Signed-off-by: Lee Jones --- 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); }