History

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.

Vadim Pasternak committed 6 years ago

Commit 0e41bf01 parent 48454602 files · +16 −0Browse files

Showing the changes to include/linux (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/mlxreg.h+2−0
@@ -101,6 +101,7 @@ struct mlxreg_core_data { · 100 unmodified lines
101101 * @aggr_mask: group aggregation mask;
102102 * @reg: group interrupt status register;
103103 * @mask: group interrupt mask;
104+ * @capability: group capability register;
104105 * @cache: last status value for elements fro the same group;
105106 * @count: number of available elements in the group;
106107 * @ind: element's index inside the group;
@@ -112,6 +113,7 @@ struct mlxreg_core_item { · 5 unmodified lines
112113 u32 aggr_mask;
113114 u32 reg;
114115 u32 mask;
116+ u32 capability;
115117 u32 cache;
116118 u8 count;
117119 u8 ind;