Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mmc: mediatek: Fixed bug where clock frequency could be set wrong
This patch can fix two issues: Issue 1: In previous code, div may be overflow when setting clock frequency as f_min. We can use DIV_ROUND_UP to fix this boundary related issue. Issue 2: In previous code, we can not set the correct clock frequency when div equals 0xff. Signed-off-by: Yong Mao <[email protected]> Signed-off-by: Chaotian Jing <[email protected]> Reviewed-by: Daniel Kurtz <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
- Loading branch information