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

Commit dfc885c1 authored by Mayank Rana's avatar Mayank Rana
Browse files

dwc3-msm: Remove unwanted delay used on receiving VBUS notification



USB driver is not directly responsible to detect USB charger type.
Hence remove 12 jiffies delay used on receiving VBUS notification
to queue resume_work.

CRs-Fixed: 1073697
Change-Id: I8c20568595d06b3aef48dee4679a1ac6eb87ba97
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 0f4a079d
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -2482,13 +2482,9 @@ static int dwc3_msm_power_set_property_usb(struct power_supply *psy,

		mdwc->vbus_active = val->intval;
		if (dwc->is_drd && !mdwc->in_restart) {
			/*
			 * Set debouncing delay to 120ms. Otherwise battery
			 * charging CDP complaince test fails if delay > 120ms.
			 */
			dbg_event(0xFF, "Q RW (vbus)", val->intval);
			queue_delayed_work(mdwc->dwc3_wq,
					&mdwc->resume_work, 12);
					&mdwc->resume_work, 0);
		}
		break;
	case POWER_SUPPLY_PROP_ONLINE: