• Damien Le Moal's avatar
    libata-core: Allow longer timeout for drive spinup from PUIS · 974e0a45
    Damien Le Moal authored
    When spinning up a drive from powered on standby mode (PUIS),
    SETFEATURES_SPINUP is executed with the default timeout used
    for any SETFEATURES subcommand, that is 5+10 seconds. The
    total 15s is too short for some drives to complete spinup
    (e.g. drives with a large indirection table stored on media),
    resulting in ata_dev_read_id to fail twice on the execution
    of SETFEATURES_SPINUP. For this feature, allow a larger
    default timeout of 30 seconds. However, in the same spirit
    as with the timeout of other feature subcommands, do not
    ignore ata_probe_timeout if it is set).
    Signed-off-by: default avatarDamien Le Moal <damien.lemoal@hgst.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    974e0a45
libata-core.c 180 KB