From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E92FC4361B for ; Thu, 10 Dec 2020 03:51:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DA53C23A02 for ; Thu, 10 Dec 2020 03:51:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731737AbgLJDvW (ORCPT ); Wed, 9 Dec 2020 22:51:22 -0500 Received: from twhmllg3.macronix.com ([211.75.127.131]:54571 "EHLO TWHMLLG3.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731587AbgLJDut (ORCPT ); Wed, 9 Dec 2020 22:50:49 -0500 Received: from TWHMLLG3.macronix.com (localhost [127.0.0.2] (may be forged)) by TWHMLLG3.macronix.com with ESMTP id 0BA3Nr3R012276 for ; Thu, 10 Dec 2020 11:23:53 +0800 (GMT-8) (envelope-from ycllin@mxic.com.tw) Received: from localhost.localdomain ([172.17.195.95]) by TWHMLLG3.macronix.com with ESMTP id 0BA3MURe011440; Thu, 10 Dec 2020 11:22:30 +0800 (GMT-8) (envelope-from ycllin@mxic.com.tw) From: YouChing Lin To: miquel.raynal@bootlin.com, vigneshr@ti.com Cc: juliensu@mxic.com.tw, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, ycllin@mxic.com.tw Subject: [PATCH 0/2] mtd: spinand: add support for MX35LFxG24AD & Fix bug of BCH Date: Thu, 10 Dec 2020 11:22:07 +0800 Message-Id: <1607570529-22341-1-git-send-email-ycllin@mxic.com.tw> X-Mailer: git-send-email 1.9.1 X-MAIL: TWHMLLG3.macronix.com 0BA3MURe011440 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series adds support for MX35LF1/2/4G24AD, are 3V, 1G/2G/4Gbit serial SLC NAND flash device (without on-die ECC). And fix a bug of BCH, the size of calc_buf/code_buf is limited to 64 bytes. If someone uses Flash with pagesize: 4096 (for example: MX35LF4G24AD, eccbyte: 104 bytes), some errors will occur during the read operation. So we correct the size of calc_buf/code_buf to mtd->oobsize. This series has been tested on Xilinx Zynq PicoZed FPGA board. Thanks for your time. YouChing Lin (2): mtd: nand: ecc-bch: Fix the size of calc_buf/code_buf of the BCH mtd: spinand: macronix: Add support for MX35LFxG24AD drivers/mtd/nand/ecc-sw-bch.c | 4 ++-- drivers/mtd/nand/spi/macronix.c | 27 +++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) -- 1.9.1