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

Commit b12c6840 authored by Shubhasini Sugumaran's avatar Shubhasini Sugumaran Committed by Gerrit - the friendly Code Review server
Browse files

ARM: dts: msm: Change default state to sleep



Change in pin state from active to sleep induced abnormal bias
which produced pop noise in 6155/8155.
Propagated from f4883ad19bb49a1221f2d3844454dffb3e348f52.

Change-Id: I69eb7a6d17a0ae9e28f4cd78495c6f043b53209e
Signed-off-by: default avatarShubhasini Sugumaran <quic_c_shubsu@quicinc.com>
parent 5d67c58c
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -3946,12 +3946,20 @@ static int msm_pinctrl_init(struct platform_device *pdev, enum pinctrl_mode mode
		pinctrl_info->pinctrl = pinctrl;

		/* get all the states handles from Device Tree */
		if (mode == TDM_PINCTRL)
			pinctrl_info->sleep = pinctrl_lookup_state(pinctrl,
				"default");
		else
			pinctrl_info->sleep = pinctrl_lookup_state(pinctrl,
                                "sleep");
		if (IS_ERR(pinctrl_info->sleep)) {
			pr_err("%s: could not get sleep pin state\n", __func__);
			goto err;
		}
		if (mode == TDM_PINCTRL)
			pinctrl_info->active = pinctrl_lookup_state(pinctrl,
				"active");
		else
			pinctrl_info->active = pinctrl_lookup_state(pinctrl,
                                "default");
		if (IS_ERR(pinctrl_info->active)) {
+2 −2
Original line number Diff line number Diff line
@@ -5183,13 +5183,13 @@ static int msm_get_pinctrl(struct platform_device *pdev)

		/* get all the states handles from Device Tree */
		pinctrl_info->sleep = pinctrl_lookup_state(pinctrl,
							"sleep");
							"default");
		if (IS_ERR(pinctrl_info->sleep)) {
			pr_err("%s: could not get sleep pin state\n", __func__);
			goto err;
		}
		pinctrl_info->active = pinctrl_lookup_state(pinctrl,
							"default");
							"active");
		if (IS_ERR(pinctrl_info->active)) {
			pr_err("%s: could not get active pin state\n",
				__func__);