Skip to contentSkip to conversation

doc/README.cfi: Update code snippet for flash_cmd_reset()

PATCH New Robert P. J. Day 1 participant 1 message Dec 29, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc/README.cfi: Update code snippet for flash_cmd_reset()

Minor update in code snippet in the doc file to match source.

---

doc/README.cfi +2 -2
index 81e7cf1..6b8be41 100644
@@ -1,7 +1,7 @@
 The common CFI driver provides this weak default implementation for
 flash_cmd_reset():
 
-void __flash_cmd_reset(flash_info_t *info)
+static void __flash_cmd_reset(flash_info_t *info)
 {
 	/*
 	 * We do not yet know what kind of commandset to use, so we issue
@@ -9,12 +9,12 @@ void __flash_cmd_reset(flash_info_t *info)
 	 * that AMD flash roms ignore the Intel command.
 	 */
 	flash_write_cmd(info, 0, 0, AMD_CMD_RESET);
+	udelay(1);
 	flash_write_cmd(info, 0, 0, FLASH_CMD_RESET);
 }
 void flash_cmd_reset(flash_info_t *info)
 	__attribute__((weak,alias("__flash_cmd_reset")));
 
-
 Some flash chips seems to have trouble with this reset sequence. In this case
 the board specific code can override this weak default version with a board
 specific function. For example the digsy_mtc board equipped with the M29W128GH
Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================