diff options
author | Denis Karpov <ext-denis.2.karpov@nokia.com> | 2009-09-22 19:44:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 10:39:34 -0400 |
commit | abb28e731a751f0b6c293a67b3e564eb0e336d53 (patch) | |
tree | 347a0e9cddcea3413754814e41ec5acd266406cd /drivers/mmc/host | |
parent | 11dd62a741047b9fd1faf37620e2b58595f04ce5 (diff) |
omap_hsmmc: set open drain bit correctly
The code could set the bit to 1 but not reset it to 0.
Signed-off-by: Denis Karpov <ext-denis.2.karpov@nokia.com>
Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Acked-by: Matt Fleming <matt@console-pimps.org>
Cc: Ian Molton <ian@mnementh.co.uk>
Cc: "Roberto A. Foglietta" <roberto.foglietta@gmail.com>
Cc: Jarkko Lavinen <jarkko.lavinen@nokia.com>
Cc: Denis Karpov <ext-denis.2.karpov@nokia.com>
Cc: Pierre Ossman <pierre@ossman.eu>
Cc: Philip Langdale <philipl@overt.org>
Cc: "Madhusudhan" <madhu.cr@ti.com>
Cc: <linux-mmc@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/omap_hsmmc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index 74d506a6ffec..59f001090332 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c | |||
@@ -1118,9 +1118,11 @@ static void omap_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) | |||
1118 | if (do_send_init_stream) | 1118 | if (do_send_init_stream) |
1119 | send_init_stream(host); | 1119 | send_init_stream(host); |
1120 | 1120 | ||
1121 | con = OMAP_HSMMC_READ(host->base, CON); | ||
1121 | if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) | 1122 | if (ios->bus_mode == MMC_BUSMODE_OPENDRAIN) |
1122 | OMAP_HSMMC_WRITE(host->base, CON, | 1123 | OMAP_HSMMC_WRITE(host->base, CON, con | OD); |
1123 | OMAP_HSMMC_READ(host->base, CON) | OD); | 1124 | else |
1125 | OMAP_HSMMC_WRITE(host->base, CON, con & ~OD); | ||
1124 | 1126 | ||
1125 | mmc_host_lazy_disable(host->mmc); | 1127 | mmc_host_lazy_disable(host->mmc); |
1126 | } | 1128 | } |