From bb400d2120bd253d73661c452b18485d2d5b42dd Mon Sep 17 00:00:00 2001 From: Roger Tseng Date: Wed, 21 Jan 2015 18:09:21 +0800 Subject: [PATCH] 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-format-patch failed