From: Daniel Drake Date: Thu, 27 Jun 2013 15:46:29 +0000 (-0400) Subject: sdhci-pxav3: Fix runtime PM initialization X-Git-Tag: v3.11-rc1~50^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0dcaa2499b7d111bd70da5b0976c34210c850fb3;p=pandora-kernel.git sdhci-pxav3: Fix runtime PM initialization Commit bb691ae464b77d30e74c66480e98d74e88d6b194 breaks boot on OLPC XO-4, it hangs somewhere inside sdhci_add_host. When pm_runtime_set_autosuspend_delay() was being called, the device's usage counter was 0, causing the PM layer to runtime-suspend the device. We then went on to call sdhci_add_host() on a suspended device, which hung. Fix this by making the driver consistent with the omap_hsmmc driver, both in terms of runtime PM initialization and error handling. Now the device is not runtime-suspended until we exit the probe routine. Signed-off-by: Daniel Drake Signed-off-by: Chris Ball --- Reading git-diff-tree failed