Loading
hwmon: (corsair-cpro) Use complete_all() instead of complete() in ccp_raw_event()
stable inclusion from stable-v5.10.217 commit 5b37ce7bb223b3ff486c9b989e6aad0d742da2ae category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAWLXC Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=5b37ce7bb223b3ff486c9b989e6aad0d742da2ae -------------------------------- [ Upstream commit 3a034a7b0715eb51124a5263890b1ed39978ed3a ] In ccp_raw_event(), the ccp->wait_input_report completion is completed once. Since we're waiting for exactly one report in send_usb_cmd(), use complete_all() instead of complete() to mark the completion as spent. Fixes: 40c3a445 ("hwmon: add Corsair Commander Pro driver") Signed-off-by:Aleksa Savic <savicaleksa83@gmail.com> Acked-by:
Marius Zachmann <mail@mariuszachmann.de> Link: https://lore.kernel.org/r/20240504092504.24158-3-savicaleksa83@gmail.com Signed-off-by:
Guenter Roeck <linux@roeck-us.net> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng1 <sanglipeng1@jd.com>