Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: gpio: pcal64xxa: give semaphore in case of error #68813

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

vgeneves
Copy link
Contributor

@vgeneves vgeneves commented Feb 9, 2024

In function pcal64xxa_process_input, lock was not released in case of error when calling inputs_read.
This was causing an infinite wait in the following calls of functions using I2C bus.

drivers/gpio/gpio_pcal64xxa.c Outdated Show resolved Hide resolved
drivers/gpio/gpio_pcal64xxa.c Outdated Show resolved Hide resolved
@MrMarteng
Copy link
Collaborator

In function pcal64xxa_process_input, lock was not released in case of error when calling inputs_read. This was causing an infinite wait in the following calls of functions using I2C bus.

Nice catch of this bug!

@vgeneves vgeneves force-pushed the pcal64xxa branch 2 times, most recently from 6806964 to 10d2905 Compare February 12, 2024 17:35
@zephyrbot zephyrbot added the Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc. label Feb 12, 2024
@vgeneves
Copy link
Contributor Author

vgeneves commented Mar 7, 2024

Hi @MrMarteng, @mnkp could you take a look at the last version.

Thanks

@vgeneves vgeneves force-pushed the pcal64xxa branch 2 times, most recently from 944f3be to 410e78e Compare May 22, 2024 11:56
In function pcal64xxa_process_input, lock was not released in case of
error when calling inputs_read.
This was causing an infinite wait in the following calls of functions
using I2C bus.

Signed-off-by: Vincent Geneves <[email protected]>
@kartben
Copy link
Collaborator

kartben commented Jun 7, 2024

rebased (once more) to trigger stuck CI

@zephyrbot zephyrbot added the size: XS A PR changing only a single line of code label Jun 7, 2024
@nashif nashif merged commit e21a021 into zephyrproject-rtos:main Jun 7, 2024
24 checks passed
@vgeneves vgeneves deleted the pcal64xxa branch June 10, 2024 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: GPIO size: XS A PR changing only a single line of code Trivial Changes that can be reviewed by anyone, i.e. doc changes, minor build system tweaks, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants