Re: [PATCH v1 1/3] platform_data/mlxreg: Add field for notification callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 4/30/22 13:58, michaelsh@xxxxxxxxxx wrote:
> From: Michael Shych <michaelsh@xxxxxxxxxx>
> 
> Add notification callback to inform caller that platform driver probing
> has been completed. It allows to caller to perform some initialization
> flow steps depending on specific driver probing completion.
> 
> Signed-off-by: Michael Shych <michaelsh@xxxxxxxxxx>
> Reviewed-by: Vadim Pasternak <vadimp@xxxxxxxxxx>

Thank you for your patch, I've applied this patch to my review-hans 
branch:
https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=review-hans

Note it will show up in my review-hans branch once I've pushed my
local branch there, which might take a while.

Once I've run some tests on this branch the patches there will be
added to the platform-drivers-x86/for-next branch and eventually
will be included in the pdx86 pull-request to Linus for the next
merge-window.

Regards,

Hans



> ---
>  include/linux/platform_data/mlxreg.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/include/linux/platform_data/mlxreg.h b/include/linux/platform_data/mlxreg.h
> index 40185f9d7c14..a6bd74e29b6b 100644
> --- a/include/linux/platform_data/mlxreg.h
> +++ b/include/linux/platform_data/mlxreg.h
> @@ -216,6 +216,8 @@ struct mlxreg_core_platform_data {
>   * @mask_low: low aggregation interrupt common mask;
>   * @deferred_nr: I2C adapter number must be exist prior probing execution;
>   * @shift_nr: I2C adapter numbers must be incremented by this value;
> + * @handle: handle to be passed by callback;
> + * @completion_notify: callback to notify when platform driver probing is done;
>   */
>  struct mlxreg_core_hotplug_platform_data {
>  	struct mlxreg_core_item *items;
> @@ -228,6 +230,8 @@ struct mlxreg_core_hotplug_platform_data {
>  	u32 mask_low;
>  	int deferred_nr;
>  	int shift_nr;
> +	void *handle;
> +	int (*completion_notify)(void *handle, int id);
>  };
>  
>  #endif /* __LINUX_PLATFORM_DATA_MLXREG_H */




[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux