• Tejun Heo's avatar
    libata: implement fast speed down for unverified data transfer mode · 76326ac1
    Tejun Heo authored
    It's very likely that the configured data transfer mode is the wrong
    one if device fails data transfers right after initial data transfer
    mode configuration (including NCQ on/off and xfermode).  libata EH
    needs to speed down fast before upper layers give up on probing.
    
    This patch implement fast speed down rules to handle such cases
    better.  Error occured while data transfer hasn't been verified
    trigger fast back-to-back speed down actions until data transfer
    works.
    
    This change will make cable mis-detection and other initial
    configuration problems corrected before partition scanning code gives
    up.
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    76326ac1
libata-eh.c 73.7 KB