From: Roger Tseng Date: Wed, 21 Jan 2015 10:09:21 +0000 (+0800) Subject: mfd: rtsx_usb: Defer autosuspend while card exists X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~46^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb400d2120bd253d73661c452b18485d2d5b42dd;p=pandora-kernel.git mfd: rtsx_usb: Defer autosuspend while card exists A card insertion happens after the lastest polling before reader is suspended may never have a chance to be detected. Under current 1-HZ polling interval setting in mmc_core, the worst case of such undetectablility is about 1 second. To further reduce the undetectability, detect card slot again in suspend method and defer the autosuspend if the slot is loaded. The default 2 second autosuspend delay of USB subsystem should let the next polling detects the card. Signed-off-by: Roger Tseng Signed-off-by: Lee Jones --- Reading git-diff-tree failed