From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com ([192.55.52.93]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XmBHO-0001xc-HB for linux-mtd@lists.infradead.org; Thu, 06 Nov 2014 00:50:27 +0000 Date: Thu, 6 Nov 2014 08:50:37 +0800 From: Huang Shijie To: Zhi Li Subject: Re: mtd: nand: lock unlock function Message-ID: <20141106005036.GA19030@shldeISGChi005.sh.intel.com> References: <20141105205706.GP23619@ld-irv-0074> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: linux-mtd@lists.infradead.org, White Ding , Brian Norris , Huang Shijie , boris.brezillon@free-electrons.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Nov 05, 2014 at 04:00:29PM -0600, Zhi Li wrote: > On Wed, Nov 5, 2014 at 2:57 PM, Brian Norris > wrote: > > + > > > > On Wed, Nov 05, 2014 at 02:31:34PM -0600, Zhi Li wrote: > >> Does any know the reason why there are nand_lock and nand_unlock > >> function in nand_base.c, but > >> > >> mtd->_lock = NULL; > >> mtd->_unlock = NULL; > >> > >> Not set to nand_lock and nand_unlock? > > > > Possible answers: > > > > * Lack of testing > > > > * The LOCK/UNLOCK opcodes are not supported by all vendors > > > > * Even the vendors that support them don't do so consistently (not sure > > about this one; I know Micron supports this in some cases) > > > > * The opcodes aren't even documented (again, I'm not even sure about > > this one; but many Micron datasheets I see don't mention LOCK/UNLOCK. > > I recall that other similar lock/protection implementations are > > secret to some extent, and are intentionally omitted from the > > datasheets) > > Yes, we recently met a problem with micron flash. Need send unlock command. > The datasheet I get from micron > MT29F8G08ABACA, MT29F8G16ABACA, MT29F8G08ABBCA, > MT29F8G16ABBCA, MT29F16G08ADACA, MT29F16G16ADACA, > MT29F16G08ADBCA , MT29F16G16ADBCA > > support it. > But not sure if it is public document. > could you please describe what is the problem? thanks Huang Shijie