aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorVadim Pasternak <vadimp@mellanox.com>2018-02-13 17:09:34 -0500
committerDarren Hart (VMware) <dvhart@infradead.org>2018-03-23 19:14:28 -0400
commitd726f6b1997528354e1053accbb6223981e81802 (patch)
tree86922fc85a8de11ef2d56dfe780f140d92e16bc7 /include/linux/platform_data
parentd066f144d66728b8187bda5ef966b44c58935484 (diff)
platform/x86: mlx-platform: Add deffered bus functionality
mlx-platform activates i2c-mux-reg, which creates buses needed by mlxreg-hotplug. If the mlxreg-hotplug probe runs before the i2c-mux-reg probe completes, it may attempt to connect a device to an adapter number that has not been created yet, and fail. Make mlx-platform driver record the highest bus number in mlxreg-hotplug platform data and defer mlxreg-hotplug probe until all the buses are created. Signed-off-by: Vadim Pasternak <vadimp@mellanox.com> [dvhart: rewrite commit message more concisely] Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/mlxreg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h
index fcdc707eab99..262910967476 100644
--- a/include/linux/platform_data/mlxreg.h
+++ b/include/linux/platform_data/mlxreg.h
@@ -129,6 +129,7 @@ struct mlxreg_core_platform_data {
129 * @mask: top aggregation interrupt common mask; 129 * @mask: top aggregation interrupt common mask;
130 * @cell_low: location of low aggregation interrupt register; 130 * @cell_low: location of low aggregation interrupt register;
131 * @mask_low: low aggregation interrupt common mask; 131 * @mask_low: low aggregation interrupt common mask;
132 * @deferred_nr: I2C adapter number must be exist prior probing execution;
132 */ 133 */
133struct mlxreg_core_hotplug_platform_data { 134struct mlxreg_core_hotplug_platform_data {
134 struct mlxreg_core_item *items; 135 struct mlxreg_core_item *items;
@@ -139,6 +140,7 @@ struct mlxreg_core_hotplug_platform_data {
139 u32 mask; 140 u32 mask;
140 u32 cell_low; 141 u32 cell_low;
141 u32 mask_low; 142 u32 mask_low;
143 int deferred_nr;
142}; 144};
143 145
144#endif /* __LINUX_PLATFORM_DATA_MLXREG_H */ 146#endif /* __LINUX_PLATFORM_DATA_MLXREG_H */