Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2761677imj; Mon, 11 Feb 2019 08:06:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IZcPUddMfjNZiV4/9njsm1xTDwZ7Y9ObPAbLoA4GNGfHPfEWPdXHLJVA7hGU41KwXqLEz8t X-Received: by 2002:aa7:8212:: with SMTP id k18mr21701694pfi.48.1549901161692; Mon, 11 Feb 2019 08:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549901161; cv=none; d=google.com; s=arc-20160816; b=ffqsEsPCJIpqcfJ7gR9KZZgqPxrDlJ5TAZoHMg1+phUutlOvzxMsMhC/7KUXFzw51E xJa8UTt1WWPr07TIrmCHOBjW6Sp7L3Fi+ufp4B0V72zm8XmSO2YzIauK6KHFRmlDQ93L vK2WmXlgWuAsDCVGwM69OifAPOTXgVelcPWyHmgZPUzUEJsCw7qdrJKaiQhxsgK1VRjT zNiTmcn+7jCCQFXRM/YCnuZ7X+NZsRiom6GEOCLiH+C7QICrW8KgOU9/voaW/d9hamse zixOJoZMrowvHaD/gbmpc/M2LwawYXzxNU/qla0RglRYcENhPsDTVPunssjaMN4uqiuG r6ZA== 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=JSBoSLQcBlz7D3D7GVRKT+7VJHtbtKdnt/vN4M6oS54=; b=VG44aPY5diHaIqS5ypfz04FdHe6llaezACKng7284Qa3+khR2zup8dQEsAkwalrwzJ ID/vTyVVxqWHSuZ6Js44lEOewTdHzXaeRY7MUEdGZJTqM1HV7y8JDNz1rRbl+oUohQon e1HQKmwkFdsC85btKd5wKQbyktcdgh0QQ5Ev+FqWs+HkZXhgZYTqXRvoG+tmyfHsTQFf 6IOqoUYNyWAtTqVVSRuKQLOD05CujIvdMY6phJ2humjPQPXsD9BtFvZhQh5+vPvGWLkf FrBUi7gLu4qD6RpBHvTH1+u1QuwaLi66dmXg95nnbSCUa1Vp3Hps2NO8S7BuCh608Jo/ 2zZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pQchLpm5; 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 y10si9706530pgl.152.2019.02.11.08.05.34; Mon, 11 Feb 2019 08:06: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=pQchLpm5; 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 S1729973AbfBKO3U (ORCPT + 99 others); Mon, 11 Feb 2019 09:29:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:35374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727441AbfBKO3S (ORCPT ); Mon, 11 Feb 2019 09:29:18 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.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 2DEFD20675; Mon, 11 Feb 2019 14:29:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549895357; bh=+xVMf97vz4CCKSnIT/euPzltuMYtI/GQ8pStB546Lmo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pQchLpm5cWz24t/w/HE+KfE1Ja4fIa3uPQg86P7utca1R5mWcK91dFoU2T/aaIUT7 3EfD65JKLG32Tj/5cHUEW/duBQ3ULrXQxRFwntZ+2kOiquDmo3/4vIyuAODF4+NjxZ TFh5V5PJ1dv77FOZIZfQXR8JmnCBAYQG3iunx8kU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vadim Pasternak , "Darren Hart (VMware)" , Sasha Levin Subject: [PATCH 4.20 147/352] platform/x86: mlx-platform: Fix tachometer registers Date: Mon, 11 Feb 2019 15:16:14 +0100 Message-Id: <20190211141855.965517137@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190211141846.543045703@linuxfoundation.org> References: <20190211141846.543045703@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.20-stable review patch. If anyone has any objections, please let me know. ------------------ [ 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 c2c3a1a19879..14f88bfabd5d 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