Merge branch 'for-4.11' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
[sfrench/cifs-2.6.git] / drivers / ata / pata_falcon.c
index 78264082a4cfd257022f65ab117315c29391a919..5b0c57d1c59fdf39057fe2073644fb57ce314f43 100644 (file)
@@ -54,7 +54,7 @@ static unsigned int pata_falcon_data_xfer(struct ata_queued_cmd *qc,
        bool swap = 1;
 
        if (dev->class == ATA_DEV_ATA && cmd && cmd->request &&
-           cmd->request->cmd_type == REQ_TYPE_FS)
+           !blk_rq_is_passthrough(cmd->request))
                swap = 0;
 
        /* Transfer multiple of 2 bytes */