omap24xx: Fix MMC multiplexer
authorMichael Büsch <mb@bu3sch.de>
Mon, 9 Aug 2010 18:43:20 +0000 (18:43 +0000)
committerMichael Büsch <mb@bu3sch.de>
Mon, 9 Aug 2010 18:43:20 +0000 (18:43 +0000)
SVN-Revision: 22563

target/linux/omap24xx/patches-2.6.35/811-mmc-multiplexer-fixes.patch [new file with mode: 0644]

diff --git a/target/linux/omap24xx/patches-2.6.35/811-mmc-multiplexer-fixes.patch b/target/linux/omap24xx/patches-2.6.35/811-mmc-multiplexer-fixes.patch
new file mode 100644 (file)
index 0000000..37082b8
--- /dev/null
@@ -0,0 +1,18 @@
+---
+ drivers/mfd/menelaus.c |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- linux-2.6.35.orig/drivers/mfd/menelaus.c
++++ linux-2.6.35/drivers/mfd/menelaus.c
+@@ -356,9 +356,9 @@ int menelaus_set_mmc_slot(int slot, int
+               int b;
+               if (enable)
+-                      ret |= 1 << 1;
++                      val |= 1 << 1;
+               else
+-                      ret &= ~(1 << 1);
++                      val &= ~(1 << 1);
+               b = menelaus_read_reg(MENELAUS_MCT_CTRL2);
+               b &= ~0x03;
+               b |= power;