From: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
To: <naidu.tellapati@gmail.com>, <wim@iguana.be>,
<linux@roeck-us.net>, <abrestic@chromium.org>,
<james.hartley@imgtec.com>, <james.hogan@imgtec.com>
Cc: <linux-watchdog@vger.kernel.org>, <devicetree@vger.kernel.org>,
<arul.ramasamy@imgtec.com>,
Jude Abraham <Jude.Abraham@imgtec.com>,
"Naidu Tellapati" <Naidu.Tellapati@imgtec.com>
Subject: Re: [PATCH RESEND v5 1/2] watchdog: ImgTec PDC Watchdog Timer Driver
Date: Mon, 24 Nov 2014 11:41:34 -0300 [thread overview]
Message-ID: <5473439E.4000901@imgtec.com> (raw)
In-Reply-To: <1416597957-10516-2-git-send-email-Naidu.Tellapati@gmail.com>
Hi Naidu,
Just a few nitpicks on my side. See below.
On 11/21/2014 04:25 PM, naidu.tellapati@gmail.com wrote:
> From: Jude Abraham <Jude.Abraham@imgtec.com>
>
> This commit adds support for ImgTec PowerDown Controller Watchdog Timer.
>
> Signed-off-by: Jude Abraham <Jude.Abraham@imgtec.com>
> Signed-off-by: Naidu Tellapati <Naidu.Tellapati@imgtec.com>
> Reviewed-by: Andrew Bresticker <abrestic@chromium.org>
[..]
> +
> +struct pdc_wdt_dev {
> + struct device *dev;
'dev' is unused.
> + struct watchdog_device wdt_dev;
> + struct clk *wdt_clk;
> + struct clk *sys_clk;
> + unsigned long clk_rate;
'clk_rate' is unused.
> + int min_delay;
> + void __iomem *base;
> +};
> +
[..]
> +
> +/* Start the watchdog timer (delay should already be set */
Typo here: missing closing parenthesis.
[..]
> +
> +static int pdc_wdt_probe(struct platform_device *pdev)
> +{
> + int ret, val;
> + struct resource *res;
> + struct pdc_wdt_dev *pdc_wdt;
> +
> + pdc_wdt = devm_kzalloc(&pdev->dev, sizeof(*pdc_wdt), GFP_KERNEL);
> + if (!pdc_wdt)
> + return -ENOMEM;
> +
> + res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> + pdc_wdt->base = devm_ioremap_resource(&pdev->dev, res);
> + if (IS_ERR(pdc_wdt->base))
> + return PTR_ERR(pdc_wdt->base);
> +
> + pdc_wdt->sys_clk = devm_clk_get(&pdev->dev, "sys");
> + if (IS_ERR(pdc_wdt->sys_clk)) {
> + dev_err(&pdev->dev, "failed to get the sys clock.\n");
> + ret = PTR_ERR(pdc_wdt->wdt_clk);
> + goto out_wdt;
I'd say remove all uses of the out_wdt label and just return ret.
Reviewed-by: Ezequiel Garcia <ezequiel.garcia@imgtec.com>
Wim: Any comments? We're aiming at having this driver merged for v3.19.
Thanks!
--
Ezequiel
next prev parent reply other threads:[~2014-11-24 14:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-21 19:25 [PATCH RESEND v5 0/2] watchdog: Add support for ImgTec PowerDown Controller Watchdog Timer naidu.tellapati
2014-11-21 19:25 ` [PATCH RESEND v5 1/2] watchdog: ImgTec PDC Watchdog Timer Driver naidu.tellapati
2014-11-24 14:41 ` Ezequiel Garcia [this message]
2014-11-21 19:25 ` [PATCH RESEND v5 2/2] DT: watchdog: Add ImgTec PDC Watchdog Timer binding documentation naidu.tellapati
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5473439E.4000901@imgtec.com \
--to=ezequiel.garcia@imgtec.com \
--cc=Jude.Abraham@imgtec.com \
--cc=Naidu.Tellapati@imgtec.com \
--cc=abrestic@chromium.org \
--cc=arul.ramasamy@imgtec.com \
--cc=devicetree@vger.kernel.org \
--cc=james.hartley@imgtec.com \
--cc=james.hogan@imgtec.com \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=naidu.tellapati@gmail.com \
--cc=wim@iguana.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox