• T
    libata: improve ata_down_xfermask_limit() · 458337db
    Tejun Heo 提交于
    Make ata_down_xfermask_limit() accept @sel instead of @force_pio0.
    @sel selects how the xfermask limit will be adjusted.  The following
    selectors are defined.
    
    * ATA_DNXFER_PIO	: only speed down PIO
    * ATA_DNXFER_DMA	: only speed down DMA, don't cause transfer mode change
    * ATA_DNXFER_40C	: apply 40c cable limit
    * ATA_DNXFER_FORCE_PIO	: force PIO
    * ATA_DNXFER_FORCE_PIO0	: force PIO0 (same as original with @force_pio0 == 1)
    * ATA_DNXFER_ANY	: same as original with @force_pio0 == 0
    
    Currently, only ANY and FORCE_PIO0 are used to maintain the original
    behavior.  Other selectors will be used later to improve EH speed down
    sequence.
    Signed-off-by: NTejun Heo <htejun@gmail.com>
    Signed-off-by: NJeff Garzik <jeff@garzik.org>
    458337db
libata-eh.c 54.8 KB