-
Notifications
You must be signed in to change notification settings - Fork 8.4k
drivers: watchdog: sf32lb: fix return errors #100778
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
base: main
Are you sure you want to change the base?
Conversation
| return -EINVAL; | ||
| } | ||
|
|
||
| data->timeout_valid = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this ever set to false, or could be set if de-configured?
drivers/watchdog/wdt_sf32lb.c
Outdated
| } | ||
|
|
||
| if (wdt_sf32lb_is_enabled(dev)) { | ||
| LOG_ERR("Watchdog already setup"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| LOG_ERR("Watchdog already setup"); | |
| LOG_ERR("Setup not allowed with watchdog enabled"); |
| if (!wdt_sf32lb_is_enabled(dev)) { | ||
| return -EFAULT; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for consistency, log err?
drivers/watchdog/wdt_sf32lb.c
Outdated
| struct wdt_sf32lb_data *data = dev->data; | ||
|
|
||
| if (wdt_sf32lb_is_enabled(dev)) { | ||
| LOG_ERR("Watchdog already setup"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| LOG_ERR("Watchdog already setup"); | |
| LOG_ERR("Timeout install not allowed with watchdog enabled"); |
Fix watchdog driver return error Signed-off-by: Qingsong Gou <gouqs@hotmail.com>
|



Fix watchdog driver return error