• Adrian Hunter's avatar
    mmc: queue: let host controllers specify maximum discard timeout · e056a1b5
    Adrian Hunter authored
    Some host controllers will not operate without a hardware
    timeout that is limited in value.  However large discards
    require large timeouts, so there needs to be a way to
    specify the maximum discard size.
    
    A host controller driver may now specify the maximum discard
    timeout possible so that max_discard_sectors can be calculated.
    
    However, for eMMC when the High Capacity Erase Group Size
    is not in use, the timeout calculation depends on clock
    rate which may change.  For that case Preferred Erase Size
    is used instead.
    Signed-off-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
    Signed-off-by: default avatarChris Ball <cjb@laptop.org>
    e056a1b5
queue.c 8.53 KB