Received: by 2002:a17:90a:37e8:0:0:0:0 with SMTP id v95csp4229589pjb; Mon, 21 Oct 2019 02:07:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqyeG28CwtloCksaUhy/OSn9rGEmJvc+vk6/L5dvQ6lx76JLXKyMB2Qbv3pCZC4SG80P4KYr X-Received: by 2002:a17:906:e290:: with SMTP id gg16mr1761577ejb.280.1571648865276; Mon, 21 Oct 2019 02:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571648865; cv=none; d=google.com; s=arc-20160816; b=M+fcehf6Um1bM0Z8999w6ggHRW5VvdPjvyjOH9V7xBX4ARKsOtkH1vOpbSLaZCErKB huz6Y4IYCU8a4OObVHYZcz1QVmRMNWYEAQhk9p6ysXGO8pdFlJYFxHsDvVBxbRIpgAR4 hFTRxeDfqauOPOiTfwElxNPJrBVZi2QPhRhKD+FUeq9GN1VIVTU4Ttj4u5qma+onSDn7 TLgDtlHanduyQ2HGW0bbJEiiudUxMTYv8vLoTTp0Cv3zRUlXWfGzUjUpfiHB3IQ/o28V m+IeEjlbCFlehgLaSmD1Aqzhy/j8u6nKLOotASmgS3BjpSFGrbyK/V89tGsgoRUXEU8I s5IQ== 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=2GcR5YQsTplgOfqMu9t2wJI2oA0+fQE5dTWAU2+QNv8=; b=yOH3lI5G97HtvihzLrXJzFtmldLCPKLqpgHqNxNfD1ad7sOcWZpKD5bbMnQqtEsISr Si3xj2SK0N5MQ8VIvvNr6eefSd2S2uPBPw3/Gjjb91p193QL+PaJ/l1CCiitqGxO+mz5 fTXNpom8B9QlxjoimbQeyXdtRP0VWj/8fYouE7HgASPl9TxE4Zz0KeEx02bqlrEPixcl SB9ad2F526tWhzHyDi6mfM9pIRMIHPtBOZYTXNyWXczqZoQAJuCYb9Q95Mo82PFkKcyK f8o2/Y+fcHY/GIW+vXFrvAIDbAyya4DKrRPaoyb0Bip79tFGlBNfXCSRwIKRIDuuWQQj uvxQ== 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 f47si9720638ede.263.2019.10.21.02.07.16; Mon, 21 Oct 2019 02:07:45 -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 S1727110AbfJUJHI (ORCPT + 99 others); Mon, 21 Oct 2019 05:07:08 -0400 Received: from twhmllg4.macronix.com ([122.147.135.202]:11536 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726181AbfJUJHI (ORCPT ); Mon, 21 Oct 2019 05:07:08 -0400 Received: from twhfmnt1.mxic.com.tw (twhfm1p2.macronix.com [172.17.20.92]) by TWHMLLG4.macronix.com with ESMTP id x9L96xaO034780; Mon, 21 Oct 2019 17:06:59 +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 70FE86F08B94F96178FA; Mon, 21 Oct 2019 17:07:00 +0800 (CST) In-Reply-To: <20191021105632.3fa7b3ce@collabora.com> References: <1568793387-25199-1-git-send-email-masonccyang@mxic.com.tw> <1568793387-25199-2-git-send-email-masonccyang@mxic.com.tw> <20191007104511.5aa7b8f2@xps13> <20191007112442.783e4fbe@xps13> <20191008170249.06bd45ce@xps13> <20191021094435.78f4b16e@collabora.com> <20191021105632.3fa7b3ce@collabora.com> To: "Boris Brezillon" Cc: bbrezillon@kernel.org, computersforpeace@gmail.com, dwmw2@infradead.org, frieder.schrempf@kontron.de, gregkh@linuxfoundation.org, juliensu@mxic.com.tw, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, marcel.ziswiler@toradex.com, marek.vasut@gmail.com, "Miquel Raynal" , richard@nod.at, tglx@linutronix.de, vigneshr@ti.com Subject: Re: [PATCH RFC 2/3] mtd: rawnand: Add support Macronix Block Protection function MIME-Version: 1.0 X-KeepSent: B0158E79:2CC08A0A-4825849A:0031CDE3; 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, 21 Oct 2019 17:07:02 +0800 X-MIMETrack: Serialize by Router on MXML06C/TAIWAN/MXIC(Release 9.0.1FP10 HF265|July 25, 2018) at 2019/10/21 PM 05:07:00, Serialize complete at 2019/10/21 PM 05:07:00 Content-Type: text/plain; charset="US-ASCII" X-MAIL: TWHMLLG4.macronix.com x9L96xaO034780 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris, > > Assign mtd lock/unlock/is_locked hooks to the generic wrappers in > nand_scan_tail(): > > mtd->_lock = nand_lock; > mtd->_unlock = nand_unlock; > mtd->_is_locked = nand_is_locked; > > Seriously, we've almost implemented the thing for you with all the > details we've given. At some point you have to look more closely at how > things are done/designed in the NAND framework if you want to > contribute core changes. I'm fine giving hints but we're far beyond > that point here. got your point & idea. thanks a lot for your time & opinions. 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. =====================================================================