diff options
author | Semen Protsenko <semen.protsenko@ti.com> | 2012-04-20 12:13:23 +0300 |
---|---|---|
committer | Dmytro Kedrovskyi <x0169235@ti.com> | 2012-07-11 16:55:43 +0300 |
commit | 6eaf87d88289afd4a6c60069e8e5935a0e5f6a49 (patch) | |
tree | 0375b3bb6da26a183b9a272afdec810baec4f627 /drivers/misc/ti-st | |
parent | 41c49e6fb203e66b75de9b82479cd0754b515a93 (diff) | |
download | kernel_samsung_espresso10-6eaf87d88289afd4a6c60069e8e5935a0e5f6a49.tar.gz kernel_samsung_espresso10-6eaf87d88289afd4a6c60069e8e5935a0e5f6a49.tar.bz2 kernel_samsung_espresso10-6eaf87d88289afd4a6c60069e8e5935a0e5f6a49.zip |
OMAP4: ST: Disabling UART if ldisc not installed.
In cases when there is no line discipline to be installed UART chip must be
disabled.
Rationale: if ldisc is not installed so it can't be uninstalled.
Thus UART chip still enabled and we have wakelock for it
(see plat_uart_enable() function in both blaze and 44xx-tablet board files).
In that case we can't go in suspend mode.
Motivation: when using busybox ramdisk (e.g. for testing kernel w/o AFS) we
have no ldisc that causes impossibility to go to suspend mode.
Change-Id: I6fac0b9411ed765e8e598328b89a41a50b5fbfea
Signed-off-by: Semen Protsenko <semen.protsenko@ti.com>
Diffstat (limited to 'drivers/misc/ti-st')
-rw-r--r-- | drivers/misc/ti-st/st_kim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/ti-st/st_kim.c b/drivers/misc/ti-st/st_kim.c index 4c5dfb6414c..fc2c5adbe9f 100644 --- a/drivers/misc/ti-st/st_kim.c +++ b/drivers/misc/ti-st/st_kim.c @@ -529,7 +529,7 @@ long st_kim_stop(void *kim_data) msecs_to_jiffies(LDISC_TIME)); if (!err) { /* timeout */ pr_err(" timed out waiting for ldisc to be un-installed"); - return -ETIMEDOUT; + err = -ETIMEDOUT; } /* By default configure BT nShutdown to LOW state */ |