diff options
author | yong mao <[email protected]> | 2017-03-04 15:10:03 +0800 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2017-03-16 13:24:38 +0100 |
commit | 40ceda09c8c84694c2ca6b00bcc6dc71e8e62d96 (patch) | |
tree | ebd0f88e7a15f7eadcb5721bdfedd946462a99b0 /net/lapb | |
parent | 8ecc34448e24e9e8a8f3a9b37be70b43c6af5288 (diff) |
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]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions