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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,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 809FDC433EF for ; Fri, 17 Sep 2021 18:12:57 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 78EE961041 for ; Fri, 17 Sep 2021 18:12:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 78EE961041 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 60F8A83221; Fri, 17 Sep 2021 20:12:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="P0eLcAiE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 93E0383221; Fri, 17 Sep 2021 20:12:50 +0200 (CEST) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6CC9982D52 for ; Fri, 17 Sep 2021 20:12:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=macroalpha82@gmail.com Received: by mail-ot1-x334.google.com with SMTP id 97-20020a9d006a000000b00545420bff9eso7086127ota.8 for ; Fri, 17 Sep 2021 11:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8hDsuNhv8U9i/pv8W6sJ8CzttHZkBkXfJ9/W64aC/Tc=; b=P0eLcAiEOM3ROYQzgzKOQbb5P95NmULoaYEUut3bWa9288I4rsWIJiqPpYLOAsJGMF byF2xYilB/Rg4UsWqvs/Bl70Ee2Hm9l+NQAoZsKimh4Eyv26ab/V6lcOhSE86jO+u/jp /T2Hl4BmhrhtP7JjSXp9QsVbWHdp9IkYNFxSWaM0fXfWV4FPhoDae1FlgDWL/JJkIzho fcC2IW4XMkoNG+B5Gc1EN+emwFPZFU25zhcPkDO1/4ft73zwBc8sEfUllx9hpDFxGOc5 u5hM2A+8X8Mtt42VjlIZTrlbZRKJ44TjabJG7WbH6847ceL8pK0oYO4EcIDMcoBXV8/z 3C0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=8hDsuNhv8U9i/pv8W6sJ8CzttHZkBkXfJ9/W64aC/Tc=; b=eorIY19SBy+yamgGOqxY8D6PxpaGcFx7eFegGT7SrKtt+7XzZldD73P4jDLQfUyLBP 45tr88bSJaeECkFGGCpLJhRzUYB4+qX2WKDGKWIHyMFMO/wA90FnZhJOWmjGl5mEV5wU 0uFaDb9+OZick6Auj7KOwYj+WkQiTOzr+xMICU+7KWbvqNCG4+F0bkma3xs3gWgEA0TV IUsupvoanZ52H0BVYGUBm3eSFXf/6y0Gm9HRxxJBtbHsjcAF5D7834N6mWYrZ2gAcf15 AxeLMRkBdHj+JlaTISP+J7Z6F0Vk9iUB8GpARUJfD3T1wi3Qg1agXCXY1/sd62c5lHZX hCJw== X-Gm-Message-State: AOAM533rUt39cxMCk1Xc5uohs0PnVJFlORygKgmyOxuCBdJY4nmfAMI9 MEJna5ZmCPkSWVbXuPGkw9lOnHCMqIg= X-Google-Smtp-Source: ABdhPJyB1r3zs2K6GR5p2dMarC41rkPsBY4ic4ECDmBbz/p14RkA4GdPSd8fJAsc2zJhSAYaSQohBA== X-Received: by 2002:a05:6830:353:: with SMTP id h19mr10420327ote.264.1631902365491; Fri, 17 Sep 2021 11:12:45 -0700 (PDT) Received: from wintermute.localdomain (cpe-76-183-134-35.tx.res.rr.com. [76.183.134.35]) by smtp.gmail.com with ESMTPSA id w8sm606578ots.25.2021.09.17.11.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Sep 2021 11:12:44 -0700 (PDT) From: Chris Morgan To: u-boot@lists.denx.de Cc: sjg@chromium.org, miquel.raynal@bootlin.com, jagan@amarulasolutions.com, marek.behun@nic.cz, farhan.ali@broadcom.com, xypron.glpk@gmx.de, Chris Morgan Subject: [RFC 0/2] mtd: Support slc-mode for Toshiba TC58TEG5DCLTA00 Date: Fri, 17 Sep 2021 13:12:32 -0500 Message-Id: <20210917181234.20088-1-macroalpha82@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Chris Morgan Add support for slc-mode implemented in Linux for the Toshiba TC58TEG5DCLTA00 NAND flash found on the NTC CHIP. This requires the addition of a paired-pages scheme, a new parameter for MTD partitions of slc-mode, and setting the correct paired-pages scheme for the TC58TEG5DCLTA00 flash chip. I will likely need some help making sure this is consistent with the quality expected of upstream, as well as solving some remaining issues (such as ubifs partitions not working with slc-mode set). Signed-off-by: Chris Morgan Chris Morgan (2): mtd: Add partial support for Linux slc-mode for MLC NAND mtd: Add pairing info for Toshiba TC58TEG5DCLTA00 NAND drivers/mtd/mtdcore.c | 320 ++++++++++++++++++++++++++++--- drivers/mtd/mtdpart.c | 7 + drivers/mtd/nand/raw/nand_base.c | 59 ++++++ include/linux/mtd/mtd.h | 126 ++++++++++++ include/linux/mtd/partitions.h | 2 + include/mtd/mtd-abi.h | 1 + 6 files changed, 491 insertions(+), 24 deletions(-) -- 2.30.2