Skip to content

Conversation

@peonix0
Copy link

@peonix0 peonix0 commented Sep 17, 2025

Extend the StatusLed DXE driver to reliably drive LEDs connected through I²C PCA expanders, not just direct GPIOs.

  • Switch event callbacks from TPL_NOTIFY to TPL_CALLBACK to align with the I²C driver’s working with TPL < TPL_NOTIFY.
  • Move the final LED state update from ExitBootServices to BeforeExitBootServices, ensuring the last I²C transaction completes before Boot Services are torn down.

This ensures reliable control of status LEDs via PCA expander GPIO pins without priority conflicts.

Extend the StatusLed DXE driver to reliably drive LEDs connected through
I²C PCA expanders, not just direct GPIOs.

- Switch event callbacks from TPL_NOTIFY to TPL_CALLBACK to align with the I²C
  driver’s working with TPL < TPL_NOTIFY.
- Move the final LED state update from ExitBootServices to
  BeforeExitBootServices, ensuring the last I²C transaction completes before
  Boot Services are torn down.

This ensures reliable control of status LEDs via PCA expander GPIO pins without
priority conflicts.

Signed-off-by: Ajit Singh <[email protected]>
@djkabutar
Copy link

@mariobalanica @strongtz can you look into this once?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants