
Dear Timur Tabi,
In message 4FB12E88.1050906@freescale.com you wrote:
all these board hooks are paper-cutting us to death with unused bloat
I know, and I don't like it either. I hate how our hardware designers are always breaking the "rules", forcing us software developers to hack up our software more and more. The muxing on this chip is a like a cruel joke being played on me. I've even been told that I'm trying too hard to make it work.
I think whoever told you this was right. Let it break.
We cannot add pre- and post-hooks all ever the place for brain-dead designs that need to do this and that before and after doing perfectly things.
It makes no sense adding this to saveenv, because there will be othe rplaces in the code that need to to the same - like if it's NAND flash, you will probabaly need to do the same for all NAND related commands.
cmd_nvedit.c is definitely the wrong place for this.
Best regards,
Wolfgang Denk