platform: mellanox: Add new attributes
authorVadim Pasternak <vadimp@nvidia.com>
Tue, 22 Aug 2023 11:34:36 +0000 (11:34 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 23 Aug 2023 15:31:27 +0000 (17:31 +0200)
commit4d54f55a4db34fa8fad104a20c64ec9cb2408e10
tree6143066dc448c9ff9b4c51316a5acf1d504dc140
parent7e38a7422f128e7d7ba24b444e957d585dbb272f
platform: mellanox: Add new attributes

Add new attribute:
"lid_open" - to indicate system intrusion detection.
"reset_long_pwr_pb" - to indicate that system has been reset due to
long press of power button.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Michael Shych <michaelsh@nvidia.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230822113451.13785-2-vadimp@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/mlx-platform.c