Skip to content

Commit

Permalink
watchdog: sbc_fitpc2_wdt: fixed I/O operations order
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Denis Turischev authored and Wim Van Sebroeck committed Apr 26, 2010
1 parent 8691331 commit fcf1dd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/watchdog/sbc_fitpc2_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fcf1dd7

Please sign in to comment.