Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4583383pxu; Tue, 13 Oct 2020 01:53:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVc1tI+gV/wN5ToiltcQy2ZttCtLWwjkpAtinHx9NTZrS91lwtYiY/qgbCZi4Me/vWgdLJ X-Received: by 2002:a17:906:9511:: with SMTP id u17mr31792720ejx.194.1602579207740; Tue, 13 Oct 2020 01:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602579207; cv=none; d=google.com; s=arc-20160816; b=EjFX9V5fpabtOebNp+FFAW7DlYROTk3Xg4aH2rCKnkjcoSi5NGcDkvZncLndcGeBQ9 5H3oCzr020rFEySmKF9cAC9wKPpgm/dgRQ3NjsELydkb8NMgD4pNQNXFTsXeAlS1HQ3H 2H56Xqdj21rTh2AJLcfx7Ws8n3QwsyegwgQASn33FVC6pP5XDWyK+W4IW+VV63P71kJ2 /g9tnY6YrEVuIc9PGcJ90UhmkkPIoGnFINS/8ymiuxBPa1kR7oQdkWE7/uzaMnEbQuby T314l0bIR9IT72h4I0Azmd0s+oA3nhw8cFreuzrOi05up6ny7SD8rBM/VCb+dj1S/haR vwcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qH9KovXhf/Ve0UEoHa98RZBVpiwx9i876VqzUKEwD3k=; b=uTwsEh78iEG9ip7kR0/4t2/R1SAoc98oQ+GIVqm2kA2l5fraVlQ2QUoAsmZ19S5D3r SjMdEtJWP5PgtE4BfLTeAr1VZGRn5Nv+RRhEqxZjVEAUyU2GyKKkayjOixqd+9hcWcP7 Otz7gr7D73dMDLrSJeEoK4KicbM586WeL6TBPDstFQkDebGaa31T7j3nVWtw+3KXm5pR 34DQDeLJVqc+tEqEe6OfUlbYZXWMqlk0u3RLdwQXF0VZarGv/f1ZMYDDddoy/OChqVBS UWHEj9Z7xx+xJjn8Y/bK9Kg+NAh451vn1M6fzZ8H7sreKd6/r+2cTY/BUhDmPHBJ9vHi Ppag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N1xP70aK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id w5si13157657eji.82.2020.10.13.01.53.04; Tue, 13 Oct 2020 01:53:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=N1xP70aK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730969AbgJLTCu (ORCPT + 99 others); Mon, 12 Oct 2020 15:02:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:52100 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730855AbgJLTCr (ORCPT ); Mon, 12 Oct 2020 15:02:47 -0400 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 195EC208B8; Mon, 12 Oct 2020 19:02:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602529367; bh=QkXWm29UpJ9d+OpzSznNbEi0x37isxAZEbbDPaxmB58=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N1xP70aK+0Fvsq9AlB7faCcsM9e0jxM/y+LTCIiU+SPydBPFSFhm7zDTlX+hTs69/ KacxXIsrSf6VB6WiqHus2hqg57YMm+Ga7kr32aQH7N3IQSbeBbyJaiPeLijhNPaAU0 yxAjvGxH+9PqmFxUat/LfdVXrIvn6fhw0bqK7XHo= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Vadim Pasternak , Hans de Goede , Andy Shevchenko , Sasha Levin , platform-driver-x86@vger.kernel.org Subject: [PATCH AUTOSEL 5.8 05/24] platform/x86: mlx-platform: Fix extended topology configuration for power supply units Date: Mon, 12 Oct 2020 15:02:20 -0400 Message-Id: <20201012190239.3279198-5-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201012190239.3279198-1-sashal@kernel.org> References: <20201012190239.3279198-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vadim Pasternak [ Upstream commit 2b06a1c889ca33d550675db4b0ca91e1b4dd9873 ] Fix topology configuration for power supply units in structure 'mlxplat_mlxcpld_ext_pwr_items_data', due to hardware change. Note: no need to backport the fix, since there is no such hardware yet (equipped with four power) at the filed. Signed-off-by: Vadim Pasternak Reviewed-by: Hans de Goede Signed-off-by: Andy Shevchenko Signed-off-by: Sasha Levin --- drivers/platform/x86/mlx-platform.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c index c27548fd386ac..0443632faed9f 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -163,7 +163,6 @@ #define MLXPLAT_CPLD_NR_NONE -1 #define MLXPLAT_CPLD_PSU_DEFAULT_NR 10 #define MLXPLAT_CPLD_PSU_MSNXXXX_NR 4 -#define MLXPLAT_CPLD_PSU_MSNXXXX_NR2 3 #define MLXPLAT_CPLD_FAN1_DEFAULT_NR 11 #define MLXPLAT_CPLD_FAN2_DEFAULT_NR 12 #define MLXPLAT_CPLD_FAN3_DEFAULT_NR 13 @@ -337,6 +336,15 @@ static struct i2c_board_info mlxplat_mlxcpld_pwr[] = { }, }; +static struct i2c_board_info mlxplat_mlxcpld_ext_pwr[] = { + { + I2C_BOARD_INFO("dps460", 0x5b), + }, + { + I2C_BOARD_INFO("dps460", 0x5a), + }, +}; + static struct i2c_board_info mlxplat_mlxcpld_fan[] = { { I2C_BOARD_INFO("24c32", 0x50), @@ -911,15 +919,15 @@ static struct mlxreg_core_data mlxplat_mlxcpld_ext_pwr_items_data[] = { .label = "pwr3", .reg = MLXPLAT_CPLD_LPC_REG_PWR_OFFSET, .mask = BIT(2), - .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[0], - .hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR2, + .hpdev.brdinfo = &mlxplat_mlxcpld_ext_pwr[0], + .hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR, }, { .label = "pwr4", .reg = MLXPLAT_CPLD_LPC_REG_PWR_OFFSET, .mask = BIT(3), - .hpdev.brdinfo = &mlxplat_mlxcpld_pwr[1], - .hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR2, + .hpdev.brdinfo = &mlxplat_mlxcpld_ext_pwr[1], + .hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR, }, }; -- 2.25.1