Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5997672ybc; Wed, 27 Nov 2019 13:08:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzVZFum1NPan8Sl0QobAOc4NLzTV2AgDKjD9BhTHqsZVH/u36FILZPAnIE7TLmpCmD8irQg X-Received: by 2002:a17:906:8054:: with SMTP id x20mr49965864ejw.68.1574888892064; Wed, 27 Nov 2019 13:08:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888892; cv=none; d=google.com; s=arc-20160816; b=tPahNec2RdbqGoRJDZTGI8Tr2mxzN4UztbazC2bwIEZnZvZ+Bft2XlzXJOKqthm5pR Yf+tj5V8dElCfzrOo18QP0ZjoV5w1mf2taXZE71BZKRZxukeaJgyCCWtM1sW75/Xx+xx oUvBoK1ocNDkj/TRWzgEgdpBEBCfHtx7LIpkMYEnaTigFflm6Kr/3UVhy3s8pGNZlvbx OA2rpRsTLFogyXAwbye+hxVsOXnV5Aa2Cle8mXqILr5YIssoBAYS/RC1IEARTOmTfiEr rcK+9HixJd/KJ3sBi/uTJeWTMkkfUIb8vZqTqScwCwkQvn9VfPkPE+UZLoVT6PARN51Q 64NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=30d9i9uZqNsTWA6WVOR135jDHAVtZuvF6r/sIp8hW3o=; b=RDAFAOHjEmQVjQlzNBZAPVG0pHvMUAeaYGz8MYgs3IP+xZs4uQuG3VU9Ht3jLBTJDJ 9w8+20we2XoU41N7fSl1rOLUBrGH4WPJHl/fqLGNuoleB7jp1EA+qo+l4ZjIBQaDBqZL C6UP4bGDpPy7Mncwa3AhCk/4R7c6RksbnEZ2AFv2XI5Qit6EB15zlCjPFfYNJVs8+ddO 6PUJQmnf8A1XbrpJMIrb/r7dkDXay/bPSXC0gXHaChWZzyIOeozAdQvApDSZQAUX3aK4 ZyFPEJT85MNxGmo10VkaSJH7hajLzLC73fH7G5fZQlFzzrSdWuc2hd4D+aDL6Y8zQpLX LHsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BU73gKnt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f25si10700776edq.132.2019.11.27.13.07.48; Wed, 27 Nov 2019 13:08:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BU73gKnt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732184AbfK0VEm (ORCPT + 99 others); Wed, 27 Nov 2019 16:04:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:58144 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732161AbfK0VEf (ORCPT ); Wed, 27 Nov 2019 16:04:35 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D32FA2086A; Wed, 27 Nov 2019 21:04:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888675; bh=cfIdG14Q63GQOlkA/hZ9JJgBBsfr+CPkNd3cO7cwUs0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BU73gKnt0lq14Tq11yr7+Dr6Njsr6dlrY9MwR2F+q/p14QexyehyAUL0qZx1gch+t 31JjMhokKDa/0w02w+Af04VTpN4NazRuPZ03rDQG9eF3+tMV6J/BiIC/2h3E/My0ls XrSviNHmwOt6m3LPM4/8LOK1QErLnPSYsrkQJQ0Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Suganath Prabu , Bjorn Helgaas , Andy Shevchenko , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.19 225/306] scsi: mpt3sas: Dont modify EEDPTagMode field setting on SAS3.5 HBA devices Date: Wed, 27 Nov 2019 21:31:15 +0100 Message-Id: <20191127203131.484067241@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127203114.766709977@linuxfoundation.org> References: <20191127203114.766709977@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Suganath Prabu [ Upstream commit 6cd1bc7b9b5075d395ba0120923903873fc7ea0e ] If EEDPTagMode field in manufacturing page11 is set then unset it. This is needed to fix a hardware bug only in SAS3/SAS2 cards. So, skipping EEDPTagMode changes in Manufacturing page11 for SAS 3.5 controllers. Signed-off-by: Suganath Prabu Reviewed-by: Bjorn Helgaas Reviewed-by: Andy Shevchenko Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/mpt3sas/mpt3sas_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index d2ab52026014f..2c556c7fcf0dc 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c @@ -4117,7 +4117,7 @@ _base_static_config_pages(struct MPT3SAS_ADAPTER *ioc) * flag unset in NVDATA. */ mpt3sas_config_get_manufacturing_pg11(ioc, &mpi_reply, &ioc->manu_pg11); - if (ioc->manu_pg11.EEDPTagMode == 0) { + if (!ioc->is_gen35_ioc && ioc->manu_pg11.EEDPTagMode == 0) { pr_err("%s: overriding NVDATA EEDPTagMode setting\n", ioc->name); ioc->manu_pg11.EEDPTagMode &= ~0x3; -- 2.20.1