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

Commit d9df577b authored by Girish Mahadevan's avatar Girish Mahadevan Committed by Gerrit - the friendly Code Review server
Browse files

serial: msm_serial_hs: Move HS UART pins to known state at probe



During probe the driver does a devm_pinctrl_get() on the GPIOs assigned
to it. This call doesn't move the state of pins (bias/drv strength) to a
known state, rather only sets the function mux for those pins. As a result
the pins are in an unknown/floating state till a usecase for the port
begins.
Instead move the pins to the "sleep" state during probe to put them into a
known state.

Change-Id: Ifc6102d367fb0ca9fffbd50a6077dccd779e9a6c
Signed-off-by: default avatarGirish Mahadevan <girishm@codeaurora.org>
parent ef3068bf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3575,6 +3575,7 @@ static int msm_hs_probe(struct platform_device *pdev)
	}

	msm_serial_debugfs_init(msm_uport, pdev->id);
	msm_hs_unconfig_uart_gpios(uport);

	uport->line = pdev->id;
	if (pdata->userid && pdata->userid <= UARTDM_NR)