Re: [PATCH] selftests: watchdog: skip ping loop if WDIOF_KEEPALIVEPING not supported

From: Shuah Khan
Date: Tue Sep 16 2025 - 18:57:17 EST


On 9/14/25 09:28, Akhilesh Patil wrote:
Check if watchdog device supports WDIOF_KEEPALIVEPING option before
entering keep_alive() ping test loop. Fix watchdog-test silently looping
if ioctl based ping is not supported by the device. Exit from test in
such case instead of stucking in loop executing failing keep_alive()

Fixes: d89d08ffd2c5 ("selftests: watchdog: Fix ioctl SET* error paths to take oneshot exit path")
Signed-off-by: Akhilesh Patil <akhilesh@xxxxxxxxxxxxx>
---



Applied to linux-kselftest next branch for Linux 6.18-rc1

thanks,
-- Shuah