aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/ti-st
diff options
context:
space:
mode:
authorPavan Savoy <pavan_savoy@ti.com>2011-08-03 13:16:33 -0500
committerZiyann <jaraidaniel@gmail.com>2014-10-01 12:56:40 +0200
commitc59d24f5c9c4bcfe21197b1d4a30fc81dc929645 (patch)
tree2ba4ac66c3e4585c2fa5ba39f5bca9335624a8aa /drivers/misc/ti-st
parentcd8fab97a4baba1aefd9a21ffe14ecf46351ec49 (diff)
downloadkernel_samsung_tuna-c59d24f5c9c4bcfe21197b1d4a30fc81dc929645.zip
kernel_samsung_tuna-c59d24f5c9c4bcfe21197b1d4a30fc81dc929645.tar.gz
kernel_samsung_tuna-c59d24f5c9c4bcfe21197b1d4a30fc81dc929645.tar.bz2
drivers:misc: ti-st: fix unexpected UART close
If suppose the UIM were to die and hence UART were to close when the Bluetooth/FM or GPS is turned on, prep the ST for a state where-in if the UIM comes back up, Bluetooth/FM/GPS can be turned on. Change-Id: If3a0f100c69d485c343e189c4a483db26961b6b7 Signed-off-by: Pavan Savoy <pavan_savoy@ti.com>
Diffstat (limited to 'drivers/misc/ti-st')
-rw-r--r--drivers/misc/ti-st/st_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c
index 3b20f96..f149fb9 100644
--- a/drivers/misc/ti-st/st_core.c
+++ b/drivers/misc/ti-st/st_core.c
@@ -730,6 +730,7 @@ static void st_tty_close(struct tty_struct *tty)
if (st_gdata->list[i] != NULL)
pr_err("%d not un-registered", i);
st_gdata->list[i] = NULL;
+ st_gdata->is_registered[i] = false;
}
st_gdata->protos_registered = 0;
spin_unlock_irqrestore(&st_gdata->lock, flags);