From: Martin K. Petersen Date: Thu, 19 Apr 2018 02:54:59 +0000 (-0400) Subject: scsi: mptsas: Disable WRITE SAME X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f4df47e36ac052e772899b0d141daed1c9b008ae;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git scsi: mptsas: Disable WRITE SAME commit 94e5395d2403c8bc2504a7cbe4c4caaacb7b8b84 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 345f6035599e..f1d93676b0fc 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c @@ -1995,6 +1995,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)