staging: vchiq_arm: Create keep-alive thread during probe
authorStefan Wahren <wahrenst@gmx.net>
Sun, 9 Mar 2025 12:50:13 +0000 (13:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 14:11:20 +0000 (07:11 -0700)
commit86bc8821700665ad3962f3ef0d93667f59cf7031
treebadcda89d8d9c095590d806eb48ab3d3932717ae
parentcfb320d990919836b49bd090c6c232c6c4d90b41
staging: vchiq_arm: Create keep-alive thread during probe

Creating the keep-alive thread in vchiq_platform_init_state have
the following advantages:
- abort driver probe if kthread_create fails (more consistent behavior)
- make resource release process easier

Since vchiq_keepalive_thread_func is defined below
vchiq_platform_init_state, the latter must be moved.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://lore.kernel.org/r/20250309125014.37166-5-wahrenst@gmx.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c