Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1348091pxb; Thu, 28 Jan 2021 14:13:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJywT5y3JF3PPtA7ahSZLtd6HrvprZ2jcnmQ/ie/V6BR3f62VFEXIEo8ZoxMmr8Il1zQX1sN X-Received: by 2002:a17:906:7e49:: with SMTP id z9mr1566506ejr.447.1611872014363; Thu, 28 Jan 2021 14:13:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611872014; cv=none; d=google.com; s=arc-20160816; b=bNR29I3txp7S1G3PfXTBPd6eqDM7t/f7tXTxBK/oWRtnqkODkQBq+7aO/SWOGwLaMu lfvLHIflor1qXWO7Yw1zCj/y8kYiLZJntl/9CsE2sbugxyGZ88Knkqv82WVfkiLn+I0u bipDOG/lOGanNkmQy3CTzA0nHQkJ4crb4n0WsQurg9zVCM2ye+H4+kiXczInJH1nRvcf ry+c1Cs5Bood1XuxpmAt7n+oeCPdgKREkM42ot5hSQOiRngvs0/UaNAcdcfBRey1FDsD affNuUcO9DNGNxbGZlnjNtIR3PL3XAetiGcF3PJX3HheN1uDq1TSaW5vSliCoXg9VlT6 P59g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=MlghQq01XjWwejIkhPZodefwi/o5xSyAiUpjQDaBTP8=; b=hJCXxauOvFhUMIwdIrvb1YtWRz/3bOQ0NYpEcvdoDoVwYT24yU7aQk1jyr8oIDHd6k +E7trDfPKPc/8Hhbt5VGF4XP/AxIYKh24ShQ4oXo6EGnBT0CmvNUBPML0cinjXI4+eTk L6/iYtS3SwIPWo9P+nHwOzpLUxW8BujOXK7rt97y4Zpc+FQsIPU1biMYhbKvu7k1VrbL MBaU49K4vhNn1+FQd6rWGMPAFnrx0aGwQKZwVqvg1Dpf26K/JYFz1lHJ3aUe/yMCJcpw wikDnXQbH3+edXDulSxaU0yy/2eUADfm8KIdiSOMKYmztNmsBU+HVTeckbdNvfTQMIWL sbKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hs9si3211697ejc.78.2021.01.28.14.13.10; Thu, 28 Jan 2021 14:13:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231195AbhA1WL6 convert rfc822-to-8bit (ORCPT + 99 others); Thu, 28 Jan 2021 17:11:58 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:32915 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbhA1WL5 (ORCPT ); Thu, 28 Jan 2021 17:11:57 -0500 X-Originating-IP: 86.210.203.150 Received: from xps13 (lfbn-tou-1-972-150.w86-210.abo.wanadoo.fr [86.210.203.150]) (Authenticated sender: miquel.raynal@bootlin.com) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id A951F40007; Thu, 28 Jan 2021 22:11:11 +0000 (UTC) Date: Thu, 28 Jan 2021 23:11:10 +0100 From: Miquel Raynal To: mdalam@codeaurora.org Cc: manivannan.sadhasivam@linaro.org, richard@nod.at, vigneshr@ti.com, boris.brezillon@collabora.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, sricharan@codeaurora.org Subject: Re: [PATCH V3] mtd: rawnand: qcom: update last code word register Message-ID: <20210128231110.64266932@xps13> In-Reply-To: <769ea3fe77eab9b37d863251e97bcb29@codeaurora.org> References: <1610251305-20792-1-git-send-email-mdalam@codeaurora.org> <20210114165325.3d510355@xps13> <769ea3fe77eab9b37d863251e97bcb29@codeaurora.org> Organization: Bootlin X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, mdalam@codeaurora.org wrote on Fri, 29 Jan 2021 03:18:46 +0530: > On 2021-01-14 21:23, Miquel Raynal wrote: > > Hello, > > > > Md Sadre Alam wrote on Sun, 10 Jan 2021 > > 09:31:45 +0530: > > > >> From QPIC version 2.0 onwards new register got added to > > > > a > > > >> read last codeword. This change will update the same. > > > > the? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > Please reword this sentence. > > Fixed this in V4 patch. > > > >> For first three code word READ_LOCATION_n register will be > >> use.For last code word READ_LOCATION_LAST_CW_n register will be > >> use. > > > > "For the first three codewords, READ_LOCATION_n registers will be used. > > The last codeword register will be accessed through > > READ_LOCATION_LAST_CW_n." > > > > Also, please specify what these registers store. > > The location register is mainly use for reading controller > buffer via BAM mode. The bits of the register "NAND_READ_LOCATION_LAST_CW_n, n=0..4" > as follow: Perhaps what I do not understand is: when is this "last_cw" register more useful than the previous set? > [9:0]-bits : (OFFSET) This bit defines the offset from the buffer base address to be picked up for DMA. > [25:16]-bits: (SIZE) This bit of every register will define the size of the chunk for DMA. > 31-bit : (LAST) If this bit is set, the controller takes the particular register to specify the last chunk > of data made available for DMA. This chunk is part of the internal buffer of the controller. > > > Thanks, Miquèl