Skip to content
Browse files

drivers/gpio: stm32h7: Don't use HSEM_CR_COREID_CURRENT as process id

HSEM_CR_COREID_CURRENT was used as process number parameter in
LL_HSEM_ReleaseLock function. While this is working, this
define should not be used in this context.
Also, process number parameter is actually proposed in case of HSEM
use in inter-process context but is not required for inter-core
resource lock. Replace HSEM_CR_COREID_CURRENT with 0.

Signed-off-by: Erwan Gouriou <>
  • Loading branch information...
erwango authored and galak committed Jul 5, 2019
1 parent 18d35cc commit b44f0eacd5aa767bb052f55470af12b86b0b1195
Showing with 1 addition and 1 deletion.
  1. +1 −1 drivers/gpio/gpio_stm32.c
@@ -322,7 +322,7 @@ static int gpio_stm32_config(struct device *dev, int access_op,

#if defined(CONFIG_STM32H7_DUAL_CORE)
LL_HSEM_ReleaseLock(HSEM, LL_HSEM_ID_1, 0);
#endif /* CONFIG_STM32H7_DUAL_CORE */

return 0;

0 comments on commit b44f0ea

Please sign in to comment.
You can’t perform that action at this time.