OSDN Git Service

platform: mellanox: mlx-platform: Add reset cause attribute
authorVadim Pasternak <vadimp@nvidia.com>
Tue, 22 Aug 2023 11:34:40 +0000 (11:34 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 23 Aug 2023 15:31:28 +0000 (17:31 +0200)
commit7d3d0fe4e96df4e0812f5054ed36af466f547cdb
tree2895b6824277d2b0789d8143fbdcb3715651f0c9
parent0d228ff9c1c73dffa94cb785e308ca7d649aa25e
platform: mellanox: mlx-platform: Add reset cause attribute

Extend IO registers description for some system types with reset cause
attribute "reset_swb_dc_dc_pwr_fail" to indicate reset caused by switch
board DC-DC power failure.

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-6-vadimp@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/mlx-platform.c