aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-scsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r--drivers/ata/libata-scsi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 264ae60e3fd8..4bb268b9aaeb 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -824,6 +824,9 @@ static void ata_scsi_sdev_config(struct scsi_device *sdev)
824 * requests. 824 * requests.
825 */ 825 */
826 sdev->max_device_blocked = 1; 826 sdev->max_device_blocked = 1;
827
828 /* set the min alignment */
829 blk_queue_update_dma_alignment(sdev->request_queue, ATA_DMA_PAD_SZ - 1);
827} 830}
828 831
829static void ata_scsi_dev_config(struct scsi_device *sdev, 832static void ata_scsi_dev_config(struct scsi_device *sdev,
@@ -878,7 +881,7 @@ int ata_scsi_slave_config(struct scsi_device *sdev)
878 if (dev) 881 if (dev)
879 ata_scsi_dev_config(sdev, dev); 882 ata_scsi_dev_config(sdev, dev);
880 883
881 return 0; /* scsi layer doesn't check return value, sigh */ 884 return 0;
882} 885}
883 886
884/** 887/**