All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Wim Van Sebroeck <wim@iguana.be>,
	Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Linux Watchdog Mailing List <linux-watchdog@vger.kernel.org>,
	Maxime Ripard <maxime.ripard@free-electrons.com>,
	Jingoo Han <jg1.han@samsung.com>,
	Dan Carpenter <dan.carpenter@oracle.com>
Subject: Re: [GIT PULL REQUEST] watchdog - v3.12-rc4 Fixes
Date: Sun, 13 Oct 2013 11:14:41 -0700	[thread overview]
Message-ID: <525AE311.8060605@roeck-us.net> (raw)
In-Reply-To: <20131013180727.GN401@spo001.leaseweb.com>

On 10/13/2013 11:07 AM, Wim Van Sebroeck wrote:
> Hi Linus,
>
> Please pull from 'master' branch of
> 	git://www.linux-watchdog.org/linux-watchdog.git
>
> This will fix a deadlock on the ts72xx_wdt driver,
> fix bitmasks in the kempld_wdt driver and
> fix a section mismatch in the sunxi_wdt driver.
>
> This will update the following files:
>
>   kempld_wdt.c |    2 +-
>   sunxi_wdt.c  |    4 ++--
>   ts72xx_wdt.c |    3 ++-
>   3 files changed, 5 insertions(+), 4 deletions(-)
>
> with these Changes:
>
> commit 1d5898b4f8a0f6e231546d30dd54f6f9b89c232c
> Author: Maxime Ripard <maxime.ripard@free-electrons.com>
> Date:   Sat Oct 5 16:20:17 2013 +0200
>
>      watchdog: sunxi: Fix section mismatch
>
>      This driver has a section mismatch, for probe and remove functions,
>      leading to the following warning during the compilation.
>
>      WARNING: drivers/watchdog/built-in.o(.data+0x24): Section mismatch in
>      reference from the variable sunxi_wdt_driver to the function
>      .init.text:sunxi_wdt_probe()
>      The variable sunxi_wdt_driver references
>      the function __init sunxi_wdt_probe()
>
>      Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
>      Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>      Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
>
> commit 4c4e45669de475573b15d968a6dca8d00124c9ad
> Author: Jingoo Han <jg1.han@samsung.com>
> Date:   Mon Sep 23 19:16:57 2013 +0900
>
>      watchdog: kempld_wdt: Fix bit mask definition
>
>      STAGE_CFG bits are defined as [5:4] bits. However, '(((x) & 0x30) << 4)'
>      handles [9:8] bits. Thus, it should be fixed in order to handle
>      [5:4] bits.
>
>      Signed-off-by: Jingoo Han <jg1.han@samsung.com>
>      Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>      Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
>
> commit 8612ed0d97abcf1c016d34755b7cf2060de71963
> Author: Dan Carpenter <dan.carpenter@oracle.com>
> Date:   Fri Aug 23 11:40:59 2013 +0300
>
>      watchdog: ts72xx_wdt: locking bug in ioctl
>
>      Calling the WDIOC_GETSTATUS & WDIOC_GETBOOTSTATUS and twice will cause a
>      interruptible deadlock.
>
>      Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>      Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>      Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
>
> For completeness, I added the overal diff below.
>
Hi Wim,

thanks a lot for picking up those patches.

Looks like the diffs don't match the description.
Are those possibly the diffs from your previous pull request ?

Guenter

> Greetings,
> Wim.
>
> ================================================================================
> diff --git a/drivers/watchdog/hpwdt.c b/drivers/watchdog/hpwdt.c
> index 1eff743..ae60406 100644
> --- a/drivers/watchdog/hpwdt.c
> +++ b/drivers/watchdog/hpwdt.c
> @@ -814,6 +814,9 @@ static int __devinit hpwdt_init_one(struct pci_dev *dev,
>   	hpwdt_timer_reg = pci_mem_addr + 0x70;
>   	hpwdt_timer_con = pci_mem_addr + 0x72;
>
> +	/* Make sure that timer is disabled until /dev/watchdog is opened */
> +	hpwdt_stop();
> +
>   	/* Make sure that we have a valid soft_margin */
>   	if (hpwdt_change_timer(soft_margin))
>   		hpwdt_change_timer(DEFAULT_MARGIN);
> diff --git a/drivers/watchdog/watchdog_core.c b/drivers/watchdog/watchdog_core.c
> index 6aa46a9..3796434 100644
> --- a/drivers/watchdog/watchdog_core.c
> +++ b/drivers/watchdog/watchdog_core.c
> @@ -128,11 +128,12 @@ EXPORT_SYMBOL_GPL(watchdog_register_device);
>   void watchdog_unregister_device(struct watchdog_device *wdd)
>   {
>   	int ret;
> -	int devno = wdd->cdev.dev;
> +	int devno;
>
>   	if (wdd == NULL)
>   		return;
>
> +	devno = wdd->cdev.dev;
>   	ret = watchdog_dev_unregister(wdd);
>   	if (ret)
>   		pr_err("error unregistering /dev/watchdog (err=%d)\n", ret);
> --
> To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>


  reply	other threads:[~2013-10-13 18:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-13 18:07 [GIT PULL REQUEST] watchdog - v3.12-rc4 Fixes Wim Van Sebroeck
2013-10-13 18:14 ` Guenter Roeck [this message]
2013-10-13 18:19   ` Wim Van Sebroeck
2013-10-13 18:29     ` Guenter Roeck
  -- strict thread matches above, loose matches on Subject: below --
2013-10-10 20:28 Wim Van Sebroeck

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=525AE311.8060605@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=akpm@linux-foundation.org \
    --cc=dan.carpenter@oracle.com \
    --cc=jg1.han@samsung.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=maxime.ripard@free-electrons.com \
    --cc=torvalds@linux-foundation.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.