Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3877375imm; Mon, 20 Aug 2018 06:17:50 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxR8cmuTyyqByGqpMChxj7k9vB0UUGXFKWLDpUs+1XyrG9bG6ANlqxpkWVL34K2kSFFu4K9 X-Received: by 2002:a62:5543:: with SMTP id j64-v6mr47741581pfb.188.1534771070096; Mon, 20 Aug 2018 06:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534771070; cv=none; d=google.com; s=arc-20160816; b=i2M7qfaPPlGBqxko9o83/I4o2WxEC2hDlhhQancz9125b02NBCej6XXsmxjaxt502b kdd8L17/V44qKKF2OVVFmHfTl5L4t0WK2DHQLaMd3LYCUZc+GbTfZCPsH1cPDHzqCeM3 /wBqVlOgYC65KU7JRfokSt5k5613s87LZKAeGkuiValUW93qZX32C4L+6kPyR19VsITN yuNTJ1PcdjGLOjCt9/YesI76KvWDR/J7Sh+lCBEPXB/XUsC7SFcqjjK0+PzMn+4cTuI6 cnSOW7PgtDk7YaQV+d5yCNrcFKe7lfvrNofINcHRe7ivkEIW2q6VMCQ1n1Pp1oPN8KK9 8vTw== 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 :arc-authentication-results; bh=gXBCaN+Gpe6xbzWhYA0imxFL/4lirkZoV9W8Phu19Eg=; b=ZMbEnfFgUnMciedl9MzoTvO1AbSNIpxm/qeN4VlbUI5D/LpqH/pYsMYfxa9lTlpH+q prjTe4YHA2HzpzlcLcxUG/Gv0GE5CCLfVyjZPQTUbAnPxzIlTkSObDWhQPf8ypP9W2Hz bgw02NGlKLsBfeRTKfsTHxC7aiXaV6INsUC5PcIPc1EXTFOZmRz1q7xe7oKLbjhhTpGy 8/g0TyKk6cmhWtr6bqXy3KUu23mRrC0UfB9eb7yhZv4uuKkCIfRQoSKP4UeuqapxynDU 4a1XVzGkz5hKDKGWTFEjFF7agigPiustpv5Y4vgWa3bkcW8t4iX+lc71OwPkIMpY9gEi DqRQ== 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 b10-v6si9576239pgi.416.2018.08.20.06.17.34; Mon, 20 Aug 2018 06:17:50 -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; 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 S1726651AbeHTP0B (ORCPT + 99 others); Mon, 20 Aug 2018 11:26:01 -0400 Received: from mail.bootlin.com ([62.4.15.54]:38915 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726197AbeHTP0B (ORCPT ); Mon, 20 Aug 2018 11:26:01 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 7F7E920DF2; Mon, 20 Aug 2018 14:10:36 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 1C78920618; Mon, 20 Aug 2018 14:10:26 +0200 (CEST) Date: Mon, 20 Aug 2018 14:10:26 +0200 From: Boris Brezillon To: Naga Sureshkumar Relli Cc: "richard@nod.at" , "absahu@codeaurora.org" , "linux-kernel@vger.kernel.org" , "marek.vasut@gmail.com" , "kyungmin.park@samsung.com" , "frieder.schrempf@exceet.de" , "linux-mtd@lists.infradead.org" , "miquel.raynal@bootlin.com" , "nagasureshkumarrelli@gmail.com" , Michal Simek , "computersforpeace@gmail.com" , "dwmw2@infradead.org" , "peterpandong@micron.com" Subject: Re: [LINUX PATCH v10 2/2] mtd: rawnand: arasan: Add support for Arasan NAND Flash Controller Message-ID: <20180820141026.0e7208ae@bbrezillon> In-Reply-To: References: <1534511964-20342-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <1534511964-20342-3-git-send-email-naga.sureshkumar.relli@xilinx.com> <20180817195903.49963b25@bbrezillon> <20180820105355.11bd50a8@bbrezillon> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; 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 Mon, 20 Aug 2018 10:49:38 +0000 Naga Sureshkumar Relli wrote: > > Thanks for your suggestion and are you saying something like Marvell parser patterns for nfcv1 as below? > > static const struct nand_op_parser marvell_nfcv1_op_parser = NAND_OP_PARSER( > /* Naked commands not supported, use a function for each pattern */ > NAND_OP_PARSER_PATTERN( > marvell_nfc_read_id_type_exec, > NAND_OP_PARSER_PAT_CMD_ELEM(false), > NAND_OP_PARSER_PAT_ADDR_ELEM(false, MAX_ADDRESS_CYC_NFCV1), > NAND_OP_PARSER_PAT_DATA_IN_ELEM(false, 8)), > NAND_OP_PARSER_PATTERN( > marvell_nfc_erase_cmd_type_exec, > NAND_OP_PARSER_PAT_CMD_ELEM(false), > NAND_OP_PARSER_PAT_ADDR_ELEM(false, MAX_ADDRESS_CYC_NFCV1), > NAND_OP_PARSER_PAT_CMD_ELEM(false), > NAND_OP_PARSER_PAT_WAITRDY_ELEM(false)), > ); > That means, a separate hook for each pattern, is that you are suggesting? Yes.