Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9121969pxu; Mon, 28 Dec 2020 07:10:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDhRpI0GpuG3LzkBl88vr+AY7jNU8cmt2rhaYv+HV5gap5ITh2tXhMF6E3RuRdBexWdFj+ X-Received: by 2002:a17:906:3094:: with SMTP id 20mr41099536ejv.218.1609168207824; Mon, 28 Dec 2020 07:10:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609168207; cv=none; d=google.com; s=arc-20160816; b=DB27mCFEhRhqVubGh+qrMQIMcV51tyh6rTSZjO3a8fv0rcl9gFDduGVfcKy2/u/K8a olD3USxBXdVz6JlIcJ0dAUeVMEpBhcEBhqLRewC5/Zv+/LHDl99tAmUTDxBIgeBjW7Rw 5T3O8Go4fWtRWr11XDYO/McIYr7Q5LsBgLeWngil5u3opqu1gqMWtZTobyqVLiRYgLgM Z0Zlf8pky3aJyniEyorgzJo2cisq0pEOPCqnJmnsjVAgDDGsflYHM3BkEdX2Hm3MeWMX EbYLmH8WVRccYfH9RVZkG4LOQk1Zpg4Fk0y1FBALTxjNzRD4DummndIn1eoYIMUMs1Qs 1itA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4wiH9WplBaBGqCoxh7tVazCAENsoEhDmkZUWF4i+EXU=; b=EFOkIxJdGMmicQJ5bfDjeyRZixFmW/LYQ4F8FXVwuaNfw69GuP7iXLDM520u83umjm QgW66o+Ji6LgJ48bJp3OzbLTnTuR1TtpZGhB+QO2BxPwOeKaESgbGNgwL+fHq7MEaQCi mxMQF2SmWe3oQs9VaxSvko31WLBKkrIW3i90ojgAoUqQxEhrpAid2Yd6m+KGQSnz9hme b2T0vqC7f0+C4yZVZ8YZmeW39uBiMwJwOd7d2M2czyCwNcg8a+1aA8BxAkrq4mIzSwLA q2Nz6g108XzPK3B0QXXjMput+rskJtnkWVFnSjx7I8wzlGaKpnp8jm5i9RO5sQwHGeDl q9Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zok1jGW5; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id nl1si15262552ejb.470.2020.12.28.07.09.44; Mon, 28 Dec 2020 07:10:07 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=zok1jGW5; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439651AbgL1OL1 (ORCPT + 99 others); Mon, 28 Dec 2020 09:11:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:45720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439512AbgL1OLM (ORCPT ); Mon, 28 Dec 2020 09:11:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AE09A20715; Mon, 28 Dec 2020 14:10:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164631; bh=SCe7CI6BSKuDxldyrEMmM8jNojxrVwd4BlHUlwfOvt8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zok1jGW5VqkG06xdYmy3MRGCvCvNRVjmO3+ElAgUmnjDqLzU3JKLXj3EqBIX6sis2 UV5d5dGcqhXhAecCGTx2etrDlaFJIwDOOWsFuH/s/zeWiLBrOH0hmns9z6EBQF/0G0 nWhJaQcps7fc//N3fD2tngXMF2bjCqOhIW6bz69Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vadim Pasternak , Hans de Goede , Sasha Levin Subject: [PATCH 5.10 212/717] platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x platform configuration Date: Mon, 28 Dec 2020 13:43:30 +0100 Message-Id: <20201228125031.129265421@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vadim Pasternak [ Upstream commit 912b341585e302ee44fc5a2733f7bcf505e2c86f ] Remove PSU EEPROM configuration for systems class equipped with Mellanox chip Spectrum and ATOM CPU - system types MSN274x. Till now all the systems from this class used few types of power units, all equipped with EEPROM device with address space two bytes. Thus, all these devices have been handled by EEPROM driver "24c02". There is a new requirement is to support power unit replacement by "off the shelf" device, matching electrical required parameters. Such device can be equipped with different EEPROM type, which could be one byte address space addressing or even could be not equipped with EEPROM. In such case "24c02" will not work. Fixes: ef08e14a3 ("platform/x86: mlx-platform: Add support for new msn274x system type") Signed-off-by: Vadim Pasternak Link: https://lore.kernel.org/r/20201125101056.174708-3-vadimp@nvidia.com Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- drivers/platform/x86/mlx-platform.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c index 623e7f737d4ab..598f445587649 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -601,15 +601,13 @@ static struct mlxreg_core_data mlxplat_mlxcpld_msn274x_psu_items_data[] = { .label = "psu1", .reg = MLXPLAT_CPLD_LPC_REG_PSU_OFFSET, .mask = BIT(0), - .hpdev.brdinfo = &mlxplat_mlxcpld_psu[0], - .hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR, + .hpdev.nr = MLXPLAT_CPLD_NR_NONE, }, { .label = "psu2", .reg = MLXPLAT_CPLD_LPC_REG_PSU_OFFSET, .mask = BIT(1), - .hpdev.brdinfo = &mlxplat_mlxcpld_psu[1], - .hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR, + .hpdev.nr = MLXPLAT_CPLD_NR_NONE, }, }; -- 2.27.0