This series includes one refactoring suggested by Marek and the removal of the busy waiting loops which was requested by Pantelis.
I didn't have much idea what timeouts to use. The Linux function sunxi_mmc_oclk_onoff() uses a timeout of 2000msecs. This function corresponds to the u-boot function mmc_update_clk() which busy waits for 0xfffff iterations. So I have translated a busy loop of 0xfffff to 2000msecs and 0xffff to 120 (roughly 2000/16). These timeouts work for me on cubietruck to read and save the env as well as to read kernel + dtb from the mmc card. I expect this is very dependent on the specific board and SD card being used though, so any testing would be appreciated. Ian. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
