Received: by 10.192.165.148 with SMTP id m20csp4289688imm; Tue, 8 May 2018 06:14:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqEKCGyRLL+yvqgXw9g1PQq6ZUDGBQIqFpbPpFLgUwItmkk1Hiv6ddABK28Ect+kObdYd8Z X-Received: by 10.98.7.75 with SMTP id b72mr32786042pfd.133.1525785245179; Tue, 08 May 2018 06:14:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525785245; cv=none; d=google.com; s=arc-20160816; b=CQmrd3ono8sae6yjMrpnqan//0NDKvgaqff/KmjSeWfaNdSHRvnbjPIusgtiRv4GPO jwjMf3kzZFkS/oEDC9t7L0yKEADWeaNZ+XDrIBJGE/SvA34uFKSkknVg4QhCJR4Nytuv t2Jbc3yIpPw7KpXFfL06FG+8lCwIdZtsz6ltk+rw1e95OAdEraEDvQvEpNXpyfSddLcc ooFcY38M4X7aY4Djhh6iTWfUWyebef6kyGbfWkDBSOqTSfCvmvH+VFwmBlGOC3bi1RG2 unxXRJeyIjdy7DQBZyj7X7IaIlJ1iA21qx85FF/Oj4kp27PwQ6Wb16475LutL41UboOj 7gmw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=aQ1VcJUYamH14HhtUrkpg/PuLlqfNJusGqd38k9Lvzk=; b=Szb0hol7E8lheZxcql41nH0LxL2JTj+2fpZJayrmZJMODc+5m+SLV98BC842r9/qC0 Qb33mg129Y6goQRWGjqxOpRfj2X6nzOt3F3eGWsimDObAncDk+ycYMFdVnEuUxrk8xKm B5LpWLuhEE5vly8fdkTmagSAf+eg+PciEFPU7oG1c4RUkntClsFIc61+k3RQpRe1KVeL oF2swEiCvhwqWjF27/6FFUAmilQ24Y9A7nnbfA+wMMX09/6G/uVqcj006iMfH1Rol+Ab CAplc2ziBRXS+YtVFdTncK9YIYFLRFUVtQVLThJHs77lcKSafw7hdySmyVsd23beqr4w 0p3A== 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 q4-v6si19546188pgn.685.2018.05.08.06.13.49; Tue, 08 May 2018 06:14:05 -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 S1754864AbeEHNNW (ORCPT + 99 others); Tue, 8 May 2018 09:13:22 -0400 Received: from mail.bootlin.com ([62.4.15.54]:53228 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752191AbeEHNNV (ORCPT ); Tue, 8 May 2018 09:13:21 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 01545207CC; Tue, 8 May 2018 15:13:19 +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 windsurf.home (LFbn-TOU-1-408-85.w86-206.abo.wanadoo.fr [86.206.234.85]) by mail.bootlin.com (Postfix) with ESMTPSA id 991B1200FB; Tue, 8 May 2018 15:13:08 +0200 (CEST) Date: Tue, 8 May 2018 15:13:09 +0200 From: Thomas Petazzoni To: Jane Wan Cc: Boris.Brezillon@bootlin.com, miquel.raynal@bootlin.com, dwmw2@infradead.org, computersforpeace@gmail.com, richard@nod.at, marek.vasut@gmail.com, yamada.masahiro@socionext.com, prabhakar.kushwaha@nxp.com, shawnguo@kernel.org, jagdish.gediya@nxp.com, shreeya.patel23498@gmail.com, ties.bos@nokia.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] mtd: rawnand: fsl_ifc: use bit-wise majority to recover the contents of ONFI parameter Message-ID: <20180508151309.40a78259@windsurf.home> In-Reply-To: <1525710855-8159-1-git-send-email-Jane.Wan@nokia.com> References: <1525710855-8159-1-git-send-email-Jane.Wan@nokia.com> Organization: Bootlin (formerly Free Electrons) X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.32; x86_64-redhat-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 Hello, On Mon, 7 May 2018 09:34:15 -0700, Jane Wan wrote: > Per ONFI specification (Rev. 4.0), if all parameter pages have invalid > CRC values, the bit-wise majority may be used to recover the contents of > the parameter pages from the parameter page copies present. > > Signed-off-by: Jane Wan Minor nit: the commit title contains "fsl_ifc", but this commit doesn't change anything in the fsl_ifc driver, it fixes the NAND core. Best regards, Thomas -- Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com