platform/x86: mlx-platform: Fix power cable setting for msn21xx family
authorVadim Pasternak <vadimp@mellanox.com>
Fri, 2 Feb 2018 08:45:47 +0000 (08:45 +0000)
committerDarren Hart (VMware) <dvhart@infradead.org>
Fri, 9 Feb 2018 01:47:51 +0000 (17:47 -0800)
commit6016f7d54bc49e3c570d5c7adbb463fe87e19dd7
treef9799e11aa602edd4715fa9dbd66adeead039fbd
parent1778567a2063c3027f3ab03748fadab5840eba33
platform/x86: mlx-platform: Fix power cable setting for msn21xx family

Add dedicated structure with power cable setting for Mellanox msn21xx
family. These systems do not have a physical device for the power unit
controller. When the power cable is inserted or removed, the relevant
interrupt signal is handled, the status is updated, but no device is
associated with the signal.

Add definition for interrupt low aggregation signal. On system from
msn21xx family, low aggregation mask should be removed in order to allow
signal to hit CPU.

Fixes: 6613d18e9038 ("platform/x86: mlx-platform: Move module from arch/x86")
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
drivers/platform/x86/mlx-platform.c