Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp343780ybh; Wed, 18 Mar 2020 00:43:06 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv1sTRkcQDRbxwmYT3Y2HT8kaH2J0XQKOyYpC+SZT4Vhrx3mCv8qzw4BQbMdcm2QPBOLYQD X-Received: by 2002:a05:6830:104:: with SMTP id i4mr2819882otp.346.1584517386848; Wed, 18 Mar 2020 00:43:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584517386; cv=none; d=google.com; s=arc-20160816; b=rpHqtZXgXNrn2flUhcDWpghWrQ5zWvKYAppalqil1vniNPEQhbiGxyjSZ5SMILPRJq g2u3UC4NzdjYNyYwzXxVsx4ld8kf8F5kLTJxeGlmkLaSV0BNANnXL11+zkVaOpZdmYq7 Iy5iKQOJRpJSp+NUwotTWqwXsgYv615RFYHNt+S754Am5jrJnGEKtJXS0EkPQ4Moxrhp zBdg7Twoosn8g5z6jmWEdp+W8dz6O5dIW042vJn8T+Urjexr2ZdpfnvUwMm2jYQV1xuQ BZ10FQFZgxpIWHi5wPrQhTuKUxiZ9DwU+y1wxw6nIXYhspCHiMZq3+N42C4QkhIiiCq1 vp0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=HmaGcIGFg5vIe3zsJ7H7xAoWNaDiM9JS6uH3v6WmYg8=; b=Rfpfqx4/kZovtmJz5Rs++QC/sAr/047Ga7DxYA/ATUxzB+VDo0yyj2x2b1tdbGpwQv i/P+52k/sQaVhEAEB5Jdem/i5pMuBwRV1TVdEFuwniNBbw9h3y8bdiRyd/K/ZOhwijEC 3FBddoJ/XvL2gGnO9GXq6nCCFVkDo5ZDWSqfMstphtrFmuCdm12r0yVoPRZ6igEVtW0I t3sdauhzFtciQnpfFujVvtw10IDA+cuJk3LXHq4VFKUFIyYZb9z6ThO911y1OtzLsYds 2PtQmyGeM60tnN3uIR1TwsJDZpjnjjb4nFBWD60vJM53o6XN+FN/M6nCtuzL4cn2AcGW eTRA== 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 a5si3017007oii.181.2020.03.18.00.42.54; Wed, 18 Mar 2020 00:43:06 -0700 (PDT) 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 S1726802AbgCRHmi (ORCPT + 99 others); Wed, 18 Mar 2020 03:42:38 -0400 Received: from twhmllg4.macronix.com ([211.75.127.132]:57377 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726452AbgCRHmi (ORCPT ); Wed, 18 Mar 2020 03:42:38 -0400 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG4.macronix.com with ESMTP id 02I7gTO9041137; Wed, 18 Mar 2020 15:42:29 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) From: Mason Yang To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, bbrezillon@kernel.org Cc: frieder.schrempf@kontron.de, tglx@linutronix.de, stefan@agner.ch, juliensu@mxic.com.tw, s.hauer@pengutronix.de, linux-kernel@vger.kernel.org, allison@lohutok.net, linux-mtd@lists.infradead.org, yuehaibing@huawei.com, Mason Yang Subject: [PATCH v4 0/2] mtd: rawnand: Add support for manufacturer specific suspend/resume operation Date: Wed, 18 Mar 2020 15:42:26 +0800 Message-Id: <1584517348-14486-1-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 X-MAIL: TWHMLLG4.macronix.com 02I7gTO9041137 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Changelog v4: Patch nand_suspend() return error code to the upper layer, removed _ prefix of suspend/resme hooks and kbuildtest robot tag. v3: patch nand_lock_area/nand_unlock_area. fixed kbuidtest robot warnings and reviewer's comments as below: - Patched the Kdoc for both lock_area/unlock_area and _suspend/_resume - Created a helper to read default protected value (after device power on) for protection function detection. - patched the prefix for Macronix deep power down command, 0xB9 - Patched the description of mxic_nand_resume() and add a small sleeping delay. - Created a helper for deep power down device part number detection. 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 (2): mtd: rawnand: Add support for manufacturer specific suspend/resume operation mtd: rawnand: macronix: Add support for deep power down mode drivers/mtd/nand/raw/nand_base.c | 17 +++++++-- drivers/mtd/nand/raw/nand_macronix.c | 74 ++++++++++++++++++++++++++++++++++++ include/linux/mtd/rawnand.h | 4 ++ 3 files changed, 91 insertions(+), 4 deletions(-) -- 1.9.1