From patchwork Sun Nov 11 17:31:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Lunn X-Patchwork-Id: 12813 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7AFF623E12 for ; Mon, 12 Nov 2012 15:33:16 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 185FCA185C5 for ; Mon, 12 Nov 2012 15:33:15 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so8792103iej.11 for ; Mon, 12 Nov 2012 07:33:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to :date:message-id:x-mailer:in-reply-to:references :x-mailman-approved-at:cc:subject:x-beenthere:x-mailman-version :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-gm-message-state; bh=0gIj07aEKi1oZgPKd2jAt0aXsIB0FlZjkQTloz+4FNU=; b=b3xpzJcLfthjbbJ2PlSf5hZ5WaO4lNo/TCpvkBkauOpuQMtOIPWJO7RPRW4PclF9J0 gi4tuertrcy0aTumqDNsxevOvuIbs+47EEWDbDqXQFtm5qbfA0zgHjInmbLcsadeRoOP BBIPLwz3s9eS0Q4WUg1ps9cdHrr2wrOE2+4yvwwmx47eWnpX3Iuqj9pwYnQotuJnhmvV VJX3AZY0Sw8lW52nrM9cNni6UYc5Bpqlzb7vhQSZ1KZTG4Ie6KnPQAOhm9y6cCrvHlDy osv9g82KqKJ2YRZhuZlaE0ie2f14Rx7ZLqnB5rZrPVHumT0XX7H8oV24ElcliPRdGVB+ JVig== Received: by 10.50.161.169 with SMTP id xt9mr8058382igb.62.1352734395334; Mon, 12 Nov 2012 07:33:15 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp375141igt; Mon, 12 Nov 2012 07:33:14 -0800 (PST) Received: by 10.14.209.6 with SMTP id r6mr64016357eeo.34.1352734393206; Mon, 12 Nov 2012 07:33:13 -0800 (PST) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id l1si470748een.37.2012.11.12.07.33.07; Mon, 12 Nov 2012 07:33:13 -0800 (PST) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TXw0W-000777-NZ; Mon, 12 Nov 2012 15:33:04 +0000 Received: from londo.lunn.ch ([80.238.139.98]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1TXbNm-0006x3-6O for linaro-mm-sig@lists.linaro.org; Sun, 11 Nov 2012 17:31:42 +0000 Received: from lunn by londo.lunn.ch with local (Exim 3.36 #1 (Debian)) id 1TXbNd-0000Gn-00; Sun, 11 Nov 2012 18:31:33 +0100 From: Andrew Lunn To: Jason Cooper Date: Sun, 11 Nov 2012 18:31:19 +0100 Message-Id: <1352655079-1005-1-git-send-email-andrew@lunn.ch> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1352356737-14413-1-git-send-email-m.szyprowski@samsung.com> References: <1352356737-14413-1-git-send-email-m.szyprowski@samsung.com> X-Mailman-Approved-At: Mon, 12 Nov 2012 15:33:03 +0000 Cc: linaro-mm-sig@lists.linaro.org, Andrew Lunn , linux ARM Subject: [Linaro-mm-sig] [PATCH] ARM: Orion: Remove redundent init_dma_coherent_pool_size() X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQkXA+K5f8QV4GpWV+Vhi0N+aIdYe4/KWL7uKc6SChdz+MV/cfK4HnnPy/qv9oP24TQ2sM5P The patch: mm: dmapool: use provided gfp flags for all dma_alloc_coherent() calls makes these calls on Kirkword and Orion5x redundent. The drivers are not making atomic requests for coherent memory and hence the default pool size is now sufficient. Signed-off-by: Andrew Lunn --- arch/arm/mach-kirkwood/common.c | 7 ------- arch/arm/mach-orion5x/common.c | 7 ------- 2 files changed, 14 deletions(-) diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c index 2c6c218..8080ceb 100644 --- a/arch/arm/mach-kirkwood/common.c +++ b/arch/arm/mach-kirkwood/common.c @@ -505,13 +505,6 @@ void __init kirkwood_wdt_init(void) void __init kirkwood_init_early(void) { orion_time_set_base(TIMER_VIRT_BASE); - - /* - * Some Kirkwood devices allocate their coherent buffers from atomic - * context. Increase size of atomic coherent pool to make sure such - * the allocations won't fail. - */ - init_dma_coherent_pool_size(SZ_1M); } int kirkwood_tclk; diff --git a/arch/arm/mach-orion5x/common.c b/arch/arm/mach-orion5x/common.c index b3eb3da..3e07f52 100644 --- a/arch/arm/mach-orion5x/common.c +++ b/arch/arm/mach-orion5x/common.c @@ -194,13 +194,6 @@ void __init orion5x_wdt_init(void) void __init orion5x_init_early(void) { orion_time_set_base(TIMER_VIRT_BASE); - - /* - * Some Orion5x devices allocate their coherent buffers from atomic - * context. Increase size of atomic coherent pool to make sure such - * the allocations won't fail. - */ - init_dma_coherent_pool_size(SZ_1M); } int orion5x_tclk;