diff options
author | x0169938 <vasyl.yushchyshen@ti.com> | 2012-04-19 11:37:26 +0300 |
---|---|---|
committer | Ziyann <jaraidaniel@gmail.com> | 2014-10-01 13:00:33 +0200 |
commit | 7b83a816cb3f817389ca21ea4a1fe032d2b481a1 (patch) | |
tree | a0c3ac73f2b7f8b0c112d14e681f6b5bdc0444c3 /drivers | |
parent | 9e5adea6434d79fb329df1feed585f9718dc4b68 (diff) | |
download | kernel_samsung_tuna-7b83a816cb3f817389ca21ea4a1fe032d2b481a1.zip kernel_samsung_tuna-7b83a816cb3f817389ca21ea4a1fe032d2b481a1.tar.gz kernel_samsung_tuna-7b83a816cb3f817389ca21ea4a1fe032d2b481a1.tar.bz2 |
TWL6030: relaxing the GPADC busy loop with a sleep.
After GPADC conversion is started, we wait for finish it with
a busy flag polling in twl6030_gpadc_wait_conversion_ready().
Actually the GPADC busy loop finishes immediately, but for the
worst case condition the sleep is added.
modified: drivers/mfd/twl6030-gpadc.c
Change-Id: If20a9bfe6943814bcce98e591fd876d66f986e44
Signed-off-by: x0169938 <vasyl.yushchyshen@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/twl6030-gpadc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/twl6030-gpadc.c b/drivers/mfd/twl6030-gpadc.c index 772634b..a379161 100644 --- a/drivers/mfd/twl6030-gpadc.c +++ b/drivers/mfd/twl6030-gpadc.c @@ -657,6 +657,7 @@ static int twl6030_gpadc_wait_conversion_ready( do { if (twl6030_gpadc_is_conversion_ready(gpadc, status_reg)) return 0; + msleep_interruptible(1); } while (!time_after(jiffies, timeout)); /* one more checking against scheduler-caused timeout */ |