From patchwork Wed Nov 6 10:16:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 21365 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AFCF820DB9 for ; Wed, 6 Nov 2013 10:16:52 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id v10sf17371000pde.9 for ; Wed, 06 Nov 2013 02:16:51 -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=pqTLUzqKYjUY9X+0m5DOvIWk6LFGAA/DRDrsbqSIWT4=; b=l/EfP5M4p0uddBhJ82G3cd3vTUGYwdRV94grNGOLB/6ogy5xZtoi+NNYs2xcOk5m6Q Wun57+bSs7HnGC0BICgnXH4bdt75Yix7EOX95OLIAEkjOfMlno1EV4unA1VvWYF9nDOV Emc4gTkvArsGi0zktREa2wD7gfbHkwZIcovqmMHXYYhUwxF70ZiTAZBNQZ1hQ9QnqpsD bOntbCEHyUxft2eEsJB92TlbJYAohZFFk/5mhkIdFspImzr1jFm1/D3PjUiiwJTWdfE1 1oWAu6iYLByoPoQ+0vWpZS+ROF6pLPcNdezTUakEpHA4DoWBHqhsWB3SzasIxM9QcKen SQcA== X-Gm-Message-State: ALoCoQlRUDetHJVZagnusQ2QmR6uFBZXR4a6MaBzS49xIHMg3CpiX3ruAtBZJDThTjH63SIg97Jw X-Received: by 10.66.227.193 with SMTP id sc1mr1092546pac.25.1383733011729; Wed, 06 Nov 2013 02:16:51 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.130.233 with SMTP id oh9ls589562qeb.62.gmail; Wed, 06 Nov 2013 02:16:51 -0800 (PST) X-Received: by 10.52.33.147 with SMTP id r19mr1300935vdi.37.1383733011591; Wed, 06 Nov 2013 02:16:51 -0800 (PST) Received: from mail-vb0-f47.google.com (mail-vb0-f47.google.com [209.85.212.47]) by mx.google.com with ESMTPS id z15si8157797vce.147.2013.11.06.02.16.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Nov 2013 02:16:51 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.47 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.47; Received: by mail-vb0-f47.google.com with SMTP id m10so3266068vbh.34 for ; Wed, 06 Nov 2013 02:16:51 -0800 (PST) X-Received: by 10.221.64.17 with SMTP id xg17mr1718533vcb.5.1383733011505; Wed, 06 Nov 2013 02:16:51 -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 u4csp273194vcz; Wed, 6 Nov 2013 02:16:51 -0800 (PST) X-Received: by 10.43.132.66 with SMTP id ht2mr1571922icc.26.1383733010839; Wed, 06 Nov 2013 02:16:50 -0800 (PST) Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) by mx.google.com with ESMTPS id xr8si31457748icb.68.2013.11.06.02.16.50 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Nov 2013 02:16:50 -0800 (PST) Received-SPF: neutral (google.com: 209.85.223.179 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.223.179; Received: by mail-ie0-f179.google.com with SMTP id aq17so17548832iec.10 for ; Wed, 06 Nov 2013 02:16:50 -0800 (PST) X-Received: by 10.50.110.74 with SMTP id hy10mr19577799igb.0.1383733010085; Wed, 06 Nov 2013 02:16:50 -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 ka1sm13308397igb.7.2013.11.06.02.16.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 06 Nov 2013 02:16:49 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: linus.walleij@linaro.org, Lee Jones , Vinod Koul Subject: [PATCH 02/13] dma: ste_dma40: Parse flags property for new 'high priority channel' request Date: Wed, 6 Nov 2013 10:16:14 +0000 Message-Id: <1383732985-18928-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1383732985-18928-1-git-send-email-lee.jones@linaro.org> References: <1383732985-18928-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.212.47 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. Cc: Vinod Koul 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); }