Skip to content

Commit 570cdc0

Browse files
committed
power/qcom/smb5-lib: return early on some legacy usb devices
To fix behavior of Razer Kishi with passthrough charging. Previously input would fail after usb connection.
1 parent a127b71 commit 570cdc0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/power/supply/qcom/smb5-lib.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7995,6 +7995,12 @@ static void set_usb_switch(struct smb_charger *chg, bool enable)
79957995
return;
79967996
}
79977997

7998+
if (chg->real_charger_type == POWER_SUPPLY_TYPE_USB || chg->typec_legacy ||
7999+
chg->typec_mode == POWER_SUPPLY_TYPEC_SOURCE_DEFAULT) {
8000+
pr_info("%s:OP FIXUP: early return for passthrough\n", __func__);
8001+
return;
8002+
}
8003+
79988004
if (chg->pd_active) {
79998005
if (chg->typec_mode == POWER_SUPPLY_TYPEC_SINK ||
80008006
chg->typec_mode == POWER_SUPPLY_TYPEC_SINK_DEBUG_ACCESSORY ||

0 commit comments

Comments
 (0)