Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3621895pxb; Mon, 24 Jan 2022 13:43:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8NDcyLn60cB6fg5vjTunJ8l3EdNCUrav1fKLpQ2lIcdVb7D7MkRzbYd+9jxLpBFrj0s2w X-Received: by 2002:a63:1053:: with SMTP id 19mr13126235pgq.478.1643060604714; Mon, 24 Jan 2022 13:43:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060604; cv=none; d=google.com; s=arc-20160816; b=DEC1Ik+lyPDZZOJFNaWGHAX4IXasGyy9r0Uj7IZyRv09Re7CtzOkFJpKE9l8eRtSvB Wc49QPlv+AMvAVHnBpJnudzv7CIpt93Vk7TvXYInSYqlcWDX4IcPSxa8HnNWcRDkRMFc GvXBrjZQJrsSUtoL5i9zm8PKtjVa68PPOJUx/30p9+uKjBkmnp2VLoXUYnoPHkr7Ky91 v0ploueON2I6go9//BWOfuHVkxseEYCJyNa7OkDXr3dVaGjvPQzPcznNVh8xbWNFT8Ou 1yk3w7S9Yi+FsVZLhBu1Sw9WGBmMH4o00+axlV1ygCqSGXx/TbCP7/99weggVgDfhy80 GLuQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vbfD6Wa7wSfCkfKrmoSguFbotr3/xX9+jc1MruYUtU0=; b=0DYy0A178mifHR1we9z/08EZ2mLTcXhxXS25/lDcFtIsrDge3zrGggS4q5pm99AyXG OxYHCpFXswI81vz8Yv/KJTWN+jGvPuYZiH9aHkyKUZZniR7vQyxKTxBOr/6alLTJVsvU X6cvLY+Rr5tCdmxs5bQCWB/p7LSRRQgj29A8dz6GAx3VMMXgHQfiIwYwwh11wehlzj4b 09sBSjZ2ihSz4ImhXftUmE6m7JnQFL/eB2B0kgSbqwZZu6eRjxc+/HmwXs9vVk/FGurl hWuV4csDf5a3NJXCn/B7vxirvR0/AEffPNlF+Jof893E3s9EnhrTxJhpFJCIVM80hq84 omlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LIP4acmL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e24si14369536pgk.219.2022.01.24.13.43.12; Mon, 24 Jan 2022 13:43:24 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LIP4acmL; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1451423AbiAXVWy (ORCPT + 99 others); Mon, 24 Jan 2022 16:22:54 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:51530 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442764AbiAXUzL (ORCPT ); Mon, 24 Jan 2022 15:55:11 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F0056B80CCF; Mon, 24 Jan 2022 20:55:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A9F4C340E5; Mon, 24 Jan 2022 20:55:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057708; bh=+UqKwQ35sgQOM9w62WCDHOz/u6Y8TNzdLyjcPKVz5Ac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LIP4acmLVJBnSoPHNAtwRuYdylaULmXCstLBo3y5rkUbC4N7in2aYZzIWrhuUe3dA 45bCYnAETWgoEQazHy+dFdqQP2ZmlGdRMIc/+MzC9lNtR0AE+Raus/F+q7KmXm9Mi5 UZxWdRlAhA8HxIbchmHC3N5qnC5i2OvpOXK2Pmo8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paul Cercueil , Miquel Raynal Subject: [PATCH 5.16 0020/1039] mtd: rawnand: davinci: Rewrite function description Date: Mon, 24 Jan 2022 19:30:09 +0100 Message-Id: <20220124184125.820352097@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Paul Cercueil commit 0697f8441faad552fbeb02d74454b5e7bcc956a2 upstream. The original comment that describes the function nand_davinci_read_page_hwecc_oob_first() is very obscure and it is hard to understand what it is for. Cc: # v5.2 Fixes: a0ac778eb82c ("mtd: rawnand: ingenic: Add support for the JZ4740") Signed-off-by: Paul Cercueil Signed-off-by: Miquel Raynal Link: https://lore.kernel.org/linux-mtd/20211016132228.40254-3-paul@crapouillou.net Signed-off-by: Greg Kroah-Hartman --- drivers/mtd/nand/raw/davinci_nand.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) --- a/drivers/mtd/nand/raw/davinci_nand.c +++ b/drivers/mtd/nand/raw/davinci_nand.c @@ -372,17 +372,15 @@ correct: } /** - * nand_read_page_hwecc_oob_first - hw ecc, read oob first + * nand_davinci_read_page_hwecc_oob_first - Hardware ECC page read with ECC + * data read from OOB area * @chip: nand chip info structure * @buf: buffer to store read data * @oob_required: caller requires OOB data read to chip->oob_poi * @page: page number to read * - * Hardware ECC for large page chips, require OOB to be read first. For this - * ECC mode, the write_page method is re-used from ECC_HW. These methods - * read/write ECC from the OOB area, unlike the ECC_HW_SYNDROME support with - * multiple ECC steps, follows the "infix ECC" scheme and reads/writes ECC from - * the data area, by overwriting the NAND manufacturer bad block markings. + * Hardware ECC for large page chips, which requires the ECC data to be + * extracted from the OOB before the actual data is read. */ static int nand_davinci_read_page_hwecc_oob_first(struct nand_chip *chip, uint8_t *buf,