]> git.openfabrics.org - ~emulex/infiniband.git/commit
ARM: OMAP: fix erroneous mmc2 clock change on mmc3 setup
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 18 Dec 2011 00:35:47 +0000 (02:35 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 26 Jan 2012 23:54:12 +0000 (15:54 -0800)
commitffa1e4ede453cf92cfcd9f96f9140c21aeb319f7
tree137acb23e4ee97ea1c6b8f8882c3a66b46e7ce04
parent8ef5d844cc3a644ea6f7665932a4307e9fad01fa
ARM: OMAP: fix erroneous mmc2 clock change on mmc3 setup

hsmmc23_before_set_reg() can set MMCSDIO2ADPCLKISEL bit, which
enables internal clock for MMC2. Currently this function is also called
by code handling MMC3, and if .internal_clock is set in platform data
(by default it currently is), it will set MMCSDIO2ADPCLKISEL for MMC2
instead of MMC3 (MMC3 doesn't have such bit so nothing actually needs to
be done). This breaks 2nd SD slot on pandora.

Fix this by changing hsmmc23_before_set_reg() to only handle MMC2.
Note that this removes .remux() call for MMC3, but no board currently
needs it and it's also not called for MMC4 and MMC5.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/hsmmc.c