Skip to content

Added QCS6490 support for Watchdog test #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vnarapar
Copy link
Contributor

@vnarapar vnarapar commented Jun 4, 2025

This commit is to add QCS6490 support to watchdog test as it does not support upstream watchdog

This commit is to add QCS6490 support to watchdog test as it does not
support upstream watchdog

Signed-off-by: Vamsee Narapareddi <[email protected]>
@vnarapar vnarapar requested a review from smuppand June 4, 2025 18:12
@vnarapar
Copy link
Contributor Author

vnarapar commented Jun 4, 2025

@@ -44,8 +44,13 @@ if [ -e /dev/watchdog ]; then
log_pass "$TESTNAME : Test Passed"
echo "$TESTNAME PASS" > "$res_file"
else
log_fail "/dev/watchdog node is not present."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if /dev/watchdog is missing, test could still pass if the kernel configs are correct. But ideally.

  • Validate presence of a watchdog driver (eg: module loaded or DT node)

log_fail "$TESTNAME : Test Failed"
echo "$TESTNAME FAIL" > "$res_file"
CONFIGS="CONFIG_WATCHDOG CONFIG_ARM_SMC_WATCHDOG CONFIG_WATCHDOG_HANDLE_BOOT_ENABLED"
check_kernel_config "$CONFIGS" || {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better check for non-zero with condition for better debuggin in CI.
if [ $? -ne 0 ]; then log_fail "$TESTNAME : Required kernel configs missing" echo "$TESTNAME FAIL" > "$res_file" exit 1 fi

Copy link
Contributor

@smuppand smuppand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Require few enhancements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants