Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp95799imm; Wed, 3 Oct 2018 12:30:51 -0700 (PDT) X-Google-Smtp-Source: ACcGV63ocSyU8bWIikFwqRKcDT+w/ltlbBgAcyvRxCrE8jRvJ4z8wFbWnUjRv1uror4/wxQcyoFc X-Received: by 2002:a63:f050:: with SMTP id s16-v6mr2652280pgj.403.1538595051611; Wed, 03 Oct 2018 12:30:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538595051; cv=none; d=google.com; s=arc-20160816; b=DOcfgVkqIbC3mLadyMSB/V39XXcYkEemoa47SSit/DQW/9T2AKWuPkOFgW12aZjnMp 5bzRVOG2sxzHRHJHb6Z1RCTNpwLlPsCtnHZR/ptix+LBvDHzXHlqwcBbOtYlqTaOhldR moF0SxDMwYtyVKrYl3Ye6HKy2wuLzOva0IpHaaMEkFpATJ/S3YInkGdlYIz2Rps63oFi o5B78s4iWkIs+pz+Q7R/djwZE8e3mkKF90OsHIF0NHqmLzxLpia9jKTCzq1DBnR/ZBqk xj35tYc1JQU+JWMK4L9s6YVGES99QTjd068JI15Gbh/5pfY4fk9+wTGbpkFHpa6V8WrC 1zQw== 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=XONfXh+6MhcZnWN5cwbBjl/0IJNhKrO5TVyou7ogy3U=; b=KT4qGFMRoevc/DPaQDU53PCTQtVXftDBC8bpzB/hKrx/BF1voUljeUyZ/U30aE2cCL EkIIzTCrWaR4bbLdA/AXROoCEiej9HzKqBWiUQTIB1BG6MiEUWM0grFgtRAzXEjpMl2z rJwnz4vvx+MZu238LdXf7Lyk32y9mmWS1itgCLhuwQcTYxAz2z4448YJQQmFhjr5UD3S Ac3uOa2ntP1Y3bKUqUQPjsiS1G3btL/OXs7HWiRxtBoRG8jJrSkT4uP3ifkYtaTAHseM NBg+wGL0Q7XtXaHB20E9neuD3Lf/0p09agelw8WiLVcmgTdvmHedo/nyuWEN9RhCxHqV 0jxg== 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 19-v6si2400018pfq.180.2018.10.03.12.30.35; Wed, 03 Oct 2018 12:30:51 -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 S1727209AbeJDCUK (ORCPT + 99 others); Wed, 3 Oct 2018 22:20:10 -0400 Received: from mail.bootlin.com ([62.4.15.54]:48069 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726884AbeJDCUJ (ORCPT ); Wed, 3 Oct 2018 22:20:09 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 41788207F0; Wed, 3 Oct 2018 21:30:22 +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 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 EB5CB2071E; Wed, 3 Oct 2018 21:30:11 +0200 (CEST) Date: Wed, 3 Oct 2018 21:30:12 +0200 From: Boris Brezillon To: Naga Sureshkumar Relli Cc: , , , , , michals@xilinx.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, nagasuresh12@gmail.com Subject: Re: [LINUX PATCH v11 2/3] mtd: rawnand: Add an option to get sdr timing mode number Message-ID: <20181003213012.021cebed@bbrezillon> In-Reply-To: <1537878031-22253-3-git-send-email-naga.sureshkumar.relli@xilinx.com> References: <1537878031-22253-1-git-send-email-naga.sureshkumar.relli@xilinx.com> <1537878031-22253-3-git-send-email-naga.sureshkumar.relli@xilinx.com> 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 Tue, 25 Sep 2018 17:50:30 +0530 Naga Sureshkumar Relli wrote: > Some NAND controllers needs sdr timing mode value, instead of ^need SDR > timings parameters. i.e the NAND controller will change its operating s/parameters// > mode by just configuring the sdr timing mode number. so add mode parameter ^ So, add a mode field > in struct nand_sdr_timings. ^ to ... > > Signed-off-by: Naga Sureshkumar Relli > --- > Changes in v11: > - None > --- > drivers/mtd/nand/raw/nand_timings.c | 6 ++++++ > include/linux/mtd/rawnand.h | 2 ++ > 2 files changed, 8 insertions(+) > > diff --git a/drivers/mtd/nand/raw/nand_timings.c b/drivers/mtd/nand/raw/nand_timings.c > index ebc7b5f..1ec7a28 100644 > --- a/drivers/mtd/nand/raw/nand_timings.c > +++ b/drivers/mtd/nand/raw/nand_timings.c > @@ -56,6 +56,7 @@ static const struct nand_data_interface onfi_sdr_timings[] = { > .tWHR_min = 120000, > .tWP_min = 50000, > .tWW_min = 100000, > + .mode = 0, > }, > }, > /* Mode 1 */ > @@ -98,6 +99,7 @@ static const struct nand_data_interface onfi_sdr_timings[] = { > .tWHR_min = 80000, > .tWP_min = 25000, > .tWW_min = 100000, > + .mode = 1, > }, > }, > /* Mode 2 */ > @@ -140,6 +142,7 @@ static const struct nand_data_interface onfi_sdr_timings[] = { > .tWHR_min = 80000, > .tWP_min = 17000, > .tWW_min = 100000, > + .mode = 2, > }, > }, > /* Mode 3 */ > @@ -182,6 +185,7 @@ static const struct nand_data_interface onfi_sdr_timings[] = { > .tWHR_min = 80000, > .tWP_min = 15000, > .tWW_min = 100000, > + .mode = 3, > }, > }, > /* Mode 4 */ > @@ -224,6 +228,7 @@ static const struct nand_data_interface onfi_sdr_timings[] = { > .tWHR_min = 80000, > .tWP_min = 12000, > .tWW_min = 100000, > + .mode = 4, > }, > }, > /* Mode 5 */ > @@ -266,6 +271,7 @@ static const struct nand_data_interface onfi_sdr_timings[] = { > .tWHR_min = 80000, > .tWP_min = 10000, > .tWW_min = 100000, > + .mode = 5, > }, > }, > }; > diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h > index efb2345..3bf2cea 100644 > --- a/include/linux/mtd/rawnand.h > +++ b/include/linux/mtd/rawnand.h > @@ -723,6 +723,7 @@ struct nand_ecc_ctrl { > * @tWHR_min: WE# high to RE# low > * @tWP_min: WE# pulse width > * @tWW_min: WP# transition to WE# low > + * @mode: sdr timing mode value @mode: ONFI timing mode > */ > struct nand_sdr_timings { > u64 tBERS_max; > @@ -763,6 +764,7 @@ struct nand_sdr_timings { > u32 tWHR_min; > u32 tWP_min; > u32 tWW_min; > + u8 mode; > }; > > /** With this addressed, you can add Reviewed-by: Boris Brezillon