[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4ecbe56d.0B7WEVDKkK1s88MJ%marc.vertes@sigfox.com>
Date: Tue, 22 Nov 2011 19:09:49 +0100
From: Marc Vertes <marc.vertes@...fox.com>
To: w.sang@...gutronix.de
Cc: Wim@...r.kernel.org, wim@...ana.be, Welte@...r.kernel.org,
Van@...r.kernel.org, Sebroeck@...r.kernel.org,
linux-watchdog@...r.kernel.org, linux-kernel@...r.kernel.org,
HaraldWelte@...tech.com, Harald@...r.kernel.org
Subject: Re: [PATCH RFC] watchdog: add a new driver for VIA chipsets
Wolfram Sang <w.sang@...gutronix.de> wrote:
> > + dev_info(&pdev->dev, "VIA Chipset watchdog MMIO: %x\n", mmio);
> > + if (mmio == 0) {
> > + dev_err(&pdev->dev, "watchdog timer is not enabled in BIOS\n");
> > + return -ENODEV;
> > + }
>
> What about
>
> if (mmio != 0) {
> dev_info("VIA Chipset...")
> } else {
> dev_err()
> return -ENODEV;
> }
>
> to only have the needed printouts.
>
Ok.
> > + ret = watchdog_register_device(&wdt_dev);
> > + if (ret)
> > + return ret;
>
> You need to iounmap in the error-case.
Yes. Good catch.
>
> > + watchdog_set_drvdata(&wdt_dev, wdt_mem);
> > + if (readl(wdt_mem) & VIA_WDT_FIRED) {
> > + wdt_dev.bootstatus |= WDIOF_CARDRESET;
> > + dev_notice(&pdev->dev, "restarted by expired watchdog\n");
>
> Skip the printout. This can be detected using CARDRESET.
>
Ok.
> > +/*
> > + * The driver has not been tested yet on CX700 and VX800.
> > + */
>
> Then, I'd rather skip this comment and the IDs. Or if you are sure enough it
> works, leave them in ;) Best option would be testers showing up.
>
Then I take the risk and remove the comments ;). This is stable stuff inherited
from old models...
> Regards,
>
> Wolfram
>
Thanks for your comments, I'm preparing an update.
--
Marc
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists