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: 3201031 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 78C949F3A0 for ; Tue, 19 Nov 2013 11:09:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2E9420334 for ; Tue, 19 Nov 2013 11:09:10 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 45B82202FE for ; Tue, 19 Nov 2013 11:09:09 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VijAm-0000Dn-18; Tue, 19 Nov 2013 11:08:48 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VijAf-000402-IC; Tue, 19 Nov 2013 11:08:41 +0000 Received: from mail-ob0-f169.google.com ([209.85.214.169]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VijAQ-0003wg-5K for linux-arm-kernel@lists.infradead.org; Tue, 19 Nov 2013 11:08:26 +0000 Received: by mail-ob0-f169.google.com with SMTP id wm4so2915487obc.28 for ; Tue, 19 Nov 2013 03:08:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+1q5uQs0pZl7ftpALuIoJwohhxfyNbeMStjLYFchLco=; b=In4jAILH/cmIK5eFRc4UFC/AGOPUtPuhN0HzaOnVb6kIREZv4xJ+5vNqKM89vK9Hyl e2FuDUms/TZPX2Vo4zdNTfGKHnXWmBh+aCzqgsmk1K0EtmYZE72ULx/iFpXCb7KILq2L Z7wwbmKdIiqZOOgF4lQdJwd8G1/QhJXvaczoHiVCZmQOTzrpcZ77hOlxXHInoVBzrmfK OKwOAKtojehESJd5i3lCxy1pXiV7Ocp8rQyzgZCUzk9PGYSPghcG3/SFJJTkky+1jNtl wrsJ1TuMyk/jGZhobz0wB/s8nyzqU3IGgOODnS0//kz81BrdRtsxikUs5FP1XSTflv4z 2yDg== X-Gm-Message-State: ALoCoQmFoCtV80KeHOFpJFyJuFIUssNCBiGZ6Rea8w/WW/zRzGkY20BB2uhsG/CHGE4Mh7Q+2WWj 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 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131119_060826_298505_C3EE460C X-CRM114-Status: GOOD ( 11.02 ) X-Spam-Score: -2.6 (--) Cc: linus.walleij@linaro.org, Lee Jones X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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); }