omap_hsmmc: Change while(); loops with finite version