Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp191278ybh; Tue, 10 Mar 2020 22:43:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuHjgSNshHfqVPUULFPrtNOdcmeEP0FmzEmVFi6kqnV7Q+Pahujy6OH8JvC7j365KK8BTXC X-Received: by 2002:a9d:4d0d:: with SMTP id n13mr1035264otf.76.1583905379910; Tue, 10 Mar 2020 22:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583905379; cv=none; d=google.com; s=arc-20160816; b=PGQ58aaDSz1y/5Hh7ivQhE6zy95yECcLjPB2jIoYIYFr0HNumkOftpap+nGlzM6Sua TyFPfRc2/BJLvND4q8CgSlzZsLnMooNCG80zBAFHn7xDmV4ySTDakCmje5GVMH8SKRXl 8TBxe91gkQUC/XDsCVY4f/ne0WuVxAyZ5hqBqugCUmhEDt8+AoaZ6i5sPlOSKAaf7nEu /WNTnIyVu4+3CH50d3iDRTdO+IMOGLW/rnoVB2fA4wEIwFlQxyoNVcKPRdIA7CqvtEON Uq/rrgWo/b/qNLV49c8+5d33fiAFENd5dlqWKPIV0pllOgGDkx1ngNbC5V2xLYXIQEZI UVWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:from:message-id:mime-version:subject :cc:to:references:in-reply-to; bh=XlSFeL2dHu8Zbotyc6Gdo+8OKmhOe24uaGTE+rA/jqI=; b=IMxqsv9kl1C7PcgyMvt+/pLYZgpcI8jkohxTVEyFaSzdqTN+4aKZQvG312BUfHEwwc CZ0wGh55Urz6qTQw8B0a6Mlb3o6NPreFDsDM3ApidcTk2K84I1lMA+82jiCrb7OsmF1J MFaNRmK/bJD49FD4PCu3NXXlXhVLh92z6kuXlrIdKeZX2JAzu9ThqiBctl/tbyl2qmP5 euqXjk97qfInlM4Uv+4c7E0D/CO8QiHvF9h7roLF6m4JdZnqYijZwBsB1T3VdjPzKEDq xaYJCBdpYKNBaYJ/K45EoBRZEnEuzlHMpbX+SGl9Q8ZcBGACJh7rhmwckJCp6PH3Wr7K +26w== 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 y139si18395ooa.14.2020.03.10.22.42.47; Tue, 10 Mar 2020 22:42:59 -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 S1728171AbgCKFlC (ORCPT + 99 others); Wed, 11 Mar 2020 01:41:02 -0400 Received: from twhmllg4.macronix.com ([122.147.135.202]:35152 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726472AbgCKFlC (ORCPT ); Wed, 11 Mar 2020 01:41:02 -0400 Received: from twhfm1p2.macronix.com (twhfm1p2.macronix.com [172.17.20.92]) by TWHMLLG4.macronix.com with ESMTP id 02B5eqqO017241; Wed, 11 Mar 2020 13:40:52 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) Received: from MXML06C.mxic.com.tw (mxml06c.macronix.com [172.17.14.55]) by Forcepoint Email with ESMTP id 5E352C261D4C595B36D3; Wed, 11 Mar 2020 13:40:52 +0800 (CST) In-Reply-To: <20200310203310.5fe74c57@collabora.com> References: <1583220084-10890-1-git-send-email-masonccyang@mxic.com.tw> <1583220084-10890-4-git-send-email-masonccyang@mxic.com.tw> <20200310203310.5fe74c57@collabora.com> To: "Boris Brezillon" Cc: allison@lohutok.net, bbrezillon@kernel.org, frieder.schrempf@kontron.de, juliensu@mxic.com.tw, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, miquel.raynal@bootlin.com, rfontana@redhat.com, richard@nod.at, s.hauer@pengutronix.de, stefan@agner.ch, tglx@linutronix.de, vigneshr@ti.com, yuehaibing@huawei.com Subject: Re: [PATCH v3 3/4] mtd: rawnand: Add support manufacturer specific suspend/resume operation MIME-Version: 1.0 X-KeepSent: 5C883176:AD73134D-48258528:000F5185; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3FP4 SHF90 June 10, 2013 Message-ID: From: masonccyang@mxic.com.tw Date: Wed, 11 Mar 2020 13:40:52 +0800 X-MIMETrack: Serialize by Router on MXML06C/TAIWAN/MXIC(Release 9.0.1FP10 HF265|July 25, 2018) at 2020/03/11 PM 01:40:52, Serialize complete at 2020/03/11 PM 01:40:52 Content-Type: text/plain; charset="US-ASCII" X-MAIL: TWHMLLG4.macronix.com 02B5eqqO017241 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, > > diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h > > index bc2fa3c..c0055ed 100644 > > --- a/include/linux/mtd/rawnand.h > > +++ b/include/linux/mtd/rawnand.h > > @@ -1064,6 +1064,8 @@ struct nand_legacy { > > * @lock: lock protecting the suspended field. Also used to > > * serialize accesses to the NAND device. > > * @suspended: set to 1 when the device is suspended, 0 when it's not. > > + * @_suspend: [REPLACEABLE] specific NAND device suspend operation > > + * @_resume: [REPLACEABLE] specific NAND device resume operation > > * @bbt: [INTERN] bad block table pointer > > * @bbt_td: [REPLACEABLE] bad block table descriptor for flash > > * lookup. > > @@ -1119,6 +1121,8 @@ struct nand_chip { > > > > struct mutex lock; > > unsigned int suspended : 1; > > + int (*_suspend)(struct nand_chip *chip); > > + void (*_resume)(struct nand_chip *chip); > > I thought we agreed on not prefixing new hooks with _ ? For [PATCH v2] series, you mentioned to drop the _ prefix of _lock/_unlock only and we finally patched to lock_area/unlock_area. thanks for your time & review. Mason CONFIDENTIALITY NOTE: This e-mail and any attachments may contain confidential information and/or personal data, which is protected by applicable laws. Please be reminded that duplication, disclosure, distribution, or use of this e-mail (and/or its attachments) or any part thereof is prohibited. If you receive this e-mail in error, please notify us immediately and delete this mail as well as its attachment(s) from your system. In addition, please be informed that collection, processing, and/or use of personal data is prohibited unless expressly permitted by personal data protection laws. Thank you for your attention and cooperation. Macronix International Co., Ltd. ===================================================================== ============================================================================ CONFIDENTIALITY NOTE: This e-mail and any attachments may contain confidential information and/or personal data, which is protected by applicable laws. Please be reminded that duplication, disclosure, distribution, or use of this e-mail (and/or its attachments) or any part thereof is prohibited. If you receive this e-mail in error, please notify us immediately and delete this mail as well as its attachment(s) from your system. In addition, please be informed that collection, processing, and/or use of personal data is prohibited unless expressly permitted by personal data protection laws. Thank you for your attention and cooperation. Macronix International Co., Ltd. =====================================================================