Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2012717imm; Sat, 13 Oct 2018 08:19:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV63D9DDv9y2BWbcS3TY+L+jSlmq6oHOWqkRvVnzxThNbeNMSK3q7LpO9gPTxwSjhPhhZU5qA X-Received: by 2002:a17:902:2e:: with SMTP id 43-v6mr10189757pla.290.1539443966409; Sat, 13 Oct 2018 08:19:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539443966; cv=none; d=google.com; s=arc-20160816; b=UCjrRGx5H/DrRTQnsUKvPVtDCy0f4SC6l4kgsYFuRfqaE9UfUnwaf03gStSpx0gld4 T1QDqdcO7J7lQhpRDv5CrVfD50VMDE47+WngsIuOudZ68n7HZmygHjJ6Sf6VT/V1UDeu w6beWaglNHdcwYZ8nXswNA64Y/jU4Y0+/n+5EXeJ/nwQy9CGgqXjDq9UrTNEgv64UaX9 ODfleqHOZBC6dva+txGgs5+2cIHs41CE5Wh1gSMdim+PZuPQ4oBT9Gx3x78UkorxbL3g hj7LkHMIlZFgzqB02ha2u9II94nBBoVj6QOHKEE3drUxU2i8iCWu88oUPsRdt2YQfjnN RlYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dY9ODyogq437nMXiPguhB7J6lfoETKSsvYTNXVNUP+c=; b=g+a8vzTU5QltEuWhkMAqFCzKhbkYHJ4pUnQkYH6OTKQcMsT82lB5MCKC3qCzkSMlwS P4GwRqQpWctsZnjzy4A8vXpou5IjE1btOtY8zy/ED8d3Uc8We20eDx3iaDuhBuTU6tI2 hIZHUp8uLbD5//9CgFJ9ZIMKemzKUJKFHCcOr098gCP70u2bisPSpit+MYqhrPnY7KuS 8kxk4k5dLZMbAgl+afeezkutl2RqiiKLindhs9t403a1pFPpTb8zsr1etMCzkijxahta njTH3jV6lZ5A15CUYbH9ad4YK/eNR264wGtIQErw9hDyd8BoCCm0kN4qZOibIpezrCZh /kAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZACDolTe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 207-v6si4529791pgf.245.2018.10.13.08.19.11; Sat, 13 Oct 2018 08:19:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZACDolTe; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727040AbeJMWyv (ORCPT + 99 others); Sat, 13 Oct 2018 18:54:51 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:33534 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726294AbeJMWyu (ORCPT ); Sat, 13 Oct 2018 18:54:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=dY9ODyogq437nMXiPguhB7J6lfoETKSsvYTNXVNUP+c=; b=ZACDolTeSeVupiHaM53AlqO2Sc 4D7aafMn/ijnCNOex2KTxipFsxNURkj9nONycH94xUSSn+hFzDCuh6ZgtETK2oWTDHJfTjpREWl7e LhkvPgvdiexzKF+766QXUUhenqFxf7rDDWhdduAlCWejyRFWbcyzqsgLIzulnXQXcvdA192WnxULY BZmyqtLGH10YIUKzKph4JnZ87J1Lca4ZBmBj/cmA9/ya/sYiGYt1SILJAI9A2hlY7jKa/At2zS3+0 pLpCF9OW55poXtZU6JfYau36DaqxizjulOw/jaxU7ZD3fy/bIW3/DsT9CQAubRxK141GTu9/BjuAF J2fw9uTQ==; Received: from 089144199123.atnat0008.highway.a1.net ([89.144.199.123] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gBLfJ-00050Z-UQ; Sat, 13 Oct 2018 15:17:18 +0000 From: Christoph Hellwig To: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-spi@vger.kernel.org, linux-fbdev@vger.kernel.org, alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 3/8] spi: pic32-sqi: don't pass GFP_DMA32 to dma_alloc_coherent Date: Sat, 13 Oct 2018 17:17:02 +0200 Message-Id: <20181013151707.32210-4-hch@lst.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181013151707.32210-1-hch@lst.de> References: <20181013151707.32210-1-hch@lst.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DMA API does its own zone decisions based on the coherent_dma_mask. Signed-off-by: Christoph Hellwig --- drivers/spi/spi-pic32-sqi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/spi-pic32-sqi.c b/drivers/spi/spi-pic32-sqi.c index bd1c6b53283f..ab53e461d80f 100644 --- a/drivers/spi/spi-pic32-sqi.c +++ b/drivers/spi/spi-pic32-sqi.c @@ -468,7 +468,7 @@ static int ring_desc_ring_alloc(struct pic32_sqi *sqi) /* allocate coherent DMAable memory for hardware buffer descriptors. */ sqi->bd = dma_zalloc_coherent(&sqi->master->dev, sizeof(*bd) * PESQI_BD_COUNT, - &sqi->bd_dma, GFP_DMA32); + &sqi->bd_dma, GFP_KERNEL); if (!sqi->bd) { dev_err(&sqi->master->dev, "failed allocating dma buffer\n"); return -ENOMEM; -- 2.19.1