Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e3ea5f3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-smbcharger: allow noncompliant chargers to parallel charge"

parents 26b4aa0e f6bceac2
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -1187,8 +1187,13 @@ static bool smbchg_is_parallel_usb_ok(struct smbchg_chip *chip)
		return false;
	}

	if (get_usb_supply_type(reg) != POWER_SUPPLY_TYPE_USB_DCP) {
		pr_smb(PR_STATUS, "not a DCP, skipping\n");
	if (get_usb_supply_type(reg) == POWER_SUPPLY_TYPE_USB_CDP) {
		pr_smb(PR_STATUS, "CDP adapter, skipping\n");
		return false;
	}

	if (get_usb_supply_type(reg) == POWER_SUPPLY_TYPE_USB) {
		pr_smb(PR_STATUS, "SDP adapter, skipping\n");
		return false;
	}