All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration
@ 2020-11-25 10:10 Vadim Pasternak
  2020-11-25 10:10 ` [PATCH platform 1/2] platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration Vadim Pasternak
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vadim Pasternak @ 2020-11-25 10:10 UTC (permalink / raw)
  To: andy, hdegoede; +Cc: platform-driver-x86, linux-kernel, Vadim Pasternak

Remove PSU EEPROM configuration for systems MSN2700, MSN2100, MSN274x
to support the requirement of power unit replacement by "off the shelf"
device, matching electrical required parameters. Such device can be
equipped with different EEPROM types or even could be not equipped with
EEPROM.

Patch set contains two bug fixes:
- For MSN2700 and MSN2100 system types.
- For MSN274x system types.

Vadim Pasternak (2):
  platform/x86: mlx-platform: Remove PSU EEPROM from default platform
    configuration
  platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x platform
    configuration

 drivers/platform/x86/mlx-platform.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

-- 
2.11.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH platform 1/2] platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration
  2020-11-25 10:10 [PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration Vadim Pasternak
@ 2020-11-25 10:10 ` Vadim Pasternak
  2020-11-25 10:10 ` [PATCH platform 2/2] platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x " Vadim Pasternak
  2020-11-26 14:28 ` [PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration Hans de Goede
  2 siblings, 0 replies; 4+ messages in thread
From: Vadim Pasternak @ 2020-11-25 10:10 UTC (permalink / raw)
  To: andy, hdegoede; +Cc: platform-driver-x86, linux-kernel, Vadim Pasternak

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 <vadimp@nvidia.com>
---
 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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH platform 2/2] platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x platform configuration
  2020-11-25 10:10 [PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration Vadim Pasternak
  2020-11-25 10:10 ` [PATCH platform 1/2] platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration Vadim Pasternak
@ 2020-11-25 10:10 ` Vadim Pasternak
  2020-11-26 14:28 ` [PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration Hans de Goede
  2 siblings, 0 replies; 4+ messages in thread
From: Vadim Pasternak @ 2020-11-25 10:10 UTC (permalink / raw)
  To: andy, hdegoede; +Cc: platform-driver-x86, linux-kernel, Vadim Pasternak

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 <vadimp@nvidia.com>
---
 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 623e7f737d4a..598f44558764 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.11.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration
  2020-11-25 10:10 [PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration Vadim Pasternak
  2020-11-25 10:10 ` [PATCH platform 1/2] platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration Vadim Pasternak
  2020-11-25 10:10 ` [PATCH platform 2/2] platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x " Vadim Pasternak
@ 2020-11-26 14:28 ` Hans de Goede
  2 siblings, 0 replies; 4+ messages in thread
From: Hans de Goede @ 2020-11-26 14:28 UTC (permalink / raw)
  To: Vadim Pasternak, andy; +Cc: platform-driver-x86, linux-kernel

Hi,

On 11/25/20 11:10 AM, Vadim Pasternak wrote:
> Remove PSU EEPROM configuration for systems MSN2700, MSN2100, MSN274x
> to support the requirement of power unit replacement by "off the shelf"
> device, matching electrical required parameters. Such device can be
> equipped with different EEPROM types or even could be not equipped with
> EEPROM.
> 
> Patch set contains two bug fixes:
> - For MSN2700 and MSN2100 system types.
> - For MSN274x system types.
> 
> Vadim Pasternak (2):
>   platform/x86: mlx-platform: Remove PSU EEPROM from default platform
>     configuration
>   platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x platform
>     configuration

Thank you for your patch-series, I've applied the series to my
review-hans branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.

Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.

Regards,

Hans


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-26 14:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-25 10:10 [PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration Vadim Pasternak
2020-11-25 10:10 ` [PATCH platform 1/2] platform/x86: mlx-platform: Remove PSU EEPROM from default platform configuration Vadim Pasternak
2020-11-25 10:10 ` [PATCH platform 2/2] platform/x86: mlx-platform: Remove PSU EEPROM from MSN274x " Vadim Pasternak
2020-11-26 14:28 ` [PATCH platform 0/2] platform/x86: mlx-platform: Remove PSU EEPROM configuration Hans de Goede

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.