Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3699648imu; Mon, 28 Jan 2019 09:15:09 -0800 (PST) X-Google-Smtp-Source: ALg8bN5THl1Ta0agbKstMpGDP2SMS3Kn6IAdPvCEIh1GmmJKDFYJ+79omX4sg4wOxUESVzzESINb X-Received: by 2002:a62:8c11:: with SMTP id m17mr22662433pfd.224.1548695708961; Mon, 28 Jan 2019 09:15:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548695708; cv=none; d=google.com; s=arc-20160816; b=c+ZY223P0+OLjAGyDnQIGqie0nVHmFwabxxWHFgZl2v47A0ml1UCBPe3k4cmUaAxSG szR0XPuB6DI7gKDGV2KutVdMLMVYAhxa25XA5mywQj1YP026cXjUau5RjQJMVn/RrbN2 Lae5V2QEYog1RTIJBrzDm7OYLupyN0grpvJgGr5aZ+K0umbQ9J/BdgwUbGJenmIco8ml pd4XyfH9fjkAPEvp11TkJc2EWtwvnzlBbBJ/HFNCyQYzz/O2Din0rQ4MAxgEdxDoxwmX 4e8s0uik1zfxxgeS4ygP2eWFPOz8SpypMYMEvvt4Xifr2luvr/OdpALmxqeLS+edi85T MuoA== 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=e3S3Oj4jXyqSl1OVC/DGeKiokrcNiD7YqPqeXGpFxzo=; b=T39P+PIUUfu8t3JNkAWkV8NAql2Af+Rjc4XK7/oEWVAugthorB/QgSBlsBlQzh4sy1 efWsR871y9/s8HWNNsxX1Dq4Gb5T3BcSLmWS8rMyxPOjE3GSW72MBDPHX3IuMQsar2qj dC0yhBf/CYuNHYBn3y58JhwGuJy+G/PbD9hsFpYleOydHSTLDdpCy2s73glOcL4RWZWw XSjkzLCnfHdpsPdRrdlK8J5t3SIWoZbDckhs9daNYGjUIP57CZ0qaoigkFyP6eZenceH 73eowGuQWWbokVBlclCKmEP5OME55zQ+GmC5VvIvjplyjHSshIREU2cTYcJsreycQzHC 30Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VQB9jatc; 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 y6si15425932pfi.228.2019.01.28.09.14.51; Mon, 28 Jan 2019 09:15:08 -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=VQB9jatc; 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 S1731937AbfA1RNd (ORCPT + 99 others); Mon, 28 Jan 2019 12:13:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:60104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732381AbfA1QIW (ORCPT ); Mon, 28 Jan 2019 11:08:22 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 1069520989; Mon, 28 Jan 2019 16:08:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691702; bh=ByU0CnYWWvm0zjYZEkLcAN626c3YTu+/Pgl6NTi/sJI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VQB9jatcPwu5ddVi/Xk43XGzfwZv+tk6YdZ8L6M3MoJSter9tgjYTZYQT00NFLObc HlAvIl43NNNdm7C2Z36LpvTGueWAX2IwAoVYs4vPejLu/EgOg7edt2jYeCoykixPhY LPuilJYXe0OyHQbqRWOE1xJhZFg+xNGog26+OhPI= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Mahesh Rajashekhara , Don Brace , "Martin K . Petersen" , Sasha Levin , esc.storagedev@microsemi.com, linux-scsi@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 190/258] scsi: smartpqi: correct host serial num for ssa Date: Mon, 28 Jan 2019 10:58:16 -0500 Message-Id: <20190128155924.51521-190-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 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: Mahesh Rajashekhara [ Upstream commit b2346b5030cf9458f30a84028d9fe904b8c942a7 ] 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 Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- 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 8c1a232ac6bf..58eb0d31d8d9 100644 --- a/drivers/scsi/smartpqi/smartpqi_init.c +++ b/drivers/scsi/smartpqi/smartpqi_init.c @@ -653,6 +653,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]; }; @@ -682,6 +683,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'; -- 2.19.1