]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: turris-mox-rwtm: Fix checking return value of wait_for_completion_timeout()
authorMarek Behún <kabel@kernel.org>
Mon, 15 Jul 2024 11:59:11 +0000 (13:59 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 15 Jul 2024 14:57:48 +0000 (16:57 +0200)
commit8467cfe821ac3526f7598682ad5f90689fa8cc49
tree145218010fd10f4eeab12e146978f47b0b058610
parent0bafb172b111ab27251af0eb684e7bde9570ce4c
firmware: turris-mox-rwtm: Fix checking return value of wait_for_completion_timeout()

The wait_for_completion_timeout() function returns 0 if timed out, and a
positive value if completed. Fix the usage of this function.

Fixes: 389711b37493 ("firmware: Add Turris Mox rWTM firmware driver")
Fixes: 2eab59cf0d20 ("firmware: turris-mox-rwtm: fail probing when firmware does not support hwrng")
Signed-off-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/firmware/turris-mox-rwtm.c