From patchwork Fri May 31 09:19:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 17350 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f200.google.com (mail-ye0-f200.google.com [209.85.213.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E7F1A25E30 for ; Fri, 31 May 2013 09:21:44 +0000 (UTC) Received: by mail-ye0-f200.google.com with SMTP id r2sf392402yen.3 for ; Fri, 31 May 2013 02:21:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version: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 :content-type; bh=+zmxs0ILK5opOkbQhU6oHy5sewuWgw8iMsXLNie6gAc=; b=HxelA9dRWXvN6/p1D5SlsDoyJv7h7JDDMYZtTQSGF1clGxyQQ2gDoEcDyForSZFUwP p5Q5wOvIkwIrdk0kgLJgfK6q3Q2nOI04AiuC3NNK+Wx2k9iQZh0tombF6O0gLJyWKVr9 88hjygcHp1kOgDyKIEPOZU5OIzPr8DUmaaswniwvAUMGHSlnjO29Gc9DfwW9oz3QI5A0 3MZlotDj6SLC7yE9nXxxb+1XRn8XNji6me7FDXcDyqRz/MptZcZdMdsYm2ClOaqC84VU DlMzMTWagcFyMVIgixcTEnvXw5ujwDN5ekAfd5fOW2H12//xollLHfzZrgj2N/CHEu5G tT8w== X-Received: by 10.224.165.143 with SMTP id i15mr6306511qay.0.1369992104666; Fri, 31 May 2013 02:21:44 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.0.236 with SMTP id 12ls843506qeh.97.gmail; Fri, 31 May 2013 02:21:44 -0700 (PDT) X-Received: by 10.58.22.74 with SMTP id b10mr4119278vef.47.1369992104499; Fri, 31 May 2013 02:21:44 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id tq4si27830941vdc.40.2013.05.31.02.21.44 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 02:21:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 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.175; Received: by mail-vc0-f175.google.com with SMTP id hv10so890062vcb.34 for ; Fri, 31 May 2013 02:21:44 -0700 (PDT) X-Received: by 10.220.246.8 with SMTP id lw8mr9243695vcb.8.1369992104369; Fri, 31 May 2013 02:21:44 -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.220.229.199 with SMTP id jj7csp42462vcb; Fri, 31 May 2013 02:21:43 -0700 (PDT) X-Received: by 10.14.194.130 with SMTP id m2mr12650216een.96.1369992101310; Fri, 31 May 2013 02:21:41 -0700 (PDT) Received: from eu1sys200aog119.obsmtp.com (eu1sys200aog119.obsmtp.com [207.126.144.147]) by mx.google.com with SMTP id 7si29974980eeb.265.2013.05.31.02.21.18 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 May 2013 02:21:41 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.147 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.147; Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob119.postini.com ([207.126.147.11]) with SMTP ID DSNKUahrjS6TqzaFilARpznT1EVZLMEsGKMy@postini.com; Fri, 31 May 2013 09:21:41 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 1489F55; Fri, 31 May 2013 09:20:16 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 4C3EF57; Fri, 31 May 2013 09:21:16 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id B7DE024C07C; Fri, 31 May 2013 11:21:10 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.279.5; Fri, 31 May 2013 11:21:15 +0200 From: Linus Walleij To: Cc: Arnd Bergmann , Linus Walleij Subject: [PATCH 38/39] spi: pl022: use DMA by default when probing from DT Date: Fri, 31 May 2013 11:19:13 +0200 Message-ID: <1369991954-17406-39-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1369991954-17406-1-git-send-email-linus.walleij@stericsson.com> References: <1369991954-17406-1-git-send-email-linus.walleij@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQlHcIvPxIKd4fN5i7okSl9t388LuZ2IftNbjRCt1NZVUhpN66zVQq4O3CRrhy5qQH1v2cIJ X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 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: , From: Linus Walleij In the past we controlled the selection of DMA for a certain host by a boolean switch in the platform data. Currently there is no way to enable DMA on a PL022 probed from the device tree. Let's default to trying to obtain DMA channels in the DT case, and then we can always fail (and thus fall back to PIO mode). Signed-off-by: Linus Walleij --- drivers/spi/spi-pl022.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c index 371cc66f..3b24654 100644 --- a/drivers/spi/spi-pl022.c +++ b/drivers/spi/spi-pl022.c @@ -2083,6 +2083,7 @@ pl022_platform_data_dt_get(struct device *dev) } pd->bus_id = -1; + pd->enable_dma = 1; of_property_read_u32(np, "num-cs", &tmp); pd->num_chipselect = tmp; of_property_read_u32(np, "pl022,autosuspend-delay",