Fix array names to match assignments for data items and data items
counter for power and fan attributes.
Patch #1: Provide fixes for system types MSN2700, MSN24xx.
Patch #1: Provide fixes for system type MSN2700/ComEx.
Vadim Pasternak (2):
platform/x86: mlx-platform: Fix item counter
culation.
Fixes: c6acad68eb2d ("platform/mellanox: mlxreg-hotplug: Modify to use a regmap
interface")
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/mlx-platform
culation.
Fixes: bdd6e155e0d6 ("platform/x86: mlx-platform: Add support for new system
type")
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/mlx-platform.c
b/drivers/platfor
> -Original Message-
> From: Hans de Goede
> Sent: Monday, December 07, 2020 3:54 PM
> To: Arnd Bergmann ; Vadim Pasternak
> ; Mark Gross ; Nathan
> Chancellor ; Nick Desaulniers
>
> Cc: Arnd Bergmann ; Andy Shevchenko
> ; Michael Shych
> ; platform-dri
> -Original Message-
> From: Arnd Bergmann
> Sent: Friday, December 04, 2020 12:31 AM
> To: Vadim Pasternak ; Hans de Goede
> ; Mark Gross ; Nathan
> Chancellor ; Nick Desaulniers
>
> Cc: Arnd Bergmann ; Andy Shevchenko
> ; Michael Shych
> ; platform-dri
OM.
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
con
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
---
drivers/platform/x86/mlx-platform.c | 6 ++
1 file changed, 2 insertions(+), 4 del
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 P
> -Original Message-
> From: Shravan Kumar Ramani
> Sent: Monday, July 27, 2020 12:02 PM
> To: Andy Shevchenko ; Darren Hart
> ; Vadim Pasternak
> Cc: Shravan Ramani ; Jiri Pirko
> ; platform-driver-...@vger.kernel.org; linux-
> ker...@vger.kernel.org
> S
Send "udev" event with environmental data in order to allow handling
"ENV{}" variables in "udev" rules.
Signed-off-by: Vadim Pasternak
---
v1->v2:
Comments pointed out by Andy:
- Add string_upper(), string_lower() helpers. Use string_upper() for
label conv
consuming info, etcetera.
Such registers contain read-only data.
Signed-off-by: Vadim Pasternak
---
v1->v2:
Comments pointed out by Andy:
- Fix commit text.
- Fix few comments.
- Drop attribute validation for read-only access in mlxreg_io_get_reg().
This is redundant and wrong validation
Add new field 'regnum' to the structure 'mlxreg_core_data' to specify
the number of registers occupied by multi-register attribute.
Signed-off-by: Vadim Pasternak
---
include/linux/platform_data/mlxreg.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/pl
Extend FAN platform data with register presence field.
Add register present entry per rotor (tachometer) description tuple.
The purpose is to allow indication of FAN presence.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 13 +
1 file changed, 13
Provide the helpers for string conversions to upper alnd lower cases.
Signed-off-by: Vadim Pasternak
---
include/linux/string_helpers.h | 15 +++
1 file changed, 15 insertions(+)
diff --git a/include/linux/string_helpers.h b/include/linux/string_helpers.h
index c28955132234
dd more definitions for system attributes.
Patch #8 extends 'mlxreg-io' driver with complex attributes support.
Patch #9 extends documentation with new attributes.
Patches #10-#11 extend FAN platform data with register presence field.
Vadim Pasternak (11):
lib/string_helpers: I
Add few of simple tests for string_upper() and string_lower() helpers.
Signed-off-by: Vadim Pasternak
---
lib/test-string_helpers.c | 67 +++
1 file changed, 67 insertions(+)
diff --git a/lib/test-string_helpers.c b/lib/test-string_helpers.c
index
Add documentation for the new attributes for exposing CPLDs part
numbers and CPLD minor versions.
Signed-off-by: Vadim Pasternak
---
v1->v2:
Changes added by Vadim:
- Update date and kernel version.
---
Documentation/ABI/stable/sysfs-driver-mlxreg-io | 17 +
1 file changed,
Change module license to 'SPDX'.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox/mlxreg-hotplug.c | 32 +++---
1 file changed, 3 insertions(+), 29 deletions(-)
diff --git a/drivers/platform/mellanox/mlxreg-hotplug.c
b/drivers/platform/mella
d adding a new code in the future in order to
distinct between the systems types supporting a different number of the
components like power supplies, FANs, ASICs, line cards.
Signed-off-by: Vadim Pasternak
---
v1->v2:
Comments pointed out by Andy:
- Fix commit text.
- Modify loop over unmaske
Add new field 'reg_prsnt' to the structure 'mlxreg_core_data' to
provide the number FAN drawers equpped within the system. The purpose
is to allow mapping between FAN drawers and FAN rotors (tachometer),
since FAN drawer can be eqipped with a few rotors.
Signed-off
ion if image upgrade is required for CPLD device.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 128
1 file changed, 128 insertions(+)
diff --git a/drivers/platform/x86/mlx-platform.c
b/drivers/platform/x86/mlx-platform.
Send "udev" event with environmental data in order to allow handling
"ENV{}" variables in "udev" rules.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox/mlxreg-hotplug.c | 27 +--
1 file changed, 25 insertions(+), 2 deletions(-)
Add new field 'reg_prsnt' to the structure 'mlxreg_core_data' to
provide the number FAN drawers equpped within the system. The purpose
is to allow mapping between FAN drawers and FAN rotors (tachometer),
since FAN drawer can be eqipped with a few rotors.
Signed-off
ion if image upgrade is required for CPLD device.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 128
1 file changed, 128 insertions(+)
diff --git a/drivers/platform/x86/mlx-platform.c
b/drivers/platform/x86/mlx-platform.
d adding a new code in the future in order to
distinct between the systems types supported different number of the
components like power supplies, FANs, ASICs, line cards.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox/mlxreg-hotplug.c | 54 --
1 file c
Add new field 'regnum' to the structure 'mlxreg_core_data' to specify
the number of registers occupied by multi-register attribute.
Signed-off-by: Vadim Pasternak
---
include/linux/platform_data/mlxreg.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/linux/pl
consuming info, etcetera.
Such registers contain read only data.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox/mlxreg-io.c | 47 ++-
1 file changed, 35 insertions(+), 12 deletions(-)
diff --git a/drivers/platform/mellanox/mlxreg-io.c
b/drivers
Add documentation for the new attributes for exposing CPLDs part
numbers and CPLD minor versions.
Signed-off-by: Vadim Pasternak
---
Documentation/ABI/stable/sysfs-driver-mlxreg-io | 17 +
1 file changed, 17 insertions(+)
diff --git a/Documentation/ABI/stable/sysfs-driver
butes.
Patches #7-#8 extends FAN platform data with register presence field.
Vadim Pasternak (8):
platform/mellanox: mlxreg-hotplug: Use capability register for
attribute creation
platform/mellanox: mlxreg-hotplug: Add environmental data to uevent
platform_data/mlxreg: Add support fo
Extend FAN platform data with register presence field.
Add register present entry per rotor (tachometer) description tuple.
The purpose is to allow indication of FAN presence.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 13 +
1 file changed, 13
> -Original Message-
> From: Asmaa Mnebhi
> Sent: Saturday, May 04, 2019 1:35 AM
> To: miny...@acm.org; w...@the-dreams.de; Vadim Pasternak
> ; Michael Shych
> Cc: Asmaa Mnebhi ; linux-kernel@vger.kernel.org;
> linux-...@vger.kernel.org
> Subject: [PATCH v6 1
> -Original Message-
> From: Asmaa Mnebhi
> Sent: Thursday, May 02, 2019 9:38 PM
> To: miny...@acm.org; w...@the-dreams.de; Vadim Pasternak
> ; Michael Shych
> Cc: Asmaa Mnebhi ; linux-kernel@vger.kernel.org;
> linux-...@vger.kernel.org
> Subject: [PATCH v5 1
[...]
> >
> > >>Better, if you can avoid cast.
> > >>Would compiler warn if you use for example rol16(client->addr, 1) &
> GENMASK(7, 0); or something like it?
> > I thought it wouldn't be too much of an issue to use typecast here since
> > other
> existing ipmi drivers use typecasting: bt-bmc.c,
> -Original Message-
> From: Asmaa Mnebhi
> Sent: Tuesday, April 30, 2019 8:59 PM
> To: miny...@acm.org; w...@the-dreams.de; Vadim Pasternak
> ; Michael Shych
> Cc: Asmaa Mnebhi ; linux-kernel@vger.kernel.org;
> linux-...@vger.kernel.org
> Subject: [PATCH v4 1
> -Original Message-
> From: Asmaa Mnebhi
> Sent: Tuesday, April 30, 2019 8:59 PM
> To: miny...@acm.org; w...@the-dreams.de; Vadim Pasternak
> ; Michael Shych
> Cc: Asmaa Mnebhi ; linux-kernel@vger.kernel.org;
> linux-...@vger.kernel.org
> Subject: [PATCH v4 0
> -Original Message-
> From: Asmaa Mnebhi
> Sent: Tuesday, April 30, 2019 12:57 AM
> To: miny...@acm.org; w...@the-dreams.de; Vadim Pasternak
> ; Michael Shych
> Cc: Asmaa Mnebhi ; linux-kernel@vger.kernel.org;
> linux-...@vger.kernel.org
> Subject: [PATCH v3 1
> -Original Message-
> From: Andrew Morton
> Sent: Tuesday, April 09, 2019 1:52 AM
> To: Vadim Pasternak
> Cc: jacek.anaszew...@gmail.com; pa...@ucw.cz; linux-kernel@vger.kernel.org;
> linux-l...@vger.kernel.org; Ido Schimmel ; Andrey
> Ryabinin
> Subje
R10: 0097 R11: 0246 R12: 0006
[ 11.441932] R13: 0001 R14: 7f955775e600 R15: 0006
Reported-by: Ido Schimmel
Signed-off-by: Vadim Pasternak
---
include/linux/bitops.h | 12
1 file changed, 12 insertions(+)
diff --git a/includ
> -Original Message-
> From: Liming Sun
> Sent: Monday, January 28, 2019 7:28 PM
> To: Rob Herring ; Mark Rutland
> ; Arnd Bergmann ; David Woods
> ; Andy Shevchenko ; Darren
> Hart ; Vadim Pasternak
> Cc: Liming Sun ; devicet...@vger.kernel.org; linux-
[...]
Please, be consistent with naming convention.
All the above should have same prefix as others routines.
>
> > +static ssize_t post_reset_wdog_store(struct device_driver *drv,
> > +const char *buf, size_t count) {
> > + int err;
> > + unsigne
> -Original Message-
> From: Nathan Chancellor
> Sent: Wednesday, September 26, 2018 8:21 AM
> To: Vadim Pasternak ; Darren Hart
> ; Andy Shevchenko
> Cc: platform-driver-...@vger.kernel.org; linux-kernel@vger.kernel.org; Nathan
> Chancellor
> Subject: [
> -Original Message-
> From: Kees Cook [mailto:keesc...@chromium.org]
> Sent: Wednesday, July 04, 2018 8:29 PM
> To: Darren Hart
> Cc: Vadim Pasternak ; Andy Shevchenko
> ; platform-driver-...@vger.kernel.org; linux-
> ker...@vger.kernel.org
> Subject: [PATCH]
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Wednesday, June 20, 2018 3:20 AM
> To: Randy Dunlap
> Cc: Vadim Pasternak ; andy.shevche...@gmail.com;
> gre...@linuxfoundation.org; linux-kernel@vger.kernel.org; platform-driver-
> x.
supposed to be defined per
system type bases and include the registers related to system resets
operation, system reset causes monitoring and some kinds of mux selection.
Signed-off-by: Vadim Pasternak
---
v5-v6:
Comments pointed out by Darren:
- Fix "filed" to "field"
Add documentation for mlxreg-io platform driver sysfs interfaces to allow
user space access for system resets control, reset causes monitoring,
programmable devices version reading and device selection control.
Signed-off-by: Vadim Pasternak
---
v5-v6:
Changes added by Vadim:
- Change kernel
, which are used by mlxreg-io for
write access.
Signed-off-by: Vadim Pasternak
v4-v5:
Changes added by Vadim:
- Add two new attributes for ASIC health and main power domain shutdown.
---
drivers/platform/x86/mlx-platform.c | 175 +++-
1 file changed, 173
Add documentation for mlxreg-io platform driver sysfs interfaces to allow
user space access for system resets control, reset causes monitoring,
programmable devices version reading and device selection control.
Signed-off-by: Vadim Pasternak
---
v4:
Comments pointed out by Greg:
Add
supposed to be defined per
system type bases and include the registers related to system resets
operation, system reset causes monitoring and some kinds of mux selection.
Signed-off-by: Vadim Pasternak
---
v1->v2:
Change added by Vadim:
- Change ---help--- to help in Kconfig, according to
, which are used by mlxreg-io for
write access.
Signed-off-by: Vadim Pasternak
v4-v5:
Changes added by Vadim:
- Add two new attributes for ASIC health and main power domain shutdown.
---
drivers/platform/x86/mlx-platform.c | 175 +++-
1 file changed, 173
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Tuesday, June 05, 2018 4:55 AM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux-
> ker...@vger.kernel.org; platform-driver-...@vger.kernel.org
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Friday, June 01, 2018 7:53 PM
> To: Greg KH
> Cc: Vadim Pasternak ; andy.shevche...@gmail.com;
> linux-kernel@vger.kernel.org; platform-driver-...@vger.kernel.org;
> j...@resnulli.us; M
supposed to be defined per
system type bases and include the registers related to system resets
operation, system reset causes monitoring and some kinds of mux selection.
Signed-off-by: Vadim Pasternak
---
v1->v2:
Changed added by Vadim:
- Change ---help--- to help in Kconfig, according to
, which are used by mlxreg-io for
write access.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 159 +++-
1 file changed, 157 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/mlx-platform.c
b/drivers/platform/x86/mlx
Add documentation for mlxreg-io driver sysfs interfaces for user space
access to system's power resets control, reset causes monitoring,
programmable devices version reading and devices selection control.
Signed-off-by: Vadim Pasternak
---
v4:
Comments pointed out by Greg:
Add Document
> -Original Message-
> From: Greg KH [mailto:gre...@linuxfoundation.org]
> Sent: Sunday, May 27, 2018 6:14 PM
> To: Vadim Pasternak
> Cc: dvh...@infradead.org; andy.shevche...@gmail.com; linux-
> ker...@vger.kernel.org; platform-driver-...@vger.kernel.org; j...@resn
, which are used by mlxreg-io for
write access.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 159 +++-
1 file changed, 157 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/mlx-platform.c
b/drivers/platform/x86/mlx
supposed to be defined per
system type bases and include the registers related to system resets
operation, system reset causes monitoring and some kinds of mux selection.
Signed-off-by: Vadim Pasternak
---
v1->v2:
Changed added by Vadim:
- Change ---help--- to help in Kconfig, according to
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Friday, May 25, 2018 3:31 AM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux-
> ker...@vger.kernel.org; platform-driver-...@vger.kernel.org
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Friday, May 25, 2018 2:52 AM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux-
> ker...@vger.kernel.org; platform-driver-...@vger.kernel.org
, which are used by mlxreg-io for
write access.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 159 +++-
1 file changed, 157 insertions(+), 2 deletions(-)
diff --git a/drivers/platform/x86/mlx-platform.c
b/drivers/platform/x86/mlx
x27;t change DMI_BOARD_NAME.
Signed-off-by: Vadim Pasternak
---
v1->v2:
Comments pointed out by Darren:
- Modify commit message;
---
drivers/platform/x86/mlx-platform.c | 30 ++
1 file changed, 30 insertions(+)
diff --git a/drivers/platform/x86/mlx-platform.c
b
descriptions are defined for passing
to LED platform driver.
Signed-off-by: Vadim Pasternak
v1->v2:
Fixes added by Vadim:
- Remove inline functions from mlxreg.h file;
---
drivers/platform/x86/mlx-platform.c | 259 +++-
1 file changed, 258 insertions(+), 1 delet
supposed to be defined per
system type bases and include the registers related to system resets
operation, system reset causes monitoring and some kinds of mux selection.
Signed-off-by: Vadim Pasternak
---
v1->v2:
Changed added by Vadim:
- Change ---help--- to help in Kconfig, according to
form/x86: Introduce support for Mellanox hotplug
driver")
Signed-off-by: Vadim Pasternak
---
V1->v2:
Comments pointed out by Darren:
- Modify commit message;
- Remove redundant check of aggr_asserted;
- Change bug fix reference from 1f976f6978bf, which just relocated driver
to 07b89c2
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Friday, April 13, 2018 7:55 PM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux-
> ker...@vger.kernel.org; platform-driver-...@vger.kernel.org
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Friday, April 13, 2018 7:47 PM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux-
> ker...@vger.kernel.org; platform-driver-...@vger.kernel.org
-io driver from mlx-platform.
Vadim Pasternak (7):
platform_data/mlxreg: Document fixes for hotplug device
platform/mellanox: mlxreg-hotplug: Document fixes for hotplug private
data
platform/mellanox: mlxreg-hotplug: add extra cycle for hotplug work
queue
platform: mellanox: add new
Remove redunadant description of label in struct mlxreg_hotplug_device.
Change location of access_mode in struct mlxreg_hotplug_device.
Signed-off-by: Vadim Pasternak
---
include/linux/platform_data/mlxreg.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/linux
can't change DMI_BOARD_NAME.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 30 ++
1 file changed, 30 insertions(+)
diff --git a/drivers/platform/x86/mlx-platform.c
b/drivers/platform/x86/mlx-platform.c
index 7a0bd24..912f844 100644
---
are supposed to be defined per
system type bases and include the registers related to system resets
operation, system reset causes monitoring and some kinds of mux selection.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox/Kconfig | 11 ++
drivers/platform/mellanox/Makefile
("platform/x86: Move Mellanox platform hotplug driver to
platform/mellanox")
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox/mlxreg-hotplug.c | 17 +
1 file changed, 17 insertions(+)
diff --git a/drivers/platform/mellanox/mlxreg-hotplug.c
b/drivers/platform/mella
inline functions for adding and removing platform drivers sharing
the same regmap infrastructure.
Motivation of adding them as a static inline to the header file is to
allow reusing of them by not only x86 architecture specific platform
driver.
Signed-off-by: Vadim Pasternak
---
drivers
,
programmable devices version reading and mux select control. This
platform data is passed to mlxreg-io driver.
- The default values for the register, which should be set to these values
at initialization time by regmap infrastructure.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86
Add missing description of dev, regmap, dwork_irq, after_probe in struct
mlxreg_hotplug_priv_data.
Remove dwork field from the structure mlxreg_hotplug_priv_data itself and
for the descriptions, since it is not used.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox/mlxreg-hotplug.c
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Friday, March 23, 2018 1:56 AM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; platform-
> driver-...@vger.kernel.org; linux-kernel@vger.kernel.org
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Friday, February 16, 2018 3:33 AM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; platform-
> driver-...@vger.kernel.org; linux-kernel@vger.kernel.org
busy, it shifts to the available number. This
shift is passed to i2c-mlxcpld driver, the mux base numbers are
incremented by the this shift value and passed to i2c-mux-reg driver, and
also this value is passed to mlxreg-hotplug driver.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox
data, which in their turn could
wait in the deferred state, until all the necessary buses topology is not
exist.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox/mlxreg-hotplug.c | 7 +++
drivers/platform/x86/mlx-platform.c| 10 ++
include/linux/platform_data
Add define for the channels number for mux device, instead of using
hardcoded value inside the code in order to improve code readability.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 5 -
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers
This patchset:
- Adds define for the channels number for mux device.
- Adds differed bus functionality.
- Changes input for device create routine in mlxreg-hotplug driver.
- Adds physical bus number auto detection.
Vadim Pasternak (4):
platform/x86: mlx-platform: Use define for the channel
Change the first input parameter in mlxreg_hotplug_device_create to the
pointer to mlxreg_hotplug private data in order to allow to use the fields
from the private data structure inside this routine.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox/mlxreg-hotplug.c | 12
Ethernet switch);
- SN3410 (6x400GbE plus 48x50GbE Ethernet switch).
Vadim Pasternak (3):
platform/x86: mlx-platform: Add support for new msn274x system type
platform/x86: mlx-platform: Add support for new msn201x system type
platform/x86: mlx-platform: Add support for new 200G IB and
device, which supports Ethernet switching with 32X100G ports line
rate of up to EDR speed.
Signed-off-by: Vadim Pasternak
v1->v2
Comments pointed out by Darren:
- Break the patch into series of patches per system type.
---
drivers/platform/x86/mlx-platform.c |
device, which supports Ethernet switching with 32X100G ports line
rate of up to EDR speed.
Signed-off-by: Vadim Pasternak
v1->v2
Comments pointed out by Darren:
- Break the patch into series of patches per system type.
---
drivers/platform/x86/mlx-platform.c |
: Vadim Pasternak
v1->v2
Comments pointed out by Darren:
- Break the patch into series of patches per system type.
---
drivers/platform/x86/mlx-platform.c | 142
1 file changed, 142 insertions(+)
diff --git a/drivers/platform/x86/mlx-platform.c
b/driv
> -Original Message-
> From: Geert Uytterhoeven [mailto:ge...@linux-m68k.org]
> Sent: Wednesday, February 07, 2018 11:12 AM
> To: Andy Shevchenko ; Darren Hart
> ; Vadim Pasternak
> Cc: Arnd Bergmann ; platform-driver-...@vger.kernel.org;
> linux-kernel@v
Ethernet switch);
- SN3410 (6x400GbE plus 48x50GbE Ethernet switch).
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 298
1 file changed, 298 insertions(+)
diff --git a/drivers/platform/x86/mlx-platform.c
b/drivers/platform/x86/mlx
associated with this signal.
Add definition for interrupt low aggregation signal. On system from
msn21xx family, low aggregation mask should be removed in order to allow
signal hit CPU.
Fixes: 6613d18e9038 ("platform/x86: mlx-platform: Move module from arch/x86")
Signed-off-by: Vadim
Add define for the negative bus Id in order to use it in case no hotplug
device is associated with hotplug interrupt signal. In this case signal
will be handled by mlxreg-hotplug driver, but any device will not be
associated with this signal.
Signed-off-by: Vadim Pasternak
---
drivers/platform
The patchset:
- adds defines for bus numbers, used for system topology description;
- fixes definition for power cables for system family msn21xx;
- introduces support for new Mellanox systems;
Vadim Pasternak (4):
platform/x86: mlx-platform: Use defines for bus assignment
platform/x86: mlx
Add defines the bus Ids, used for hotplug devices topology in order to
improve code readability. Defines added for FAN and power units.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 23 +++
1 file changed, 15 insertions(+), 8 deletions(-)
diff
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Wednesday, January 31, 2018 11:00 PM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux-
> ker...@vger.kernel.org; platform-driver-...@vger.kernel.org
Add hotplug platform driver un-registration in case regmap cache
synchronization failed. In such case hotplug platform driver registration
should be rolled back.
Signed-off-by: Vadim Pasternak
---
drivers/platform/x86/mlx-platform.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Wednesday, January 31, 2018 8:41 PM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux-
> ker...@vger.kernel.org; platform-driver-...@vger.kernel.org
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Saturday, January 27, 2018 1:41 AM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux-
> ker...@vger.kernel.org; platform-driver-...@vger.kernel.org
It fixes issue introduced by commit:
platform/mellanox: mlxreg-hotplug: Modify to use a regmap interface.
In this commit the device parameter in mlxreg_hotplug_device_create has
been dropped, while it is used inside this routine.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox
Verify before creation of hotplug device if the associated adapter number
is negative. It could be in case hotplug event is not associated with
hotplug device.
Signed-off-by: Vadim Pasternak
Signed-off-by: Darren Hart (VMware)
---
drivers/platform/mellanox/mlxreg-hotplug.c | 7 +++
1 file
value required sync, the
second performs sync.
Signed-off-by: Vadim Pasternak
Signed-off-by: Darren Hart (VMware)
---
v11->v12
Comments pointed out by Darren:
- add explanations in commit message;
Fixes added by Vadim:
- add register cache synchronization at the end of mlx-platform prob
> -Original Message-
> From: Darren Hart [mailto:dvh...@infradead.org]
> Sent: Thursday, January 25, 2018 11:47 PM
> To: Vadim Pasternak
> Cc: andy.shevche...@gmail.com; gre...@linuxfoundation.org; linux-
> ker...@vger.kernel.org; platform-driver-...@vger.kernel.org
Adding validation of return code of mlxreg_hotplug_device_create. It could
fail in case the requested adapter is not available or if client can not
be connected to the adapter. Error is to be reported in case of bad flow.
Signed-off-by: Vadim Pasternak
---
drivers/platform/mellanox/mlxreg
1 - 100 of 222 matches
Mail list logo