platform: mellanox: Split initialization procedure
authorVadim Pasternak <vadimp@nvidia.com>
Wed, 8 Feb 2023 06:33:23 +0000 (08:33 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 10 Feb 2023 16:43:33 +0000 (17:43 +0100)
commit0170f616f496fcaf25dde0fea042880d4af3089a
tree2efdf02622787fba8009c76ec3c164033b018d4b
parentdd635e33b5c9a3ad3712abae7b845f4353da8cef
platform: mellanox: Split initialization procedure

Split mlxplat_init() into two by adding mlxplat_pre_init().

Motivation is to prepare 'mlx-platform' driver to support systems
equipped PCIe based programming logic device.

Such systems are supposed to use different system resources, thus this
commit separates resources allocation related code.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Michael Shych <michaelsh@nvidia.com>
Link: https://lore.kernel.org/r/20230208063331.15560-7-vadimp@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/mlx-platform.c