]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sdio: Add empty bus-level suspend/resume callbacks
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 2 Dec 2012 13:48:50 +0000 (14:48 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 6 Dec 2012 18:55:04 +0000 (13:55 -0500)
commit7ae539d5562e40b4816b1349540030baa3ac49c2
treeb73bdeb24d8ae2444480f8c0572f6c17f2f5168b
parent17906983f8838d2045839b9271dd566369dbd117
mmc: sdio: Add empty bus-level suspend/resume callbacks

Suspend methods provided by SDIO drivers are not supposed to be called by
the PM core.  Instead, when the SDIO core gets to suspend a device's
ancestor, it calls the device driver's suspend routine.  However, the PM
core executes suspend callback routines directly for device drivers whose
bus types don't provide suspend callbacks.  In consequece, because the
SDIO bus type doesn't provide a suspend callback, the SDIO drivers'
suspend routines will be executed by the PM core (which shouldn't
happen).

To prevent this from happening, add empty system suspend/resume callbacks
for the SDIO bus type.

An analogous change had been made already by commit (5813948 mmc: sdio:
Use empty system suspend/resume callbacks at the bus level), but then it
was reverted inadvertently by commit (96292d3 mmc: sdio: Fix PM_SLEEP
related build warnings) that attempted to fix build warnings introduced
by commit 5813948.

Reported-by: NeilBrown <neilb@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sdio_bus.c