projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8691331
)
watchdog: sbc_fitpc2_wdt: fixed I/O operations order
author
Denis Turischev
<denis@compulab.co.il>
Thu, 22 Apr 2010 16:50:03 +0000
(19:50 +0300)
committer
Wim Van Sebroeck
<wim@iguana.be>
Mon, 26 Apr 2010 18:17:34 +0000
(18:17 +0000)
There are fitpc2 compatible boards that hang with existent i/o
operations order. Solution is to switch between writing to data
and command ports.
Signed-off-by: Denis Turischev <denis@compulab.co.il>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/sbc_fitpc2_wdt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/watchdog/sbc_fitpc2_wdt.c
b/drivers/watchdog/sbc_fitpc2_wdt.c
index 8d44c9b6fb5b75dbfaed1ad674b6665204c9bae2..2e44dd4e7c1baa70a06a0002fb2cd68670b0683c 100644
(file)
--- a/
drivers/watchdog/sbc_fitpc2_wdt.c
+++ b/
drivers/watchdog/sbc_fitpc2_wdt.c
@@
-45,10
+45,10
@@
static DEFINE_SPINLOCK(wdt_lock);
static void wdt_send_data(unsigned char command, unsigned char data)
{
- outb(command, COMMAND_PORT);
- msleep(100);
outb(data, DATA_PORT);
msleep(200);
+ outb(command, COMMAND_PORT);
+ msleep(100);
}
static void wdt_enable(void)