Received: by 10.223.185.116 with SMTP id b49csp936764wrg; Wed, 21 Feb 2018 09:17:50 -0800 (PST) X-Google-Smtp-Source: AH8x227T8H5msIK98S3DoJrtbDJpjs4uBEYmPaCBHsKi0VM+z6fR/5i34WALj9Cgl5M0Of/w/hpi X-Received: by 2002:a17:902:1746:: with SMTP id i64-v6mr3737147pli.53.1519233470618; Wed, 21 Feb 2018 09:17:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519233470; cv=none; d=google.com; s=arc-20160816; b=0YHcYOa1C5NCvPVJDXzUcrkMvlENaQde2JXDbD6SarMGZynv2xFDu5GRBsrYQZEbEC D4GRWG9XHHT/054OrSn9T/pe2oU4U/xqB3AxzKVzE359HYp+c9NH61lg3zOLcpKla+Cj cmqN9MxX3Cd/BVQRALX6NAWY4CtRF4jcugfum/1awqoo8UMJc7+1UeloqsAGAiM/WJaI PYN3yvZhnYizW6UP60j5IxLcIgK53ehL8Km1xe60LxtWHQ34obJjOmc8yf4F/qQi0FcT GZxKtYbKAUn7hdHTMGOYmltqhkVbd83eXY3inR7wC0V40PZ17R36Id9uWphM6ZDH/q/h NpbA== 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=7Yh02EqzXGKssB8s/W5rRmb4uTuOdBqgT9i6t+y/db0=; b=XyIVxeeb4s0t+zmG1Vda1td9Z9cmj20erdlLAdtOJLrVpfs+tnNVzGiYakC/I7tSef Rg4vD8RHQsjEP5XiKOWGpGQsfB+UF+5RwTvcPk/t4+QQjdugz87YUAACAU+srODRS5WF +xMCfAg6Ah3BRhe4eeFJ+zGREPlFmxzAtBa3jRVoqzBt/hXfg53Wh4lvkaKFU047ymdz MJJv+HdZylF/3hI3Zl92vXu4REeO8trSluS9uChejoB4zbZXBDgY7HdKBxBCYDvZBCiY 7+XQ+rR77+C+juBS9kwuGAoK7W7v3KUrZd5vUPL9hNMyT6IVQkvYJsWYIocSCKzGiT7M shUA== 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 f9-v6si1864643plk.94.2018.02.21.09.17.35; Wed, 21 Feb 2018 09:17:50 -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 S934191AbeBUMzC (ORCPT + 99 others); Wed, 21 Feb 2018 07:55:02 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34288 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934114AbeBUMy7 (ORCPT ); Wed, 21 Feb 2018 07:54:59 -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 707C01171; Wed, 21 Feb 2018 12:54:58 +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.9 24/77] mtd: nand: vf610: set correct ooblayout Date: Wed, 21 Feb 2018 13:48:33 +0100 Message-Id: <20180221124433.204290521@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180221124432.172390020@linuxfoundation.org> References: <20180221124432.172390020@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.9-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;