Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp880602pxb; Tue, 14 Sep 2021 10:39:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYG+pX1m5iyjoPuVk9LGv05XWo3k5yUCpQQQiozmmIDkM5M2tejnmsOqYjYlvk1UyC3cuZ X-Received: by 2002:a02:7b01:: with SMTP id q1mr7360484jac.81.1631641176615; Tue, 14 Sep 2021 10:39:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631641176; cv=none; d=google.com; s=arc-20160816; b=QQsmbl4gvTAGQbxSwMylRF/6SomPcms2N2ddsZWtDYcId3Fa5wtFIzOjUZZfkNW4Sm xyervq2Nu2KIUgolFqM8cZTvz/vYXf+G/oUZS9oQc2mw7NgSb7XyF4EhgYVGcTeoy1Om DUpld/sbnnlkPZor7LCONSLU2+4sG1LBIegx+p/l1m3M9VljvkjJmH8FABeyRu8fOdAf DACEMGTJedKQivXdPZv8tNl3wlqgCYzLKVB8tZW5n7QmQdAE2fQeIxudDLSsJBuA8kxO NYdP3MWv81sg3YuxP5SUKcHC0D+iDmFgvtt5YJCdg0SM0q8AEBn84aOY4PEU2uitgDJ/ mw5w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=l1El2h4hSZRFsLAyH3XDwQxYnnKkfwlN041/bfA/+X0=; b=ws6F42n0MMh4oCG3mKlaXpWeA5ApbLI+66skv0omP8HFNODQiBYAJdTyzENNNffehx or+Ems2X4SPWqIiiD5Oxw7ZBIEnaoMB9jysdtwBFWoFLsR3XJyd1EmipFTacyM+gjkJz PMPD63ur2Uz09u1vllcylxtf2R3RIWve1HWwnZi+CJ0C5eP8lrP2N9uhUbrJvpQXhK25 LygpAA+rmedrg+u2y4FRqwi0RNGY14DxJwccBBxtnEyLB+fP3LJzm4tbuJ9oaRU4b3J1 7be4mMfb2OII5j+v7Xsnu8nudbCuQsBOSkRvjZjof+VCamKmyoHGvBlu3Z1gMNBnS3aN nL1g== 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 l10si12576175ios.26.2021.09.14.10.39.11; Tue, 14 Sep 2021 10:39:36 -0700 (PDT) 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 S231739AbhINRjB (ORCPT + 99 others); Tue, 14 Sep 2021 13:39:01 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:55123 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbhINRiw (ORCPT ); Tue, 14 Sep 2021 13:38:52 -0400 Received: (Authenticated sender: miquel.raynal@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 3EF1320007; Tue, 14 Sep 2021 17:37:33 +0000 (UTC) From: Miquel Raynal To: Md Sadre Alam , miquel.raynal@bootlin.com, mani@kernel.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: sricharan@codeaurora.org, stable@kernel.org Subject: Re: [PATCH V6] mtd: rawnand: qcom: Update code word value for raw read Date: Tue, 14 Sep 2021 19:37:32 +0200 Message-Id: <20210914173732.167846-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <1630998357-1359-1-git-send-email-mdalam@codeaurora.org> References: MIME-Version: 1.0 X-linux-mtd-patch-notification: thanks X-linux-mtd-patch-commit: b'f60f5741002b9fde748cff65fd09bd6222c5db0c' Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2021-09-07 at 07:05:57 UTC, Md Sadre Alam wrote: > From QPIC V2 onwards there is a separate register to read > last code word "QPIC_NAND_READ_LOCATION_LAST_CW_n". > > qcom_nandc_read_cw_raw() is used to read only one code word > at a time. If we will configure number of code words to 1 in > in QPIC_NAND_DEV0_CFG0 register then QPIC controller thinks > its reading the last code word, since from QPIC V2 onwards > we are having separate register to read the last code word, > we have to configure "QPIC_NAND_READ_LOCATION_LAST_CW_n" > register to fetch data from controller buffer to system > memory. > > Fixes: 503ee5aad430 ("mtd: rawnand: qcom: update last code word register") > Cc: stable@kernel.org > Signed-off-by: Md Sadre Alam Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/fixes, thanks. Miquel