Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp265856pxx; Wed, 28 Oct 2020 04:30:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZW68c1LZgERpdEphkk8FX4flFfIx3sP5Co2TMJUkBJZUob4OC3vQUBp9sDFnSTbHJNyRm X-Received: by 2002:a17:906:7f92:: with SMTP id f18mr1351969ejr.189.1603884654919; Wed, 28 Oct 2020 04:30:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603884654; cv=none; d=google.com; s=arc-20160816; b=IYIz08bvBOKccFo1KvZEvvm/1sykwbCdwfpjb5FkKs/nWmZl9gEoeL7d+6PpiRUTwS f3F4lH59CzS7LHBru5PuojczA6fLEbpExbLCiJZnvIgU9Mdco3VWIUcs/3l/6O62wOKm RRCpAISOOTCGDKWDvjv5IuioeLtuEnY8bKpvg6ABr7RIatKLORAh5HGeSAtoywpPNcPH hdzIJChWGe8piUHT44xdo/mINjPRF8qwXhdlfGlD25F+NQTlNdgx6DV60yLKGClzpvX6 oFoBjI+wV65yNYFK7W7OkWid2CqnPSNdNl5wot1O257uXXcuTKLOCKmXfg51lUZAFW/c r/Ow== 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=iua7Q0KM+i2zqnr23u4JNdVOsNeOK5t2cvrr0zAD448=; b=KQdy1rNzmbUL7iTSdhtyhNyp4wemXxDmt3f5fuuEFkhTV2ViMnbJRZanvgZWk2IM+R YhzOulVkGHga+D0J/sYD5RlrMv1vmKz0lwEI56u87oPf+OGRELH66KN1po5KyCSF9PkZ qrmJaoM6kibmjKkVc86T7epU4gyFuZIQc74mvlRKYBnTFD8Z3XKtNIszmNI3eEblmdVW t4DHnMdsWpQwrTkdpa8unnQW72aV1o50l7W9+NEqljWp7RZvpIWDr11pk8Qz+uLgdu5y NLHWIZSZXdij2zkzm0AlkMRtvubmADoOHa0BSq5LPbSyaU7IDKfWdGiBO+9HXbPankwt 5d8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=k9NrcTYf; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si2698178edr.173.2020.10.28.04.30.31; Wed, 28 Oct 2020 04:30:54 -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=k9NrcTYf; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1793524AbgJ0PGo (ORCPT + 99 others); Tue, 27 Oct 2020 11:06:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:36108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1789367AbgJ0PCD (ORCPT ); Tue, 27 Oct 2020 11:02:03 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 32FB522264; Tue, 27 Oct 2020 15:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810922; bh=Soar+9iFU5zxuhxDG/8Q9NsPO1ihnEkKCV4/P53vNus=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k9NrcTYfc+isnIvI3gvQWMBlbuHpoDJltsta6DCjExMHZSizQqnHf8nbWlALlKIWv SgtOrRMQke8ttN+SGXK3N9N7LdW64aCJmd9TFIlLRgYKvsvQq+xI9Nje/S1/lHvgCE pn54b4Mn+U+50dPcGpd010NQNF717+GqGsXC9WHM= 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.8 309/633] platform/x86: mlx-platform: Remove PSU EEPROM configuration Date: Tue, 27 Oct 2020 14:50:52 +0100 Message-Id: <20201027135537.173963709@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 c071afcea6ecf24a3c119f25ce9f71ffd55b5dc2 ] Remove PSU EEPROM configuration for systems class equipped with Mellanox chip Spectrume-2. 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 "24c32". There is a new requirement is to support power unit replacement by "off the shelf" device, matching electrical required parameters. Such device could 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 "24c32" will not work. Fixes: 1bd42d94ccab ("platform/x86: mlx-platform: Add support for new 200G IB and Ethernet systems") Signed-off-by: Vadim Pasternak Reviewed-by: Hans de Goede Link: https://lore.kernel.org/r/20200923172053.26296-2-vadimp@nvidia.com Signed-off-by: Hans de Goede Signed-off-by: Sasha Levin --- drivers/platform/x86/mlx-platform.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers/platform/x86/mlx-platform.c b/drivers/platform/x86/mlx-platform.c index c27548fd386ac..0d2ed6d1f9c79 100644 --- a/drivers/platform/x86/mlx-platform.c +++ b/drivers/platform/x86/mlx-platform.c @@ -319,15 +319,6 @@ static struct i2c_board_info mlxplat_mlxcpld_psu[] = { }, }; -static struct i2c_board_info mlxplat_mlxcpld_ng_psu[] = { - { - I2C_BOARD_INFO("24c32", 0x51), - }, - { - I2C_BOARD_INFO("24c32", 0x50), - }, -}; - static struct i2c_board_info mlxplat_mlxcpld_pwr[] = { { I2C_BOARD_INFO("dps460", 0x59), @@ -752,15 +743,13 @@ static struct mlxreg_core_data mlxplat_mlxcpld_default_ng_psu_items_data[] = { .label = "psu1", .reg = MLXPLAT_CPLD_LPC_REG_PSU_OFFSET, .mask = BIT(0), - .hpdev.brdinfo = &mlxplat_mlxcpld_ng_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_ng_psu[1], - .hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR, + .hpdev.nr = MLXPLAT_CPLD_NR_NONE, }, }; -- 2.25.1