diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2016-01-26 20:44:42 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2016-01-26 20:44:42 -0500 |
commit | 6344a5cd3e8acf6e9823046cebd00b16faacdb1a (patch) | |
tree | c7e7d132543f739e71b897b018ac7c8e1518758c | |
parent | 13b4389143413a1f18127c07f72c74cad5b563e8 (diff) | |
parent | d0eb20a863ba7dc1d3f4b841639671f134560be2 (diff) |
Merge remote-tracking branch 'mkp-scsi/4.5/scsi-fixes' into fixes
-rw-r--r-- | drivers/scsi/hisi_sas/Kconfig | 2 | ||||
-rw-r--r-- | drivers/scsi/sd.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/hisi_sas/Kconfig b/drivers/scsi/hisi_sas/Kconfig index 37a0c7156087..b67661836c9f 100644 --- a/drivers/scsi/hisi_sas/Kconfig +++ b/drivers/scsi/hisi_sas/Kconfig | |||
@@ -1,5 +1,7 @@ | |||
1 | config SCSI_HISI_SAS | 1 | config SCSI_HISI_SAS |
2 | tristate "HiSilicon SAS" | 2 | tristate "HiSilicon SAS" |
3 | depends on HAS_DMA | ||
4 | depends on ARM64 || COMPILE_TEST | ||
3 | select SCSI_SAS_LIBSAS | 5 | select SCSI_SAS_LIBSAS |
4 | select BLK_DEV_INTEGRITY | 6 | select BLK_DEV_INTEGRITY |
5 | help | 7 | help |
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 84fa4c46eaa6..bb669d32ccd0 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -2893,7 +2893,7 @@ static int sd_revalidate_disk(struct gendisk *disk) | |||
2893 | sdkp->opt_xfer_blocks <= SD_DEF_XFER_BLOCKS && | 2893 | sdkp->opt_xfer_blocks <= SD_DEF_XFER_BLOCKS && |
2894 | sdkp->opt_xfer_blocks * sdp->sector_size >= PAGE_CACHE_SIZE) | 2894 | sdkp->opt_xfer_blocks * sdp->sector_size >= PAGE_CACHE_SIZE) |
2895 | rw_max = q->limits.io_opt = | 2895 | rw_max = q->limits.io_opt = |
2896 | logical_to_sectors(sdp, sdkp->opt_xfer_blocks); | 2896 | sdkp->opt_xfer_blocks * sdp->sector_size; |
2897 | else | 2897 | else |
2898 | rw_max = BLK_DEF_MAX_SECTORS; | 2898 | rw_max = BLK_DEF_MAX_SECTORS; |
2899 | 2899 | ||