Skip to content

Conversation

@ydamigos
Copy link
Contributor

@ydamigos ydamigos commented Jul 29, 2024

entropy_smartbond:

  • Clear pending interrupts after disabling TRNG to avoid smartbond_trng_isr getting called with TRNG disabled.

gpio_smartbond:

  • Set pin to input with no resistors selected when it is configured as GPIO_DISCONNECTED.
  • Remove pdc entry only if it exists when CONFIG_PM is set.
  • Writing directly to Px_DATA_REG modifies pins which are not indicated by mask, causing gpio_basic_api test to fail.
    Use Px_SET_DATA_REG and Px_RESET_DATA_REG to modify only pins indicated by mask.

Fixes #77269

Clear pending interrupts after disabling TRNG to avoid
smartbond_trng_isr getting called with TRNG disabled

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
…NECTED

Set pin to input with no resistors selected when it is configured as
GPIO_DISCONNECTED.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
Remove pdc entry only if index exists when CONFIG_PM
is set.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
Writing directly to Px_DATA_REG modifies pins which are not
indicated by mask, causing gpio_basic_api test to fail.

Use Px_SET_DATA_REG and Px_RESET_DATA_REG to modify only
pins indicated by mask.

Signed-off-by: Ioannis Damigos <ioannis.damigos.uj@renesas.com>
@ioannis-karachalios ioannis-karachalios added bug The issue is a bug, or the PR is fixing a bug backport v3.7-branch Request backport to the v3.7-branch labels Aug 19, 2024
@nashif nashif merged commit 782967a into zephyrproject-rtos:main Aug 19, 2024
@ydamigos ydamigos deleted the da1469x-fix-gpio branch August 20, 2024 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Crypto / RNG area: GPIO backport v3.7-branch Request backport to the v3.7-branch bug The issue is a bug, or the PR is fixing a bug platform: Renesas SmartBond Renesas Electronics Corporation, SmartBond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

da1469x: entropy and gpio drivers throw assertions

6 participants