platform/mellanox: mlxreg-hotplug: Add support for new capability register
authorVadim Pasternak <vadimp@mellanox.com>
Mon, 13 Jan 2020 16:28:38 +0000 (16:28 +0000)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 13 Jan 2020 19:02:46 +0000 (21:02 +0200)
commit0e41bf06eefe969ee5092f4ec55ae1b0ff9c1ea0
tree6c3bc174b65dc7b506a69e9c52a2db54adc7e967
parent4845460421d433dc41b53ea903f1ab55900184bf
platform/mellanox: mlxreg-hotplug: Add support for new capability register

Add support for capability register, which is used for detection of the
actual number of interrupt capable components within the particular
group, supported by the specific system.
Such components could be for example the number of power units and
interrupts related to these units.
The motivation is to avoid adding a new code in the future in order to
distinct between the systems type supported different number of the
components like power supplies, FANs, ASICs, line cards.

Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/mellanox/mlxreg-hotplug.c
include/linux/platform_data/mlxreg.h