platform: mellanox: mlx-platform: Add reset callback
authorVadim Pasternak <vadimp@nvidia.com>
Tue, 22 Aug 2023 11:34:44 +0000 (11:34 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 23 Aug 2023 15:31:29 +0000 (17:31 +0200)
commitb411dc55a735337a9d7c7dad605bad79e7266104
tree14282d0a690c5f2cc8c1f9f7b0262a66b9fef2d6
parentda9a7f6ef0abcff12d2fc0381d7c0a7ac2c96c6d
platform: mellanox: mlx-platform: Add reset callback

On L1 switches reset should include special actions against CPLD device
for performing graceful operations.
For that purpose, special PLATFORM_RESET# signal should be indicated.

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