Flash programming progress countdown.
PATCH 1/2 Flash programming progress countdown.
---
OK, that was a fun way to waste way too much time. :-)
The resulting implementation counts down from n/5 to 1 (9..1, normally):
Copy to Flash... 9....8....7....6....5....4....3....2....1....done
I made it configurable by CONFIG_FLASH_SHOW_PROGRESS which is expected to be an integer. When jdl completes his mission and we have a kernel-style Kconfig, I envision an integer configuration with a recommended value of 45.
I added a description to the README in what seemed to be the logical place, at the end of the flash configs. If my logic doesn't match your logic, holler and I'll move it.
Patch 2/2 will be enabling on the MPC8360EMDS board. I don't know how the community would like to address this, I'm assuming it is best to let the board maintainers pick this up rather than slamming it into the boards that have CFI flash (grep says 407 boards).
README | 5 +++++ drivers/mtd/cfi_flash.c | 44 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 48 insertions(+), 1 deletions(-)
README +5 -0
@@ -1945,6 +1945,11 @@ Configuration Settings: is useful, if some of the configured banks are only optionally available. +- CONFIG_FLASH_SHOW_PROGRESS + If defined (must be an integer), print out countdown + digits and dots. Recommended value: 45 (9..1) for 80 + column displays, 15 (3..1) for 40 column displays. + - CFG_RX_ETH_BUFFER: Defines the number of ethernet receive buffers. On some ethernet controllers it is recommended to set this value
drivers/mtd/cfi_flash.c +43 -1
79 lines not on this page · raw message
Signature · 1 line
1.5.4.1