Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5997633ybc; Wed, 27 Nov 2019 13:08:09 -0800 (PST) X-Google-Smtp-Source: APXvYqzlOAjZKy27duZSaWOT2udz0dMYdJwiF6ummAeZ1FcNaK6XbpauktcMyqgCGGEnjbhXDIu2 X-Received: by 2002:a17:906:1f12:: with SMTP id w18mr4365461ejj.63.1574888889304; Wed, 27 Nov 2019 13:08:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574888889; cv=none; d=google.com; s=arc-20160816; b=CZHmylnNmZQbErEgwQ90JcNCE8LyoxSQxoV6tYP8R7nLql3GZL7kgtkAsmUkmsnDOg N8EB2J+BouI1FEyNl+Nozw+8DekCb6Hb8C0wEhVwyT60jaw/My/HdG53Uk5DqklFVmre z6W98GTiGhSqvu8wX0ay0gLsmKGrxXs5pu3yntCj/XKh6b4vY3xPV24wJK9weGSG5wk7 jzc+9Ed10ye073DLBT9HHqjv5/X5YO3JxWaaz2f9I+iaC+FKpBKY/R12vxNOBcmVLLWX ZErMcX0dKaEpNAl8/sDe1g5vJ3yDoMYhIdItxgkAbdcBlFFCBdiVXSA7O8ElusCubayk rQIw== 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=BM3v8EM/IUjW6YBorN6B4I/lE2BVKCRJh1qudJTuhOU=; b=1An4EVBeL5HmKvBUVy9pKt28Rwnn6lLmRdjuq0fpohY+kGzuS5/sg+MpT1yMnVRQun ztKZyvp+nE/o7MFKb17J85cAuhkewya5fZrLq+t7K3V5ThzuxjEM5bKNos7Y/IpOQzLb cydExhp566nkYihLEb4WtRJC2wPoq8JRZruJ71ZKDr3xi5lF+Hfc3bx5BdfMDL46IjqE bqz7hltsXf5QD19UzYAeE4oc0i4ixZnOMCiRPnl5Eia34KVCEWBoAtZ7P6BCgvNDo3Q+ qdb6dr/KXqXVE+QkqLsIldqpeuS5VKEOTG6accZVRryofV8rkaxEgJzYx5bLbfM3+HGV EtsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2cJupqUu; 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 n6si10053005ejk.160.2019.11.27.13.07.46; Wed, 27 Nov 2019 13:08:09 -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=2cJupqUu; 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 S1728252AbfK0VEk (ORCPT + 99 others); Wed, 27 Nov 2019 16:04:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:58172 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730714AbfK0VEi (ORCPT ); Wed, 27 Nov 2019 16:04:38 -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 58E92215F1; Wed, 27 Nov 2019 21:04:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574888677; bh=kqAp3QBxVhcqTGJGRtkpTNDA19iAjS9CSm45alVTbgM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2cJupqUuzDAP8POlmmnB8GEN46i+pwiRBKlKkert/cvjrsIQvslv66mGnoDymFY/n C1YFTV8gQ5LtRoyLH/SWVJzgcDzXslyevTGlABW1en2cYxCW1HGQLso9KI6v9PDF1k U3twfU/f4p5W9hgOif5tKUHEdkLL7Kw1V6uyCziE= 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 226/306] scsi: mpt3sas: Fix driver modifying persistent data in Manufacturing page11 Date: Wed, 27 Nov 2019 21:31:16 +0100 Message-Id: <20191127203131.550624748@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 97f35194093362a63b33caba2485521ddabe2c95 ] Currently driver is modifying both current & NVRAM/persistent data in Manufacturing page11. Driver should change only current copy of Manufacturing page11. It should not modify the persistent data. So removed the section of code where driver is modifying the persistent data of Manufacturing page11. 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_config.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpt3sas_config.c b/drivers/scsi/mpt3sas/mpt3sas_config.c index d29a2dcc7d0ec..9b01c5a7aebd9 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_config.c +++ b/drivers/scsi/mpt3sas/mpt3sas_config.c @@ -692,10 +692,6 @@ mpt3sas_config_set_manufacturing_pg11(struct MPT3SAS_ADAPTER *ioc, r = _config_request(ioc, &mpi_request, mpi_reply, MPT3_CONFIG_PAGE_DEFAULT_TIMEOUT, config_page, sizeof(*config_page)); - mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM; - r = _config_request(ioc, &mpi_request, mpi_reply, - MPT3_CONFIG_PAGE_DEFAULT_TIMEOUT, config_page, - sizeof(*config_page)); out: return r; } -- 2.20.1