From: Martin K. Petersen Date: Thu, 19 Apr 2018 02:54:59 +0000 (-0400) Subject: scsi: mptsas: Disable WRITE SAME X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=94e5395d2403c8bc2504a7cbe4c4caaacb7b8b84;p=openwrt%2Fstaging%2Fblogic.git scsi: mptsas: Disable WRITE SAME First generation MPT Fusion controllers can not translate WRITE SAME when the attached device is a SATA drive. Disable WRITE SAME support. Reported-by: Nikola Ciprich Cc: Signed-off-by: Martin K. Petersen --- diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 231f3a1e27bf..86503f60468f 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -1994,6 +1994,7 @@ static struct scsi_host_template mptsas_driver_template = { .cmd_per_lun = 7, .use_clustering = ENABLE_CLUSTERING, .shost_attrs = mptscsih_host_attrs, + .no_write_same = 1, }; static int mptsas_get_linkerrors(struct sas_phy *phy)