From patchwork Fri Dec 7 22:28:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Don Brace X-Patchwork-Id: 10718947 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D62CB109C for ; Fri, 7 Dec 2018 22:28:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C5BB22DA7C for ; Fri, 7 Dec 2018 22:28:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B93632F73E; Fri, 7 Dec 2018 22:28:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5556A2DA7C for ; Fri, 7 Dec 2018 22:28:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726110AbeLGW2f (ORCPT ); Fri, 7 Dec 2018 17:28:35 -0500 Received: from mail-eopbgr770043.outbound.protection.outlook.com ([40.107.77.43]:64916 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726076AbeLGW2e (ORCPT ); Fri, 7 Dec 2018 17:28:34 -0500 Received: from MWHPR19CA0019.namprd19.prod.outlook.com (2603:10b6:300:d4::29) by BLUPR19MB0402.namprd19.prod.outlook.com (2a01:111:e400:c470::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.21; Fri, 7 Dec 2018 22:28:31 +0000 Received: from BN1AFFO11FD021.protection.gbl (2a01:111:f400:7c10::110) by MWHPR19CA0019.outlook.office365.com (2603:10b6:300:d4::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1404.17 via Frontend Transport; Fri, 7 Dec 2018 22:28:31 +0000 Authentication-Results: spf=pass (sender IP is 208.19.99.221) smtp.mailfrom=microsemi.com; linux.vnet.ibm.com; dkim=none (message not signed) header.d=none;linux.vnet.ibm.com; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.99.221 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.99.221; helo=AUSMBX1.microsemi.net; Received: from AUSMBX1.microsemi.net (208.19.99.221) by BN1AFFO11FD021.mail.protection.outlook.com (10.58.52.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.1404.13 via Frontend Transport; Fri, 7 Dec 2018 22:28:30 +0000 Received: from AUSMBX2.microsemi.net (10.201.34.32) by AUSMBX1.microsemi.net (10.201.34.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1531.3; Fri, 7 Dec 2018 16:28:29 -0600 Received: from [127.0.1.1] (10.238.32.34) by ausmbx2.microsemi.net (10.201.34.32) with Microsoft SMTP Server id 15.1.1531.3 via Frontend Transport; Fri, 7 Dec 2018 16:28:29 -0600 Subject: [PATCH 04/20] smartpqi: correct host serial num for ssa From: Don Brace To: , , , , , , , , , , , CC: Date: Fri, 7 Dec 2018 16:28:29 -0600 Message-ID: <154422170921.1218.9790759541295356684.stgit@brunhilda> In-Reply-To: <154422079293.1218.12539829857034151457.stgit@brunhilda> References: <154422079293.1218.12539829857034151457.stgit@brunhilda> User-Agent: StGit/0.19-dirty MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.99.221;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(7916004)(396003)(376002)(136003)(39860400002)(346002)(2980300002)(189003)(199004)(47776003)(106466001)(230700001)(53936002)(81166006)(103116003)(8936002)(81156014)(9686003)(478600001)(69596002)(8676002)(68736007)(50466002)(4326008)(97736004)(33716001)(2486003)(186003)(76176011)(26005)(33896004)(305945005)(77096007)(2201001)(476003)(486006)(2906002)(5660300001)(446003)(11346002)(126002)(86362001)(106002)(58126008)(110136005)(23676004)(16576012)(356004)(44832011)(316002)(336012)(921003)(1121003)(83996005)(2101003);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR19MB0402;H:AUSMBX1.microsemi.net;FPR:;SPF:Pass;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BN1AFFO11FD021;1:2XpA35WyBcc5n/LTWYdmBXTljBbFnUm1oRQSN+ALHFPAInxzRGgZD5gKPqLQbK/pEZ/VEGjvKYatHPyHy5UUEcCcNRMbUwX0PSuKI1GnDjrj2X7eTySswdUTpLgVnGXG X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a351cf70-3e43-400b-15a6-08d65c935106 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4608076)(2017052603328)(7153060);SRVR:BLUPR19MB0402; X-Microsoft-Exchange-Diagnostics: 1;BLUPR19MB0402;3:zJtyxPLnNUPGXgDn+OmjtBIlBMOlZ9hXlS81ghmntwjjf/pr85skXOfUfgpQTxfafOoUA808vlvTvy2ld/UwOr6+nAwgwfdR90ylZEGgkvPRigXmP2RKmg2bBkAeULEsm6kY8zcYLFYIrG4I/GWLcnSoXCA2CdhPjBdwry78yizkWWgxSfPtNprYjx40MI3OoKJ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D1QUBxaTO+UBiO/XivCZCxyVekFw9mqAWV7AV4LhOQHLmMWo/64KzQdpr1DNi6qltchq9TQuiTV1hmvadLS3zSglcMNQ0yXTOMdawdKtITBptY+xnzwCAIoFVZJDxbOEsrzExHhg6Y9JWSHPF6PpHx70uJh45bUc1CHXj7w0OQtrYswKDNlco+n5q2MTk844OAY9gDQxCoiHf0cE4wnA/GBb7whqdFesy55Eo3stp5/SRjoDfnEZEdaegUvcenNrjdysYtC022X0FB6YYHWs X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231455)(999002)(944501520)(52105112)(93006095)(93004095)(3002001)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095);SRVR:BLUPR19MB0402;BCL:0;PCL:0;RULEID:;SRVR:BLUPR19MB0402; X-Microsoft-Exchange-Diagnostics: 1;BLUPR19MB0402;4:vLU9sooZlFpjgDDyMTkqnEuKnVD3hLrwX8GgkRKdzdHd4fPZPCcr2vhJUiLAS/erD2+mR6BaotLwhDSDX7sNCIA+KqCS3HTkd7P0WI/Zwm6hjuvuO2OAswAxIqfRGRTu8V4sLL7tjKIoDFajkedfyBYK9XiAzYnJt1I8M+oNDXrbGpBJS53acgrzlA76tPjHcFRsOyr84kNDfTfEmZj0j76U2q90HKJ4cZn209ATiqWAJa6qABq3EsCa7xvOBYgijIklghfxeYMYQdNWInWpcg== X-Forefront-PRVS: 0879599414 X-Microsoft-Exchange-Diagnostics: =?utf-8?q?1=3BBLUPR19MB0402=3B23=3ADB4VDMb?= =?utf-8?q?UPTQp+WnHZUAy6J5VDkKCrPmWMleT7zXtGrmTcpr1Skc1L2a7oGfGrrFueGMeI0I9?= =?utf-8?q?d8NH1ugbePwD3i+uV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rvc5RWhAXeuz3qGjOq4gymsArVPrradS33NfjrzcnYs33LpLElM159PIgKhY6gRjQ==;5:XRd0fmpbVNqos3dUAtbaINTbFhVMcFR1qHIDXB+/aQp6qy+JO8arRIYJrUL8JwqIttSieQTBMY+Mzg9cNnBzpvjGsFLbLcDYuqHcnlxLanH/+hkPn+1+cyRBeSan9/2C+k/mkkYkjWbfZxO6uDsUe6A3hQiR6WkVMJyrdKS+X4c=;7:5GC6i4dDvndemIeu3vzdGEl6qHBWDUNRA0FXQkamb+XvLogo843SgRbPgFjGvg3lR1HJdrD/5jclSJjtEuLALAVjN8oI0dcisFK+hO4bonSs7tgYoE7omHcTogy58ps1Wq10wRdg3OZULFvvDWiLzA== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2018 22:28:30.7554 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a351cf70-3e43-400b-15a6-08d65c935106 X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad;Ip=[208.19.99.221];Helo=[AUSMBX1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR19MB0402 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mahesh Rajashekhara Reviewed-by: Scott Benesh Reviewed-by: Ajish Koshy Reviewed-by: Murthy Bhat Reviewed-by: Mahesh Rajashekhara Reviewed-by: Dave Carroll Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Mahesh Rajashekhara Signed-off-by: Don Brace --- drivers/scsi/smartpqi/smartpqi_init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/smartpqi/smartpqi_init.c b/drivers/scsi/smartpqi/smartpqi_init.c index 8e68dba1c789..667a27ae3c07 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -645,6 +645,7 @@ struct bmic_host_wellness_driver_version { u8 driver_version_tag[2]; __le16 driver_version_length; char driver_version[32]; + u8 dont_write_tag[2]; u8 end_tag[2]; }; @@ -674,6 +675,8 @@ static int pqi_write_driver_version_to_host_wellness( strncpy(buffer->driver_version, "Linux " DRIVER_VERSION, sizeof(buffer->driver_version) - 1); buffer->driver_version[sizeof(buffer->driver_version) - 1] = '\0'; + buffer->dont_write_tag[0] = 'D'; + buffer->dont_write_tag[1] = 'W'; buffer->end_tag[0] = 'Z'; buffer->end_tag[1] = 'Z';