diff options
author | Vadim Pasternak <vadimp@nvidia.com> | 2021-02-08 21:16:06 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-02-09 11:35:44 +0100 |
commit | a39bd92e92b96d05d676fb5c9493cf1c911d2a0a (patch) | |
tree | bceaf899110092a802bf8f4db542960ae87c5114 /drivers/i2c | |
parent | i2c: mux: mlxcpld: Extend supported mux number (diff) | |
download | linux-a39bd92e92b96d05d676fb5c9493cf1c911d2a0a.tar.xz linux-a39bd92e92b96d05d676fb5c9493cf1c911d2a0a.zip |
i2c: mux: mlxcpld: Add callback to notify mux creation completion
Add notification to inform caller that mux objects array has been
created. It allows to user, invoked platform device registration for
"i2c-mux-mlxcpld" driver, to be notified that mux infrastructure is
available, and thus some devices could be connected to this
infrastructure.
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Acked-by: Peter Rosin <peda@axentia.se>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/muxes/i2c-mux-mlxcpld.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/i2c/muxes/i2c-mux-mlxcpld.c b/drivers/i2c/muxes/i2c-mux-mlxcpld.c index 5e0672f9979b..1a879f6a31ef 100644 --- a/drivers/i2c/muxes/i2c-mux-mlxcpld.c +++ b/drivers/i2c/muxes/i2c-mux-mlxcpld.c @@ -159,6 +159,10 @@ static int mlxcpld_mux_probe(struct platform_device *pdev) goto virt_reg_failed; } + /* Notify caller when all channels' adapters are created. */ + if (pdata->completion_notify) + pdata->completion_notify(pdata->handle, muxc->parent, muxc->adapter); + return 0; virt_reg_failed: |