Skip to content

Commit

Permalink
[WATCHDOG] s3c2410_wdt announce initialisation
Browse files Browse the repository at this point in the history
Announce the watchdog once the initialisation is
complete. This aides debugging problems where the
watchdog driver has been loaded and shows the
current state for the user.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
  • Loading branch information
Ben Dooks authored and Wim Van Sebroeck committed Jun 17, 2007
1 parent 47d1776 commit 46b814d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions drivers/char/watchdog/s3c2410_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ static irqreturn_t s3c2410wdt_irq(int irqno, void *param)
static int s3c2410wdt_probe(struct platform_device *pdev)
{
struct resource *res;
unsigned int wtcon;
int started = 0;
int ret;
int size;
Expand Down Expand Up @@ -433,6 +434,16 @@ static int s3c2410wdt_probe(struct platform_device *pdev)
s3c2410wdt_stop();
}

/* print out a statement of readiness */

wtcon = readl(wdt_base + S3C2410_WTCON);

dev_info(&pdev->dev,
"watchdog %sactive, reset %sabled, irq %sabled\n",
(wtcon & S3C2410_WTCON_ENABLE) ? "" : "in",
(wtcon & S3C2410_WTCON_RSTEN) ? "" : "dis",
(wtcon & S3C2410_WTCON_INTEN) ? "" : "en");

return 0;

err_clk:
Expand Down

0 comments on commit 46b814d

Please sign in to comment.