• Roger Tseng's avatar
    mfd: rtsx_usb: Defer autosuspend while card exists · bb400d21
    Roger Tseng authored
    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: default avatarRoger Tseng <rogerable@realtek.com>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    bb400d21
rtsx_usb.c 18.6 KB