]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: do not switch to 1-bit mode if not required
authorOhad Ben-Cohen <ohad@wizery.com>
Tue, 5 Apr 2011 14:43:21 +0000 (17:43 +0300)
committerChris Ball <cjb@laptop.org>
Wed, 25 May 2011 00:59:47 +0000 (20:59 -0400)
commit83eef54e8134cd811b29ec05686dbfe301544bba
tree0e0221f3af9f954bd60e469f94810730899ee374
parent24ae4218f8e7163b698bd94ec8d611efc962f7e5
mmc: do not switch to 1-bit mode if not required

5cb8ed2c followed SDIO spec part E1 section 8, which states that
in case SDIO interrupts are being used to wake up a suspended host,
then it is required to switch to 1-bit mode before stopping the clock.

Before switching to 1-bit mode (or back to 4-bit mode on resume),
make sure that SDIO interrupts are really being used to wake the host.

This is helpful for devices which have an external irq line (e.g.
wl1271), and do not use SDIO interrupts to wake up the host.

In this case, switching to 1-bit mode (and back to 4-bit mode on resume)
is not necessary.

Reported-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sdio.c
include/linux/mmc/host.h