From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 12 Mar 2014 11:24:03 +0100 Subject: [U-Boot] [PATCH] cfi_flash: Micron Nor flash don't support read operation after send In-Reply-To: <71CF8D7F32C5C24C9CD1D0E02D52498A770D0BE6@NTXXIAMBX02.xacn.micron.com> References: <71CF8D7F32C5C24C9CD1D0E02D52498A770D0BE6@NTXXIAMBX02.xacn.micron.com> Message-ID: <20140312102403.900B7380334@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Qi Wang ?? (qiwang), In message <71CF8D7F32C5C24C9CD1D0E02D52498A770D0BE6@NTXXIAMBX02.xacn.micron.com> you wrote: > Micron Nor flash don't support read operation after send write command. As below, I understand you attempt to copy data between two different areas on the same NOR device? This is not supported. > If the src address locate in NOR flash, flash_read operation will be failed. > So, read out the data to DRAM before send write command operation. > --- > drivers/mtd/cfi_flash.c | 70 +++++++++++++++++++++++++++++++---------------- > 1 file changed, 46 insertions(+), 24 deletions(-) Thanks, but NAK. If the source address range and the target address range are both in the same NOR flash device, please use a two step approach instead: first copy the data to RAM, then copy from RAM to NOR. No code changes are needed for this. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I wish I had a bronze torc for every user who didn't read the manual. - Terry Pratchett, _The Light Fantastic_