Received: by 10.223.185.116 with SMTP id b49csp1018102wrg; Wed, 21 Feb 2018 10:38:55 -0800 (PST) X-Google-Smtp-Source: AH8x224gVF00H7Rzeli5COs75sCHSy3mdPgO8d+J8YQJ7PCu9IC89IZCFf5cIM+axuzd8ywP1T2Q X-Received: by 10.98.137.147 with SMTP id n19mr4210001pfk.193.1519238335537; Wed, 21 Feb 2018 10:38:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519238335; cv=none; d=google.com; s=arc-20160816; b=eg79O8vhfXWvU5muRTor9TB/ZGEOL35ag9KPUZ9fETGcgGleIZUJjV6VKwk+5hFWlp PGPyj4bXeAgwsEaTEP0PtpnPPj49sZdMmf2FMSn6acba3VPqAcPKTpPAza83wDWbGCyk WzkdEuT6O+lCCHe7RFpDGrrVszIwPGWN9tRNyDuZ6yx2AxmpNXIIh94kk/LeVkLFr6Ch sU7FvLRR7/bUFrkPdLG8unTiRIj9dwRvPdaq/Qldw2mySO03DxV1wpmlrRNpkdYzyq/Y IBMy6XI0l03W394EvBYkTPizJQJLcVmBNLOaglE7sJTIR22XWti+BKuXkaFaZaZ+N1JX gYGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ygCTCIq97QRFD3uUgz/oZySp/KITJUmQyURfW+DgHW0=; b=BUvA5wc69a7+XAPBUOH/12mRGbP7ngAAnK6p/oX8Eeiz9rUN3gyeMvJEdiQBx/L9Hg rHXoZWdwB0PrKhm7ttBzpUtW8062qvyVM99NPNaZob8HlpfILN5WyEOXAkJTq6Aj17NY IuiMxZq9o5QMm81DSutfWcoLdUm/Jcqexcw7gtZp0Lfla3WIlKRB7svzwrvE0XJVyh3k s7SgVGFqizRIEXpCyXDVhXAuysqW/c4hhCEv7haoYnpbGEmn8NDQYg1Im9MUsTTP94om rx1RJ38G7qfPYcNtEp0mgQyOP1XC8AYSyVQiFEHdOVnqX3x/bYD72tzWCrXXgOnKjKXK bAqA== 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 k189si1701886pgc.598.2018.02.21.10.38.40; Wed, 21 Feb 2018 10:38:55 -0800 (PST) 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 S1753775AbeBUNMG (ORCPT + 99 others); Wed, 21 Feb 2018 08:12:06 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:45518 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936452AbeBUNMD (ORCPT ); Wed, 21 Feb 2018 08:12:03 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 31D96FCC; Wed, 21 Feb 2018 13:12:03 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Stefan Agner , Boris Brezillon Subject: [PATCH 4.15 142/163] mtd: nand: vf610: set correct ooblayout Date: Wed, 21 Feb 2018 13:49:31 +0100 Message-Id: <20180221124537.974148710@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124529.931834518@linuxfoundation.org> References: <20180221124529.931834518@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stefan Agner commit ea56fb282368ea08c2a313af6b55cb597aec4db1 upstream. With commit 3cf32d180227 ("mtd: nand: vf610: switch to mtd_ooblayout_ops") the driver started to use the NAND cores default large page ooblayout. However, shortly after commit 6a623e076944 ("mtd: nand: add ooblayout for old hamming layout") changed the default layout to the old hamming layout, which is not what vf610_nfc is using. Specify the default large page layout explicitly. Fixes: 6a623e076944 ("mtd: nand: add ooblayout for old hamming layout") Cc: # v4.12+ Signed-off-by: Stefan Agner Signed-off-by: Boris Brezillon Signed-off-by: Greg Kroah-Hartman --- drivers/mtd/nand/vf610_nfc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/drivers/mtd/nand/vf610_nfc.c +++ b/drivers/mtd/nand/vf610_nfc.c @@ -752,10 +752,8 @@ static int vf610_nfc_probe(struct platfo if (mtd->oobsize > 64) mtd->oobsize = 64; - /* - * mtd->ecclayout is not specified here because we're using the - * default large page ECC layout defined in NAND core. - */ + /* Use default large page ECC layout defined in NAND core */ + mtd_set_ooblayout(mtd, &nand_ooblayout_lp_ops); if (chip->ecc.strength == 32) { nfc->ecc_mode = ECC_60_BYTE; chip->ecc.bytes = 60;