Skip to content

Comments

Rockchip/StatusLedDxe: Enable PCA expander-backed Status LED#238

Open
peonix0 wants to merge 1 commit intoedk2-porting:masterfrom
vicharak-in:pca_led
Open

Rockchip/StatusLedDxe: Enable PCA expander-backed Status LED#238
peonix0 wants to merge 1 commit intoedk2-porting:masterfrom
vicharak-in:pca_led

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 <ajeetsinghchahar2@gmail.com>
@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