From 2ea1cecd04ecec79499e270a1a693ef0b167fa81 Mon Sep 17 00:00:00 2001 From: Girish Mahadevan Date: Fri, 7 Oct 2016 12:32:58 -0600 Subject: [PATCH] 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 --- drivers/tty/serial/msm_serial_hs.c | 1 + 1 file changed, 1 insertion(+) 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)