From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reinhard Arlt Date: Sun, 19 Mar 2006 22:14:47 +0100 Subject: [U-Boot-Users] cfi_flash init got real slow Message-ID: <441DC9C7.5070301@t-online.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello, i have changed the flash support in u-boot for the CPCI750 from a local flash.c to the usage of cfi_flash.c a month ago. With the u-boot version from git from yesterday, flash init take about 20 seconds (it tooks no noticeable time with the last version). This is not acceptable. It is also not acceptable to disable flash protection. The problem is the code, that "invents" this "auto" flash unprotection in the flash_init routine. Please consider, that there are systems out with the env in eeprom, and, by the way, reading the "unlock" variable with the loop for each devive two times is not too good coding style. Please be carefull with changes, that have an impact to other systems. Kind regards Reinhard