]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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, 29 May 2025 09:12:31 +0000 (11:12 +0200)
commitc7a256e6cf51f9e9db32f2ad9ccdcc52d617c098
tree5ba762b4df5acd57c29fb2f0f12d87d4f403f991
parent5c45bba53d9e122952a4951e51f82f6c5ce6ad50
staging: vchiq_arm: Create keep-alive thread during probe

[ Upstream commit 86bc8821700665ad3962f3ef0d93667f59cf7031 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c