Skip to content

Commit

Permalink
drivers/battery: Fix Goldfish Battery x64 unresponsive interrupt issue
Browse files Browse the repository at this point in the history
Signed-off-by: liwenxiang1 <[email protected]>
  • Loading branch information
xianglyc authored and xiaoxiang781216 committed Oct 9, 2024
1 parent a6f8730 commit 0647b49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/power/battery/goldfish_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,9 @@ int goldfish_battery_register(FAR void *regs, int irq)
goto fail;
}

GOLDFISH_BATTERY_WRITE(data, BATTERY_INT_ENABLE, BATTERY_INT_MASK);
up_enable_irq(data->irq);
GOLDFISH_BATTERY_WRITE(data, BATTERY_INT_ENABLE, BATTERY_INT_MASK);

batinfo("goldfish_battery_register over");
return 0;
fail:
Expand Down

0 comments on commit 0647b49

Please sign in to comment.