Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp256325pxu; Wed, 25 Nov 2020 02:14:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJy35tIJI/27O7O2oyQdRAg1cy3j/LI6HngTouKGoZVni59vVaRTlKinZbp3HqZWPiuqI/UY X-Received: by 2002:a50:9fc5:: with SMTP id c63mr2736500edf.224.1606299284524; Wed, 25 Nov 2020 02:14:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606299284; cv=none; d=google.com; s=arc-20160816; b=j9wfsO9uFVpv9iVdd7GIFQjNnLVS4ls0tR57bOB/uVmy1SfBq8I6Yh0vByo82Zfnjz E0DgYEZtFUREelbmlotcU+pLDXsxSdhQygKRUzJmPgXK/xyke91I2iyIZNMs73kLh/sb FM4ohkeD080d7myPnvpsYXU/PcgeqO/Q1J2mZIrS8946zkQmzvHAhX1YWFJ3mMPwUK9/ TUANg/FYPafUAts67XhVMj/nw082qeQviglhw5OSXv3txo9UyGlQQc5pUq3tAX+SHCbt ncp5UPfL1h9U9WUGv/9rEiusJdFUYOjafn2bqYh9Zkeyrlz6TTQaOyB9ozD6VsJOmHbe yXdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=Xc7P09XPPAURxpd1PoJ9OErdKPtA5MKG2Zua9U9JEj8=; b=MK4ah+aSpFJ8VRC+ApAXTAusq4Yv0oiLlYFHIKOVKjg/kRgfqyGwmNlsGHy/3Cg6sq Ar+AJ/CSjDOxeCbIZ2tBWmovh5UGck+2LQqBTglNvN6m8xg0vxPON5Gn+htpUT1HCObu OJr6TKC1OeS5vxsdvlO5xsUojKJHUor43POHfmvyLeXgOgWb5BJBM7pXVFplMCCTV98J 1SxrXqFmDisGKG8iY0vAGRuxtV77M2P3c/F2P8XTFWzMkQt2AlXzvNCSQImhDLl+56HL A5ek/3ts8q7AnXZOvsl0qTCwXnNUY3vVrgfsIW70D5re1X6DWTksQvTVmfr94wYDkw49 gNTg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si920369eds.198.2020.11.25.02.14.21; Wed, 25 Nov 2020 02:14:44 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728885AbgKYKLC (ORCPT + 99 others); Wed, 25 Nov 2020 05:11:02 -0500 Received: from mail-il-dmz.mellanox.com ([193.47.165.129]:37725 "EHLO mellanox.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728046AbgKYKLB (ORCPT ); Wed, 25 Nov 2020 05:11:01 -0500 Received: from Internal Mail-Server by MTLPINE1 (envelope-from vadimp@nvidia.com) with SMTP; 25 Nov 2020 12:10:59 +0200 Received: from r-build-lowlevel.mtr.labs.mlnx. (r-build-lowlevel.mtr.labs.mlnx [10.209.0.190]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 0APAAvju025972; Wed, 25 Nov 2020 12:10:58 +0200 From: Vadim Pasternak To: andy@infradead.org, hdegoede@redhat.com Cc: platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, Vadim Pasternak Subject: [PATCH platform 1/2] platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration Date: Wed, 25 Nov 2020 12:10:55 +0200 Message-Id: <20201125101056.174708-2-vadimp@nvidia.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20201125101056.174708-1-vadimp@nvidia.com> References: <20201125101056.174708-1-vadimp@nvidia.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove PSU EEPROM configuration for systems class equipped with Mellanox chip Spectrum and Celeron CPU - system types MSN2700, MSN2100. 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: c6acad68e ("platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface") Fixes: ba814fdd0 ("platform/x86: mlx-platform: Use defines for bus assignment") Signed-off-by: Vadim Pasternak --- 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 986ad3dda1c1..623e7f737d4a 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -383,15 +383,13 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_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_DEFAULT_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_DEFAULT_NR, + .hpdev.nr = MLXPLAT_CPLD_NR_NONE, }, }; -- 2.11.0