Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp333589imu; Fri, 7 Dec 2018 01:44:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/WDgIUDgg3S5K1dy2PT5YzwpsDU86OYmkh2Fes8UQXs3t/seLL04ay67VcARyOQ/V+4kTTE X-Received: by 2002:a17:902:bc81:: with SMTP id bb1mr1425548plb.223.1544175846412; Fri, 07 Dec 2018 01:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544175846; cv=none; d=google.com; s=arc-20160816; b=pQ+jDeifhKVjzYbKX1O87v/C+iWcBh/ztmkXv7MkL+Ll2huuxkK9uDIrKyS0MFIPhe eiJTWp5hzFCg4mx2B0sYBV1biD5abPY8t7qCy2qQZy2VfdjaGIRuK425sTiYDlQM0znh 1+9CD06TIs1efLD8K+VN7RFW7SWWwuuhXjJar4CvdRmmkyxcVqsQMI19r8STvxp/ssEK BSDtnaZ/Sfoe2lCie/yDooItiktGD56INpZ/6i/7MNb5a4e4vgscutyI5q8pLMQJo6Xo RNuqvXlyyGEJpJ7WTrOaRPjhIXrGCx4G39ciY5mjb7M0n1rpDQqQB8XBd/z4+T4CXR0r ZTpA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=ixlbakaIA/4oHRVYUccngEWSGsH6XlefPnKEMKDTEBc=; b=MhuB6uVl0gM4xzX74q2hkCa+zDdfCMNPLxJhuKiTwD3QV4aRwY7T3TWeQbbFZwB45a mQ/LTRvEW1k+dO5o77BQ3solQuChxRPtKhgD1so6+bBMDDp4FOStC3xACzopLz0ELgT1 v7sr7RLj1UPdoNKYIZaEu8IS51dftNAlynvDgsmZkHl+ZBbUABwZ7EmOCH2jVwMF+N33 n6nUz2V2mkBJu6+k2o/SaNq0S/zV3DPub00hmPIP7TDTddj5Yeg2PhM2nzGI6FxEoVaC bNKBbMt884+WmxUFFDiL1jApVpAK/X20McUdg+WX763rOjl1nx/D4PwDieMNb+Y9PRUl 3oJQ== 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 w11si2466292pgf.452.2018.12.07.01.43.50; Fri, 07 Dec 2018 01:44:06 -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 S1726013AbeLGJnI convert rfc822-to-8bit (ORCPT + 99 others); Fri, 7 Dec 2018 04:43:08 -0500 Received: from mail.bootlin.com ([62.4.15.54]:48635 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725976AbeLGJnH (ORCPT ); Fri, 7 Dec 2018 04:43:07 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 1DE1D20731; Fri, 7 Dec 2018 10:43:05 +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 xps13 (aaubervilliers-681-1-79-44.w90-88.abo.wanadoo.fr [90.88.21.44]) by mail.bootlin.com (Postfix) with ESMTPSA id 922EA20711; Fri, 7 Dec 2018 10:42:54 +0100 (CET) Date: Fri, 7 Dec 2018 10:42:54 +0100 From: Miquel Raynal To: Jianxin Pan Cc: Boris Brezillon , , Liang Yang , Yixun Lan , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Jerome Brunet , Neil Armstrong , Martin Blumenstingl , Carlo Caione , Kevin Hilman , Rob Herring , Jian Hu , Hanjie Lin , Victor Wan , , , Subject: Re: [PATCH v7 2/2] mtd: rawnand: meson: add support for Amlogic NAND flash controller Message-ID: <20181207104254.0ecfc1e5@xps13> In-Reply-To: <20181207102456.1dc67e07@xps13> References: <1542386439-30166-1-git-send-email-jianxin.pan@amlogic.com> <1542386439-30166-3-git-send-email-jianxin.pan@amlogic.com> <20181207102456.1dc67e07@xps13> Organization: Bootlin X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jianxin, Miquel Raynal wrote on Fri, 7 Dec 2018 10:24:56 +0100: > Hi Jianxin, > > Looks good to me overall, a few comments inline. > > Jianxin Pan wrote on Sat, 17 Nov 2018 > 00:40:38 +0800: > > > From: Liang Yang > > > > Add initial support for the Amlogic NAND flash controller which found > > in the Meson-GXBB/GXL/AXG SoCs. > > > > Signed-off-by: Liang Yang > > Signed-off-by: Yixun Lan > > Signed-off-by: Jianxin Pan > > --- > > drivers/mtd/nand/raw/Kconfig | 10 + > > drivers/mtd/nand/raw/Makefile | 1 + > > drivers/mtd/nand/raw/meson_nand.c | 1417 +++++++++++++++++++++++++++++++++++++ > > 3 files changed, 1428 insertions(+) > > create mode 100644 drivers/mtd/nand/raw/meson_nand.c > > I forgot to mention, Boris has done more cleanup which breaks your patches, please have a look at the following commits in the nand/next branch, they will force you to do some light rework to get the driver building (especially, you should not export the ->select_chip hook anymore): 7a08dbaedd36 mtd: rawnand: Move ->setup_data_interface() to nand_controller_ops f2abfeb2078b mtd: rawnand: Move the ->exec_op() method to nand_controller_ops 7d6c37e90cf9 mtd: rawnand: Deprecate the ->select_chip() hook 1770022ffa85 mtd: rawnand: ams-delta: Stop implementing ->select_chip() 653c57c7da08 mtd: rawnand: vf610: Stop implementing ->select_chip() 2ace451cae22 mtd: rawnand: tegra: Stop implementing ->select_chip() b25251414f6e mtd: rawnand: marvell: Stop implementing ->select_chip() 550b9fc4e3af mtd: rawnand: fsmc: Stop implementing ->select_chip() 02b4a52604a4 mtd: rawnand: Make ->select_chip() optional when ->exec_op() is implemented ae2294b10b0f mtd: rawnand: Pass the CS line to be selected in struct nand_operation 1d0178593d14 mtd: rawnand: Add nand_[de]select_target() helpers Thanks, Miquèl