Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8003007imu; Thu, 15 Nov 2018 05:10:23 -0800 (PST) X-Google-Smtp-Source: AJdET5du7g3wf/HBxrN6mxrJqa7TkJkiZ8akadkAgoTKbLJC8aEbmnbOM4TbIJLXbbryfBGMiUlf X-Received: by 2002:a62:cac4:: with SMTP id y65-v6mr6318713pfk.27.1542287423269; Thu, 15 Nov 2018 05:10:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542287423; cv=none; d=google.com; s=arc-20160816; b=igQyMuiVtZjpw1z+ukeAaKLogoVvorehUntP4c0sncGp5zrdSQSs1bs47lPet6X4J7 kDgQ5OJwIPoXLukicL3prxyIgN+XA6yDKW5iUZd4uiKfgs5nxC4ecxRjG4uW+kYATcRz vwuYhLnFGEmvcKV4FdQbYQuZxWXExPYKbfZ0m18YKuGg+BaDejWr4r6CBog1SUceQ6yy Ord2Zg0/O/Z+C1YsCQL3dJ1GugSq+G/0v40FCXkWPcStsmlnJVLlPrLQlIBvghdu2CyC 7FpyL+AzOeVR2sXi5hWznD2/TFyZpRLn7BnuP5vu+ygS5/Uu4CdD0TW3SSmHqs4hkVtk wGiw== 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:subject:cc:to:from:date; bh=un9F/1ZpSBOz0QQWGB12R7jpmXxHNkXhENAHpjieJPY=; b=H5SryY7O+bL4MT5EOT6jqeoPYclGXpGUQPSr7+Gu563NYVtjvDSD88rIYvPb0tlBh4 6piqKngIU2cPgx84kG0hG0QIZhEKmfDWkZZ+Yu3+dvC32Uq8bFs7NuhVCFtEBnE/gXY1 ZiP09beH5PRMEzSvki612xNssDW3yfNwBCPvvhdpNN/Uw5BRBPrvH8itkFiVEe5qr+Eh AXBBjAbo4GpV8J4ZG1QojupaGkWrpCvI/I02UMsnb+GGHq38AqKYxer0iusBX2udd2J4 2zryNJlNOl+q7caDJXRxLf4JJJFQmxtdj5RW94aamk24+60TAdQ7uglhOQRaO7g6+Ikw QOcw== 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.09.59; Thu, 15 Nov 2018 05:10:23 -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 S2387989AbeKOXQz (ORCPT + 99 others); Thu, 15 Nov 2018 18:16:55 -0500 Received: from mail.bootlin.com ([62.4.15.54]:40237 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729024AbeKOXQz (ORCPT ); Thu, 15 Nov 2018 18:16:55 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 7798820D73; Thu, 15 Nov 2018 14:09:06 +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 bbrezillon (aaubervilliers-681-1-13-146.w90-88.abo.wanadoo.fr [90.88.134.146]) by mail.bootlin.com (Postfix) with ESMTPSA id F09B020746; Thu, 15 Nov 2018 14:09:05 +0100 (CET) Date: Thu, 15 Nov 2018 14:09:05 +0100 From: Boris Brezillon To: Miquel Raynal Cc: Liang Yang , Rob Herring , Hanjie Lin , Victor Wan , Jianxin Pan , Neil Armstrong , Martin Blumenstingl , Richard Weinberger , Yixun Lan , , Marek Vasut , Jian Hu , , Kevin Hilman , Carlo Caione , , Brian Norris , David Woodhouse , , Jerome Brunet , Wolfram Sang Subject: Re: [PATCH v6 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller Message-ID: <20181115140905.40011b4b@bbrezillon> In-Reply-To: <20181115140400.3934effe@xps13> References: <1541090542-19618-1-git-send-email-jianxin.pan@amlogic.com> <1541090542-19618-3-git-send-email-jianxin.pan@amlogic.com> <20181105165321.7ea2b45f@bbrezillon> <20181106102851.61deb97a@bbrezillon> <20181106112206.65a70a81@bbrezillon> <20181112171351.4ac3506b@xps13> <20181112175416.247e3203@bbrezillon> <20181112184518.6c02ac6d@bbrezillon> <27769252-ac5e-e787-6792-d6a06e7af0e4@amlogic.com> <20181115140400.3934effe@xps13> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 15 Nov 2018 14:04:00 +0100 Miquel Raynal wrote: > Hi Liang, > > Liang Yang wrote on Thu, 15 Nov 2018 19:25:07 > +0800: > > > Hi Boris, > > > > I have implemented dma access base on these helpers you provided below. > > we prepare to send v7 version now, so when will these helpers be pushed? > > Thanks for your work. You can send the v7 so we will have a look at the > overall driver; but since we raised the DMA buffers issue we had a > discussion with Boris about how to handle them and I think we are going > to adopt the same solution as Wolfram in the I2C subsystem: manual > flagging. Sadly, this is probably the best we can do to ensure proper > DMA support. > > There is nothing set is stone yet but I started a small rework to > handle MTD operations differently (and add a DMA_SAFE flag), you can > have a look there [1]. Don't base your work on it for now as it is just > a preliminary version, subject to big changes. In order to not block the driver, I'd suggest that you move the helper I proposed directly into your driver and prefix them with 'meson_'.