Bug 2223185 - USBC Port stops charging on some un/plug action
Summary: USBC Port stops charging on some un/plug action
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 38
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-16 10:27 UTC by 9Lukas5
Modified: 2023-07-16 10:34 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
dmesg log with USBC0 ucsi_acpi lines in it (28.66 KB, text/plain)
2023-07-16 10:33 UTC, 9Lukas5
no flags Details
dmesg log with GET_CONNECTOR_STATUS failed (24.42 KB, text/plain)
2023-07-16 10:34 UTC, 9Lukas5
no flags Details

Description 9Lukas5 2023-07-16 10:27:21 UTC
I'm really sorry, not being able to provide a definite way to guranteed reproduce it, as I sometimes get it, and sometimes don't.

I have one USB-C Port, capable of Data transfer charging through and USB-PD (Power Delivery). Often when I use a Hub with USB-PD passthrough capabalities I get the situation that my Port locks charging completely on some point when dis-/reconncting the Hub from the laptop, or the power brick from the Hub, leaving the USB-connection between Hub and laptop plugged in.

If the port locks down, nothing brings it back until I reboot into the BIOS and disable the built-in battery. This mode is thought to be enabled before opening the device, so this seems to reset the USB-controller on the board I guess?

I tried to narrow down a specific kernel version, but as I can't find a guaranteed way to reproduce it, I can't really say if the problem exists or doesn't for sure.

What I found in some, but not all, dmesg-outputs during the un-/plug trials is this:

`ucsi_acpi USBC000:00: UCSI_GET_PDOS failed (-5)`
and sometimes also this:
`ucsi_acpi USBC000:00: con1: failed to register partner alt modes (-5)`

The second one is interesting, as my Port doesn't support display alternate mode^^

Reproducible: Sometimes

Steps to Reproduce:
1. start laptop without Hub attached
2. connect power-brick and Hub
3. connect hub and laptop, it charges
4. disconnect and reconnect Hub<->laptop
5. disconnect and reconnect Hub<->power brick
6. disconnect Hub<->laptop, disconnect Hub<->power brick, connect Hub<->laptop, connect Hub<->power brick
Actual Results:  
Sometimes along the way it didn't start charging anymore.

Expected Results:  
It should always start charging again

Device:
Lenovo Ideapad Flex5 14ARE05
AMD Ryzen 7 4700U
Firmware/BIOS: EECN41WW
Kernel 6.3.12-200.fc38.x86_64

Comment 1 9Lukas5 2023-07-16 10:33:14 UTC
Created attachment 1976057 [details]
dmesg log with USBC0 ucsi_acpi lines in it

Comment 2 9Lukas5 2023-07-16 10:34:03 UTC
Created attachment 1976058 [details]
dmesg log with GET_CONNECTOR_STATUS failed


Note You need to log in before you can comment on or make changes to this bug.