platform/x86: mlx-platform: Configure notifier callbacks for modular system
authorVadim Pasternak <vadimp@nvidia.com>
Sat, 2 Oct 2021 09:32:33 +0000 (12:32 +0300)
committerHans de Goede <hdegoede@redhat.com>
Tue, 19 Oct 2021 08:41:55 +0000 (10:41 +0200)
commit67eb006cc1d167db33de2fe87988198b9806e794
tree975956eb0c8dd2b613e5177f8500a070e6ae3d94
parentbb1023b6da379985ff888dcd7bc601735d02267a
platform/x86: mlx-platform: Configure notifier callbacks for modular system

Add event notifier callbacks for modular system line cards. These
callbacks are to be passed to "mlxreg-hotplug" driver by line card
driver during probing. Then, when any line card related hotplug event
is received (insertion ,power, synch, ready), hotplug driver will
invoke callback for the relevant line card.

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