Skip to content
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

driver: wdt: esp32: fix incorrect status check inside isr #81890

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions drivers/watchdog/wdt_esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ static int wdt_esp32_init(const struct device *dev)

wdt_hal_init(&data->hal, config->wdt_inst, MWDT_TICK_PRESCALER, true);

flags = ESP_PRIO_TO_FLAGS(config->irq_priority) | ESP_INT_FLAGS_CHECK(config->irq_flags) |
ESP_INTR_FLAG_SHARED;
flags = ESP_PRIO_TO_FLAGS(config->irq_priority) | ESP_INT_FLAGS_CHECK(config->irq_flags);
ret = esp_intr_alloc(config->irq_source, flags, (ISR_HANDLER)wdt_esp32_isr, (void *)dev,
NULL);

Expand Down Expand Up @@ -216,11 +215,6 @@ static void wdt_esp32_isr(void *arg)
{
const struct device *dev = (const struct device *)arg;
struct wdt_esp32_data *data = dev->data;
uint32_t status = REG_READ(RTC_CNTL_INT_ST_REG);

if (!(status & RTC_CNTL_WDT_INT_ST)) {
return;
}

if (data->callback) {
data->callback(dev, 0);
Expand Down
Loading