Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp737330ybc; Sat, 16 Nov 2019 07:50:01 -0800 (PST) X-Google-Smtp-Source: APXvYqx2i9Xlkss2vgWdBoQbf4Zt9E7g+g6QAfS6YxJJwOHIc9o6+aOU0tlM2tEWT7/0UABTTLNK X-Received: by 2002:a17:906:a388:: with SMTP id k8mr10371526ejz.223.1573919401654; Sat, 16 Nov 2019 07:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573919401; cv=none; d=google.com; s=arc-20160816; b=KAQ9ViZBTuFIMn8hjVsi51mtoPq9kUXonzoZWFy8vWlIfySLWd+vsQA/fwXDQAK9il l7LKPegZKjuvQlCfnxbBY81zGEmzJ4eRxjRJzPQd9/zGoO7gRFXMB5IzN0ZH+wy55kLC i8ZrdrAV2NiRlQJWq6MkNWfYvncpYm06bQTY7LsVIgkyZQBB2FkHgNzpixFUgsReldS4 JOMoxBexuYt8h3fwFm0kaMFOivdFJ9+QLG5tuU5nUWfhSxxuS6wt4ucu8eHIJy1zdnxS m9OxZ+QOPCVbAz7ffPs6HubEkyTBb5XTtIB08JKaaMilPlC+4yiizP34lKloHPibCteZ Ocuw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=30d9i9uZqNsTWA6WVOR135jDHAVtZuvF6r/sIp8hW3o=; b=tdkbgo47r1v7fQU+GKq0BSMEsusZPXTna9Xsx+QXYRxm9KMsXWIPo1RtXwgLJrKk5p E7CeKv29wTFDbSJK74EUmIKcIsGBFWKoZ0LcRiu8Jym3MHxYmCEAxfMbRKLHfpUx5Emb 4Q393vXedVA1bMuuGC5OVrG/kXtb0n8YC0o1VfVgS8j9oa2ckIhX5dXp68TH+EU/+7wS 1lbcTTS4IRoQ3ecAC96MMLF0+ykRejYTLNbD8S/o+9kr5xtE6x7kLRylldAWN+2h8E/9 ATOezayGdFmSe7GBicnXT86O+NJl0KhWdoDtGtZBxydCEblnnyAKrGTmkcGR+KJy8efw WxkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="UG/UxkDK"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si8620384edv.175.2019.11.16.07.49.36; Sat, 16 Nov 2019 07:50:01 -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="UG/UxkDK"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728911AbfKPPrZ (ORCPT + 99 others); Sat, 16 Nov 2019 10:47:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:53254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729495AbfKPPqp (ORCPT ); Sat, 16 Nov 2019 10:46:45 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BC734208A3; Sat, 16 Nov 2019 15:46:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919205; bh=cfIdG14Q63GQOlkA/hZ9JJgBBsfr+CPkNd3cO7cwUs0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UG/UxkDKlkRdLb8YRVqGxp5/XFnl3kx/0PlTTkmRHTVDDhM+pKtalUWb/h2LWzBbr yqpfSKND/AAYg2cO+wV/sg7lAHaPtxORZg0aKC4aMpdfUfYRdWIe8H4fxdF9Oq1wuM GxKApZMymQGIDQoRx8wNcXEFAKwORhaaZSQ97ecs= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Suganath Prabu , Bjorn Helgaas , Andy Shevchenko , "Martin K . Petersen" , Sasha Levin , MPT-FusionLinux.pdl@broadcom.com, linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 208/237] scsi: mpt3sas: Don't modify EEDPTagMode field setting on SAS3.5 HBA devices Date: Sat, 16 Nov 2019 10:40:43 -0500 Message-Id: <20191116154113.7417-208-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore 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