Skip to content

Comments

common/power.c: Keep USB power on while system is shut off and on AC#76

Merged
filipleple merged 2 commits intomasterfrom
keep_usbpd_on
Aug 29, 2025
Merged

common/power.c: Keep USB power on while system is shut off and on AC#76
filipleple merged 2 commits intomasterfrom
keep_usbpd_on

Conversation

@mkopec
Copy link
Member

@mkopec mkopec commented Aug 28, 2025

This prevents suddenly removing power from the PD controller, which does not like such events if a USB-C device is connected. When that happens, the PD controller may glitch, causing
Dasharo/dasharo-issues#1505

To avoid this, simply keep the USB power plane on while the system is on AC power. This has the side effect of enabling Always On USB always enabled when on AC power, but does not affect the function while on battery power only.

@mkopec
Copy link
Member Author

mkopec commented Aug 28, 2025

Fixes Dasharo/dasharo-issues#1505

This prevents suddenly removing power from the PD controller, which does
not like such events if a USB-C device is connected. When that happens,
the PD controller may glitch, causing
Dasharo/dasharo-issues#1505

To avoid this, simply keep the USB power plane on while the system is on
AC power. This has the side effect of enabling Always On USB always
enabled when on AC power, but does not affect the function while on
battery power only.

Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
Copy link
Member

@filipleple filipleple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls fix precommit, a typo got introduced in the previous PR on this issue here: https://github.com/Dasharo/ec/pull/73/files#diff-e349bcb69bec1ff6bb6ce1bd44797521246ea36281d682215e2ecae390835474R53

Signed-off-by: Michał Kopeć <michal.kopec@3mdeb.com>
@mkopec
Copy link
Member Author

mkopec commented Aug 29, 2025

@filipleple b04142c

Copy link
Member

@filipleple filipleple left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, will test on HW along with the coreboot PR and merge

@filipleple filipleple merged commit b2e45e9 into master Aug 29, 2025
11 checks passed
@mkopec
Copy link
Member Author

mkopec commented Aug 29, 2025

Tested on V540TU with Wavlink UMD05 Pro Rev. E, issue no longer reproduces.

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