From patchwork Thu Jun 13 13:56:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 17910 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 14B9625BE0 for ; Thu, 13 Jun 2013 13:56:27 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id f73sf4609737yha.6 for ; Thu, 13 Jun 2013 06:56:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=HFpWOiiXu3YeUKO5UXLzu5uDuSLa7UUnVoO37v++cvc=; b=Fp4392TETGdzhGOg0vnmTc+erKUXmG5VpDWcCBf+/A2daZCOfZhNeo+2ehXXI4lCLi +ejdjT6tYWt+nTcz3ymy5v8jXNXgmsoNHB9rd2fUte6LvXfb0ks4fShCenJAqTwgH52T NeEA7hL3oB+OZx+k7lhCRHddP/USXdboL6l6axyThX9xU1Up1TXUuU+F0B2UGDdbWMSb oYdBmLqVgQkAC+RV6D8n9OWcbpnURsTZkZwPLaroiLzHM6BoKaMm+yY8TM7JeyG0q7O8 FxKHXtt+A/5YVyr0Gg94mFG40X2sVPLEEfDGpmzbTXqs7TuQZsl3SUd5uEuk/MTwzczF 7hLA== X-Received: by 10.236.200.229 with SMTP id z65mr450402yhn.18.1371131786471; Thu, 13 Jun 2013 06:56:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.83.102 with SMTP id p6ls1648997qey.63.gmail; Thu, 13 Jun 2013 06:56:23 -0700 (PDT) X-Received: by 10.52.34.70 with SMTP id x6mr334659vdi.53.1371131783879; Thu, 13 Jun 2013 06:56:23 -0700 (PDT) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx.google.com with ESMTPS id ny2si6104872vcb.50.2013.06.13.06.56.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Jun 2013 06:56:23 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.182; Received: by mail-vc0-f182.google.com with SMTP id id13so2119183vcb.41 for ; Thu, 13 Jun 2013 06:56:23 -0700 (PDT) X-Received: by 10.220.215.73 with SMTP id hd9mr394836vcb.19.1371131783802; Thu, 13 Jun 2013 06:56:23 -0700 (PDT) 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.58.191.99 with SMTP id gx3csp23330vec; Thu, 13 Jun 2013 06:56:23 -0700 (PDT) X-Received: by 10.194.108.73 with SMTP id hi9mr603275wjb.85.1371131782471; Thu, 13 Jun 2013 06:56:22 -0700 (PDT) Received: from mail-wg0-x232.google.com (mail-wg0-x232.google.com [2a00:1450:400c:c00::232]) by mx.google.com with ESMTPS id br2si8796802wib.31.2013.06.13.06.56.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 13 Jun 2013 06:56:22 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::232 is neither permitted nor denied by best guess record for domain of fabio.baltieri@linaro.org) client-ip=2a00:1450:400c:c00::232; Received: by mail-wg0-f50.google.com with SMTP id k14so252569wgh.29 for ; Thu, 13 Jun 2013 06:56:21 -0700 (PDT) X-Received: by 10.180.101.170 with SMTP id fh10mr7412925wib.22.1371131781383; Thu, 13 Jun 2013 06:56:21 -0700 (PDT) Received: from localhost ([2a01:2003:1:1e74:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPSA id ft10sm31549284wib.7.2013.06.13.06.56.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 13 Jun 2013 06:56:20 -0700 (PDT) From: Fabio Baltieri To: Linus Walleij , Lee Jones Cc: Srinidhi Kasagar , Vinod Koul , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Baltieri Subject: [PATCH] ARM: ux500: set coherent_dma_mask for dma40 Date: Thu, 13 Jun 2013 15:56:03 +0200 Message-Id: <1371131763-6288-1-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.8.2 X-Gm-Message-State: ALoCoQmD/vnOaJ/qfdmvYP0VIeHsef7ABBNFlfngP6OvsN/Zp1GqMzb/MnvPj4MIwD2FB+/NLs7o X-Original-Sender: fabio.baltieri@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.182 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: , Set coherent_dma_mask to DMA_BIT_MASK(32) for dma40 platform_device, as without this DMA allocations were failing with the error: dma40 dma40.0: coherent DMA mask is unset when booting without device-tree. Signed-off-by: Fabio Baltieri --- Hi Linus, Lee, I found this while removing the last hack I was keeping in my ASoC tree. I originally thought that I had to set this on the driver's pdata, but it turns out it's needed on the DMA controller one instead. When booting with device-tree enabled the mask seems to be set automatically. Would you consider applying this with the other dma40 patches? Thanks, Fabio arch/arm/mach-ux500/devices-db8500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-ux500/devices-db8500.c b/arch/arm/mach-ux500/devices-db8500.c index e21ffd8..fa8f7a5 100644 --- a/arch/arm/mach-ux500/devices-db8500.c +++ b/arch/arm/mach-ux500/devices-db8500.c @@ -49,6 +49,7 @@ struct stedma40_platform_data dma40_plat_data = { struct platform_device u8500_dma40_device = { .dev = { .platform_data = &dma40_plat_data, + .coherent_dma_mask = DMA_BIT_MASK(32), }, .name = "dma40", .id = 0,