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: Girish Mahadevan <girishm@codeaurora.org>
This commit is contained in:
Girish Mahadevan 2016-10-07 12:32:58 -06:00 committed by Gerrit - the friendly Code Review server
parent c6b7d9674c
commit 2ea1cecd04

View file

@ -3555,6 +3555,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)