From patchwork Tue Mar 3 07:21:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mason Yang X-Patchwork-Id: 1248129 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=mxic.com.tw Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=gE2OiodB; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48WpPm67gfz9sQt for ; Tue, 3 Mar 2020 18:22:52 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=LpvWc0HObiv3LMBGfAajvlGWsVKTu0zVs5AzGqhh/jM=; b=gE2 OiodBO3Y33a6qhrwcxGbiOL5Q2vOxVLlxKTC+XC8HFhEkruLxAM+XmAgLLtBx2ohs0UVL+1PV5Hdq Ff06gtA2NY2qzV9SrkHmDKIuGysmRq93NygPrPmydiABVGLBhyP1aS6PXRA+2/4EFRUTTIWnne/V3 8ZWMvGojccd7FuJVuJotelPq8cwhvlr3wZ59iHtlXzDZfroEJtHEqK4V4DEvhvr2z5+StrYa6LKUX sbgRk0UgqlIsrxHxvJ2OeAe73qgKRLLcdTRa0UXnOc2LVmRvddQ/IFIEYxoxHNDF2QOeQYLbowB3E NqOoOP9KHXHVfanvc7xsX5rHzgqZILQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1j91sz-0008E0-RS; Tue, 03 Mar 2020 07:22:37 +0000 Received: from twhmllg3.macronix.com ([122.147.135.201]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j91sw-0008BJ-SY for linux-mtd@lists.infradead.org; Tue, 03 Mar 2020 07:22:36 +0000 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG3.macronix.com with ESMTP id 0237LRL9023026; Tue, 3 Mar 2020 15:21:27 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) From: Mason Yang To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com Subject: [PATCH v3 0/4] mtd: rawnand: Add support Macronix Block Portection & Deep Power Down mode Date: Tue, 3 Mar 2020 15:21:20 +0800 Message-Id: <1583220084-10890-1-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 X-MAIL: TWHMLLG3.macronix.com 0237LRL9023026 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200302_232235_355251_1428FFBB X-CRM114-Status: UNSURE ( 4.91 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.3 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [122.147.135.201 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: bbrezillon@kernel.org, juliensu@mxic.com.tw, s.hauer@pengutronix.de, yuehaibing@huawei.com, linux-kernel@vger.kernel.org, stefan@agner.ch, rfontana@redhat.com, linux-mtd@lists.infradead.org, frieder.schrempf@kontron.de, tglx@linutronix.de, Mason Yang , allison@lohutok.net MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hi, Changelog v3: patch nand_lock_area/nand_unlock_area. fixed kbuidtest robot warnings and reviewer's comments. v2: Patch nand_lock() & nand_unlock() for MTD->_lock/_unlock default call-back function replacement. Patch nand_suspend() & nand_resume() with manufacturer specific operation. v1: Patch manufacturer post_init for MTD->_lock/_unlock & MTD->_suspend/_resume replacement. thanks for your time & review. Mason Mason Yang (4): mtd: rawnand: Add support manufacturer specific lock/unlock operation mtd: rawnand: Add support Macronix Block Protection function mtd: rawnand: Add support manufacturer specific suspend/resume operation mtd: rawnand: Add support Macronix deep power down mode drivers/mtd/nand/raw/nand_base.c | 47 +++++++++-- drivers/mtd/nand/raw/nand_macronix.c | 146 +++++++++++++++++++++++++++++++++++ include/linux/mtd/rawnand.h | 9 +++ 3 files changed, 197 insertions(+), 5 deletions(-)