Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8020849imu; Thu, 15 Nov 2018 05:26:19 -0800 (PST) X-Google-Smtp-Source: AJdET5fXPerxquAtvZ/WiuurkR4b7FiUcjljkhwedBa4HVQPUwTP72/jqsinJYJ849en5sHzb2n/ X-Received: by 2002:a63:8ac4:: with SMTP id y187mr5803125pgd.446.1542288379637; Thu, 15 Nov 2018 05:26:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542288379; cv=none; d=google.com; s=arc-20160816; b=EOeKO4RTAwFW/ZHNwvcGfvCGoTBXKSM3v4+rq5yey1IYVpIWCWS4TLbTJBlrTRHpKZ hv+KHJmCoaEREUrYJmquXmRSKcMEs8CRNh3GP/n9ZGJMQQxAXCGl6Vp4eNY9Xg5tzkF0 EeF0rMqfLcjjPEmxADiTgsvwwYEOfmVpsVC+MV+czHTLbrxSxFrHVW2d99B2SK2cZ8ob 5gs7V+phFwuBHf3RLbDF0bpgWRwhJolCa9ZVCYyYlpwYoxsTrm+1A6ySxqumjP77T7UY LekNVLNjR6wrpoFTrrJMhtrEVjBGYws1vZWyqfJXMKF/jWiANJI6P7+U+DwAtyacf6dG 3ZOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:message-id:date:subject:cc:to :from; bh=CAA3vBhocsg8xq/ZI/1mTl0ACkrsWJJYCvFF8eZ+Mig=; b=Y6ny1/zxVSb18BJ+qXsOeym3HfAfkFmb4/a4N7lyJtFtCID8GItzimSzGJ44vnmF9v 5jk7Csqrm1QQq8Tji/E6PKe9+HAr329eohoSc1oBzwuBGExg6tmTNPVjfg+b38G0LzT1 hO1gWoGRA54B5mCnIlp1Lfmfskn+B+pKP17D0kMdg+Q9BztBydDtJRjVVCi3FmRltQBb ebZIjquV/qH39S5TaNhik9Aa8452uSJTYWZKUfUdmRHanH/cduEQzGVxe3wpGr2tYl9D TRSFtGqLL0dkCj7wDiWBKZGkHNjw07Dz8uE68QjIHjjgvefqf6JWM0p3YEMP/RIQtIU7 kgng== ARC-Authentication-Results: i=1; mx.google.com; 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 v5-v6si25082022pgi.27.2018.11.15.05.26.04; Thu, 15 Nov 2018 05:26:19 -0800 (PST) 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; 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 S2388349AbeKOXdL (ORCPT + 99 others); Thu, 15 Nov 2018 18:33:11 -0500 Received: from mail.bootlin.com ([62.4.15.54]:40633 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732953AbeKOXdL (ORCPT ); Thu, 15 Nov 2018 18:33:11 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 84AF520752; Thu, 15 Nov 2018 14:25:19 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost.localdomain (aaubervilliers-681-1-13-146.w90-88.abo.wanadoo.fr [90.88.134.146]) by mail.bootlin.com (Postfix) with ESMTPSA id 35F4C20510; Thu, 15 Nov 2018 14:25:19 +0100 (CET) From: Boris Brezillon To: Tudor.Ambarus@microchip.com, marek.vasut@gmail.com, dwmw2@infradead.org, computersforpeace@gmail.com, richard@nod.at Cc: Boris Brezillon , yogeshnarayan.gaur@nxp.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, cyrille.pitchen@wedev4u.fr Subject: Re: [v2,4/5] mtd: spi_nor: pass DMA-able buffer to spi_nor_read_raw() Date: Thu, 15 Nov 2018 14:25:18 +0100 Message-Id: <20181115132518.15349-1-boris.brezillon@bootlin.com> X-Mailer: git-send-email 2.17.1 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: 1d5ceff25aa1edcaf84e7ee26fdcc746cb245af8 In-Reply-To: <20181109165644.30534-5-tudor.ambarus@microchip.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-11-09 at 16:56:54 UTC, wrote: > spi_nor_read_raw() calls nor->read() which might be implemented > by the m25p80 driver. m25p80 uses the spi-mem layer which requires > DMA-able in/out buffers. Pass kmalloc'ed dma buffer to spi_nor_read_raw(). > > Fixes: b038e8e3be72 ("mtd: spi-nor: parse SFDP Sector Map Parameter Table") > Signed-off-by: Tudor Ambarus Applied to http://git.infradead.org/linux-mtd.git mtd/fixes, thanks. Boris