platform: mellanox: mlxreg-hotplug: Extend condition for notification callback processing
authorVadim Pasternak <vadimp@nvidia.com>
Tue, 22 Aug 2023 11:34:49 +0000 (11:34 +0000)
committerHans de Goede <hdegoede@redhat.com>
Wed, 23 Aug 2023 15:31:30 +0000 (17:31 +0200)
commit01a4cce89288f927bd6a01efb20e2d366deb6732
treef3027e2ff9b1e6172b5f72f57ee202fb08b4a104
parent02daa222fbdd6afe52c25e5c2894d53946a4260d
platform: mellanox: mlxreg-hotplug: Extend condition for notification callback processing

Allow processing of notification callback in routine
mlxreg_hotplug_device_create() in case hotplug object is configured
with action "MLXREG_HOTPLUG_DEVICE_NO_ACTION" in case no I2C parent bus
is specified.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Michael Shych <michaelsh@nvidia.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230822113451.13785-15-vadimp@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/mellanox/mlxreg-hotplug.c