diff options
| author | Benson Leung <[email protected]> | 2025-07-17 20:08:05 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-07-21 14:33:06 +0000 |
| commit | af833e7f7db3cf4c82f063668e1b52297a30ec18 (patch) | |
| tree | 72d50534d8c9a26c44501e4fb6489064dadac533 /rust/helpers/pci.c | |
| parent | usb: typec: fusb302: cache PD RX state (diff) | |
| download | kernel-af833e7f7db3cf4c82f063668e1b52297a30ec18.tar.gz kernel-af833e7f7db3cf4c82f063668e1b52297a30ec18.zip | |
usb: typec: ucsi: psy: Set current max to 100mA for BC 1.2 and Default
ucsi_psy_get_current_max would return 0mA as the maximum current if
UCSI detected a BC or a Default USB Power sporce.
The comment in this function is true that we can't tell the difference
between DCP/CDP or SDP chargers, but we can guarantee that at least 1-unit
of USB 1.1/2.0 power is available, which is 100mA, which is a better
fallback value than 0, which causes some userspaces, including the ChromeOS
power manager, to regard this as a power source that is not providing
any power.
In reality, 100mA is guaranteed from all sources in these classes.
Signed-off-by: Benson Leung <[email protected]>
Reviewed-by: Jameson Thies <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Reviewed-by: Sebastian Reichel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions
