Implement WDIOC_GETBOOTSTATUS in test code to be able to check if watchdog drivers have proper support of WDIOF_CARDRESET. Include a segmentation fault fix, as it might generate merge conflicts if provided separately. v2: - Fix segmentation fault caused by a previous commit. - Don't break processing of other arguments when passing `-s`. Eugeniu Rosca (2): selftests: watchdog: fix segmentation fault due to wrong argv parsing selftests: watchdog: get boot reason via WDIOC_GETBOOTSTATUS tools/testing/selftests/watchdog/watchdog-test.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) -- 2.13.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kselftest" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html