Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3629548imu; Mon, 28 Jan 2019 08:06:50 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Y6gX9id/ZnL6m5+tzD6pJWw1+GSlKYsIsSeYYTGItpP2WsctU3hHnVWKzYrlzuVclQgsp X-Received: by 2002:a63:4187:: with SMTP id o129mr18931130pga.370.1548691610695; Mon, 28 Jan 2019 08:06:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548691610; cv=none; d=google.com; s=arc-20160816; b=egSQaoB4idmAammAl04RXAMIy5esUU75dI01GpnAMBWlem3djIKOTNdC2M1kKAv6Ad GNA5KDRjgzgNl72wZsj8YZ9QPEg8t9OZ4oggFjLLVUO+l4sGkav0a5ORAVSUA9xLCmu7 Phj9e9w9Px7XxiZ2oQ1NcseZhN3IUMc/6C9EUIDbwZPIRisxi29CgW//tluXDullbOgF b/5rqGxgP9Up6RVZS1kDV4zyyfRXIEUaqoQdnqUGE1gvAMgMl3fPGw22Q4Pc6QRubLIq EpD/is8J3oP9TxYb/Jy+ZCVmEeYNsigJxVp+WLZYxgg8zT9PM4D3H9UzghIe/oTEeb5B p15g== 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=tPbGYPkEcsOw3XpbysKVX7EPMQtvNmaskUTVlm3EUSc=; b=zpG3st7aBXZQfEUXRVBTptwUf6YGC28ZoSsYyEU3GM9iojTJqCv7lpmEZ7VuXNp9FM TlX8+WOOzuq6q3+y7xRtazd0qfWOLiBRnJrQUKdKnRjNzuFUEQRojJSoHIDPYNcLU91m spWey3H2FDDFc8x3hBySysSWnLU2gyHNU0KoWnhvljtPaOqHWGP2iglmIAgqioiSKEv1 HNJw2ghVCRhTYpm71Jf57Ajz/jZ3v1lW3WhALB/wZghq/XhkoTNkBo2sZpD9pcyj//Qg WaDx3yzW891DVMRe9zcl013qD3VzaWas+GcGOeVmnBk8jyxTmwQa8dC6EVIA4f4WtY8M n7uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ul2TCCOs; 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 v19si33982313pfa.80.2019.01.28.08.06.35; Mon, 28 Jan 2019 08:06:50 -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=Ul2TCCOs; 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 S1730118AbfA1QFi (ORCPT + 99 others); Mon, 28 Jan 2019 11:05:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:52602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731873AbfA1QFf (ORCPT ); Mon, 28 Jan 2019 11:05:35 -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 E10D820989; Mon, 28 Jan 2019 16:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691534; bh=mN8hK7119mhhlQEMcPoiM0hkdX0V8kwKxe9/BOuU61c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ul2TCCOs3GqjQqqnXfCnvFNiCsz986+9DXxa7Ylesp5XAyg/Ni5Y9Twv6WmdxrPIi KjBaQ8WwU65kSWYNbit6XZbdzyA2mx31QiT8IURTLoOJWIy2tLmUVJSHU0SX2jnmup UzwoizqyX3D8SYtExmXARU0YY2UA/0NzmRCCtiRg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vadim Pasternak , Darren Hart , Sasha Levin , platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 133/258] platform/x86: mlx-platform: Fix tachometer registers Date: Mon, 28 Jan 2019 10:57:19 -0500 Message-Id: <20190128155924.51521-133-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: Vadim Pasternak [ Upstream commit edd45cba5ed7f53974475ddc9a1453c2c87b3328 ] Shift by one the registers for tachometers (7 - 12). This fix is relevant for the same new systems MQMB7, MSN37, MSN34, which are about to be released to the customers. At the moment, none of them is at customers sites. The customers will not suffer from this change. This fix is necessary, because register used before for tachometer 7 has been than reserved for the second PWM for newer systems, which are not supported yet in mlx-platform driver. So registers of tachometers 7-12 have been shifted by one. Fixes: 0378123c5800 ("platform/x86: mlx-platform: Add mlxreg-fan platform driver activation") Signed-off-by: Vadim Pasternak Signed-off-by: Darren Hart (VMware) Signed-off-by: Sasha Levin --- drivers/platform/x86/mlx-platform.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c index d89936c93ba0..78b4aa4410fb 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -83,12 +83,12 @@ #define MLXPLAT_CPLD_LPC_REG_TACHO4_OFFSET 0xe7 #define MLXPLAT_CPLD_LPC_REG_TACHO5_OFFSET 0xe8 #define MLXPLAT_CPLD_LPC_REG_TACHO6_OFFSET 0xe9 -#define MLXPLAT_CPLD_LPC_REG_TACHO7_OFFSET 0xea -#define MLXPLAT_CPLD_LPC_REG_TACHO8_OFFSET 0xeb -#define MLXPLAT_CPLD_LPC_REG_TACHO9_OFFSET 0xec -#define MLXPLAT_CPLD_LPC_REG_TACHO10_OFFSET 0xed -#define MLXPLAT_CPLD_LPC_REG_TACHO11_OFFSET 0xee -#define MLXPLAT_CPLD_LPC_REG_TACHO12_OFFSET 0xef +#define MLXPLAT_CPLD_LPC_REG_TACHO7_OFFSET 0xeb +#define MLXPLAT_CPLD_LPC_REG_TACHO8_OFFSET 0xec +#define MLXPLAT_CPLD_LPC_REG_TACHO9_OFFSET 0xed +#define MLXPLAT_CPLD_LPC_REG_TACHO10_OFFSET 0xee +#define MLXPLAT_CPLD_LPC_REG_TACHO11_OFFSET 0xef +#define MLXPLAT_CPLD_LPC_REG_TACHO12_OFFSET 0xf0 #define MLXPLAT_CPLD_LPC_IO_RANGE 0x100 #define MLXPLAT_CPLD_LPC_I2C_CH1_OFF 0xdb #define MLXPLAT_CPLD_LPC_I2C_CH2_OFF 0xda -- 2.19.1