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

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

Merge "dwc3-msm: Notify proper current values in case of floating charger"

parents 517f7db9 ff990082
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3720,7 +3720,10 @@ static int dwc3_msm_gadget_vbus_draw(struct dwc3_msm *mdwc, unsigned mA)

	psy_type = get_psy_type(mdwc);
	if (psy_type == POWER_SUPPLY_TYPE_USB_FLOAT) {
		if (!mA)
			pval.intval = -ETIMEDOUT;
		else
			pval.intval = 1000 * mA;
		goto set_prop;
	}