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 committed Oct 9, 2024
1 parent 90836e5 commit 6ffb0cb
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 6ffb0cb

Please sign in to comment.