The driver was working before this, but adding the changes provides a proper and better sdmmc controller inner state.