From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Thu, 06 Dec 2012 12:40:12 +0100 Subject: [U-Boot] [PATCH v2 5/7] mtd/st_smi: Write to flash in a tight loop In-Reply-To: <276b3fa86b7171e21eefd4fdf4af9c246280393b.1354783388.git.vipin.kumar@st.com> References: <276b3fa86b7171e21eefd4fdf4af9c246280393b.1354783388.git.vipin.kumar@st.com> Message-ID: <50C0841C.8070208@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 On 12/06/2012 09:47 AM, Vipin Kumar wrote: > The write loop is checking for dest_addr alignment with page size. This > sometimes leads to smi controller coming out of write mode and eventually the > next write failing with ERF1 being set. > > To avoid this, write to flash in a tight loop and write bytewise to also support > not word aligned data bytes to be written. Additionally, enable burst mode > before this loop so that the controller does not deselect the chip if the > transfer is finished. > > Signed-off-by: Vipin Kumar Acked-by: Stefan Roese Thanks, Stefan