diff options
author | Andy Shevchenko <[email protected]> | 2011-05-06 12:14:06 +0300 |
---|---|---|
committer | Chris Ball <[email protected]> | 2011-07-21 10:35:03 -0400 |
commit | 5934df2f10a48d048fafe0d3c8b242a7c9106e69 (patch) | |
tree | 0a7321ab6a3a55187284cb7d72fcc1342acebb96 /net/lapb/lapb_out.c | |
parent | e0c7f99b863b485ad0cde371ea1f62ec8ff70c5d (diff) |
mmc: omap_hsmmc: fix a few bugs when setting the clock divisor
There are two pieces of code which are similar, but not the same.
Each of them contains a bug.
The SYSCTL register should be read before writing to it in
omap_hsmmc_context_restore() to retain the state of the reserved bits.
Before setting the clock divisor and DTO bits the value from the SYSCTL
register should be masked properly. We were lucky to have no problems
with DTO bits. So, make sure we have clear DTO bits properly in
omap_hsmmc_set_ios().
Additionally get rid of msleep(1). The actual time is rarely higher
than 30us on OMAP 3630.
The resulting pieces of code are refactored into the
omap_hsmmc_set_clock() function.
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Adrian Hunter <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions