• T
    libata: implement fast speed down for unverified data transfer mode · 76326ac1
    Tejun Heo 提交于
    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: NTejun Heo <htejun@gmail.com>
    Signed-off-by: NJeff Garzik <jeff@garzik.org>
    76326ac1
libata-eh.c 73.7 KB