summaryrefslogtreecommitdiff
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorGirish Mahadevan <girishm@codeaurora.org>2016-10-07 12:32:58 -0600
committerGerrit - the friendly Code Review server <code-review@localhost>2016-10-18 11:48:27 -0700
commit2ea1cecd04ecec79499e270a1a693ef0b167fa81 (patch)
tree299e4fad41988594a6f49cfbc77282402825d465 /drivers/tty/serial
parentc6b7d9674c413431a6622844bdcbfc8a7f2942df (diff)
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>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/msm_serial_hs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/msm_serial_hs.c b/drivers/tty/serial/msm_serial_hs.c
index fa3c9e511663..ec9288791667 100644
--- a/drivers/tty/serial/msm_serial_hs.c
+++ b/drivers/tty/serial/msm_serial_hs.c
@@ -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)