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

Commit aaf69710 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: eud: Update the state of extcon too during probe"

parents 09e61018 e9e0c0ec
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -717,6 +717,22 @@ static int msm_eud_probe(struct platform_device *pdev)
	/* Proceed enable other EUD elements if bootloader has enabled it */
	if (msm_eud_hw_is_enabled(pdev)) {
		msm_eud_enable_irqs(chip);

		/*
		 * Set the default cable state to usb connect and charger
		 * enable
		 */
		ret = extcon_set_state_sync(chip->extcon, EXTCON_USB, true);
		if (ret)
			dev_warn(&pdev->dev, "Failed to set EXTCON_USB (%d)\n",
				ret);

		ret = extcon_set_state_sync(chip->extcon,
						EXTCON_CHG_USB_SDP, true);
		if (ret)
			dev_warn(&pdev->dev,
				"Failed to set EXTCON_CHG_USB_SDP (%d)\n", ret);

		enable = EUD_ENABLE_CMD;
	}