This is an automated email from the ASF dual-hosted git repository.
archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 74ba2d2219 some replacements were omitted.
74ba2d2219 is described below
commit 74ba2d22190882caf7a1fa04342cf58670e07014
Author: hujun5 <[email protected]>
AuthorDate: Tue Dec 17 17:03:02 2024 +0800
some replacements were omitted.
fix regression from https://github.com/apache/nuttx/pull/15219
Signed-off-by: hujun5 <[email protected]>
---
arch/arm/src/samv7/sam_gpio.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/src/samv7/sam_gpio.c b/arch/arm/src/samv7/sam_gpio.c
index 19b6708b74..511d8a296b 100644
--- a/arch/arm/src/samv7/sam_gpio.c
+++ b/arch/arm/src/samv7/sam_gpio.c
@@ -536,7 +536,7 @@ int sam_configgpio(gpio_pinset_t cfgset)
/* Disable writing to GPIO registers */
putreg32(PIO_WPMR_WPEN | PIO_WPMR_WPKEY, base + SAM_PIO_WPMR_OFFSET);
- leave_critical_section(flags);
+ spin_unlock_irqrestore(&g_configgpio_lock, flags);
return ret;
}
@@ -666,7 +666,7 @@ int sam_dumpgpio(uint32_t pinset, const char *msg)
getreg32(base + SAM_PIO_PCISR_OFFSET),
getreg32(base + SAM_PIO_PCRHR_OFFSET));
- leave_critical_section(flags);
+ spin_unlock_irqrestore(&g_configgpio_lock, flags);
return OK;
}
#endif