Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4504279ybv; Mon, 17 Feb 2020 00:06:59 -0800 (PST) X-Google-Smtp-Source: APXvYqwQDxpy5hRYhW+AdlEJ7lfEcE+ZsVkfQ38Eq340QNKsG3VnmaFtS7O0B1fQy8LvEE3vvgca X-Received: by 2002:a05:6808:8e1:: with SMTP id d1mr9077770oic.68.1581926819098; Mon, 17 Feb 2020 00:06:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581926819; cv=none; d=google.com; s=arc-20160816; b=ynKx4bK3AknXEWIr//saSDM+xESSE0YjU4E1CWpkcDkc3P+gG3Sw0bpH7jIRHazVUm FkIxRN4ZgO+VdehxDjTPqm/5ZQ5CFCFvxHStFQgg66XAmpHtwdbLKu25aRiheB1AA9Sh GsaQM/pTxuNIU+Whmsqdbzrt4/IaXe6rfUNlJ4JQbZxC9GYopKitfVVcgYnzZgA8rqCL avO4mglBlc+CmMQ5fXSe3bzvjTp8OQB6CssQ9cwxczdiK/zzAAn1DIyENamn4xhs11zb +XFnW3cEg1hRQLzSaFGW/qFWapuN410CALp3SKiBiKqS14lLd2J22EbMA0LtdoJZ6TFU elEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:date:from :message-id:mime-version:subject:cc:to:references:in-reply-to; bh=eNSHxJJme6nskCqWbvCJf6ChZnjqqwtpuR/iEdOLKeo=; b=Nj1gHdDAIaVKtHK0pkUEoBhJGthBtnb3AZ5ewEuBqzJV/a8B7p1YwcQzEzeCmDnjId FbPoKDK1cFTBT+N2LsEc1tkCboQeoKNNBEsKXRMMRGQkNgUlsTRhnqtTCbQ0ZUVd1g7r OYh/tH2hZBFB12XtIz+5xlv0S7kqVhyav2nnDGY9eTsk+7EbtaHztpXiMPb3IeDvL8pf rqb5dBMZ6LbLwwpDlQkPfGa++DNYiWumERptzIfV9EKFKXUro3/twStX8Zzxv38sXM3d UpRUFjgIlVS6jADsCjublMzLccOiLWLV/cab8aYNaMDW7Xhxw84th8du1e0NypNUikqF mFcw== 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 j2si6969528otk.164.2020.02.17.00.06.47; Mon, 17 Feb 2020 00:06:59 -0800 (PST) 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 S1727213AbgBQIF0 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Feb 2020 03:05:26 -0500 Received: from twhmllg4.macronix.com ([211.75.127.132]:23339 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726808AbgBQIFZ (ORCPT ); Mon, 17 Feb 2020 03:05:25 -0500 Received: from twhfm1p2.macronix.com (twhfm1p2.macronix.com [172.17.20.92]) by TWHMLLG4.macronix.com with ESMTP id 01H85KGV065118; Mon, 17 Feb 2020 16:05:20 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) Received: from MXML06C.mxic.com.tw (mxml06c.mxic.com.tw [172.17.14.55]) by Forcepoint Email with ESMTP id 9F2C7D893E53A71B2A1F; Mon, 17 Feb 2020 16:05:20 +0800 (CST) In-Reply-To: <20200109174159.1737067f@xps13> References: <1572256527-5074-1-git-send-email-masonccyang@mxic.com.tw> <1572256527-5074-2-git-send-email-masonccyang@mxic.com.tw> <20200109174159.1737067f@xps13> To: "Miquel Raynal" Cc: bbrezillon@kernel.org, computersforpeace@gmail.com, dwmw2@infradead.org, juliensu@mxic.com.tw, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, marek.vasut@gmail.com, richard@nod.at, vigneshr@ti.com Subject: Re: [PATCH v2 1/4] mtd: rawnand: Add support manufacturer specific lock/unlock operatoin MIME-Version: 1.0 X-KeepSent: EFE7D559:94EF04D5-48258511:002C29D3; type=4; name=$KeepSent X-Mailer: Lotus Notes Release 8.5.3FP4 SHF90 June 10, 2013 Message-ID: From: masonccyang@mxic.com.tw Date: Mon, 17 Feb 2020 16:05:19 +0800 X-MIMETrack: Serialize by Router on MXML06C/TAIWAN/MXIC(Release 9.0.1FP10 HF265|July 25, 2018) at 2020/02/17 PM 04:05:20, Serialize complete at 2020/02/17 PM 04:05:20 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8BIT X-MAIL: TWHMLLG4.macronix.com 01H85KGV065118 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Miquel, > > /* Set default functions */ > > static void nand_set_defaults(struct nand_chip *chip) > > { > > @@ -5782,8 +5810,8 @@ static int nand_scan_tail(struct nand_chip *chip) > > mtd->_read_oob = nand_read_oob; > > mtd->_write_oob = nand_write_oob; > > mtd->_sync = nand_sync; > > - mtd->_lock = NULL; > > - mtd->_unlock = NULL; > > + mtd->_lock = nand_lock; > > + mtd->_unlock = nand_unlock; > > mtd->_suspend = nand_suspend; > > mtd->_resume = nand_resume; > > mtd->_reboot = nand_shutdown; > > diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h > > index 4ab9bcc..2430ecd 100644 > > --- a/include/linux/mtd/rawnand.h > > +++ b/include/linux/mtd/rawnand.h > > @@ -1136,6 +1136,9 @@ struct nand_chip { > > const struct nand_manufacturer *desc; > > void *priv; > > } manufacturer; > > + > > + int (*_lock)(struct nand_chip *chip, loff_t ofs, uint64_t len); > > + int (*_unlock)(struct nand_chip *chip, loff_t ofs, uint64_t len); > > Kernel documentation is missing here. > > Also please fix kbuildtest robot warnings. okay, will fix both ! > > With all this done, please add my: > Reviewed-by: Miquel Raynal > > Thanks, > Miqu?l thanks for your time & comments. 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. =====================================================================