From: Ulf Hansson Date: Mon, 10 Jun 2013 15:03:37 +0000 (+0200) Subject: mmc: core: Validate suspend prerequisites for SDIO at SUSPEND_PREPARE X-Git-Tag: v3.11-rc1~50^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=810caddba42a54fe5db4e2664757a9a334ba359c;p=pandora-kernel.git mmc: core: Validate suspend prerequisites for SDIO at SUSPEND_PREPARE This patch moves the validation for all the suspend prerequisites to be done at SUSPEND_PREPARE notification. Previously in the SDIO case parts of the validation was done from mmc_suspend_host. This patch invents a new pre_suspend bus_ops callback and implements it for SDIO. Returning an error code from it, will mean at SUSPEND_PREPARE notification, the card will be removed before proceeding with the suspend sequence. Signed-off-by: Ulf Hansson Tested-by: Jaehoon Chung Signed-off-by: Chris Ball --- Reading git-diff-tree failed