All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: "Yong, Jonathan" <jonathan.yong@intel.com>,
	linux-watchdog@vger.kernel.org,
	platform-driver-x86@vger.kernel.org
Cc: qipeng.zha@intel.com
Subject: Re: [PATCH 1/2] watchdog: iTCO-wdt handle 5th variation for Apollo Lake
Date: Wed, 18 May 2016 07:37:17 -0700	[thread overview]
Message-ID: <573C7E1D.3040602@roeck-us.net> (raw)
In-Reply-To: <1463541972-19758-2-git-send-email-jonathan.yong@intel.com>

On 05/17/2016 08:26 PM, Yong, Jonathan wrote:
> The Apollo Lake Watchdog has the no_reboot flag in the 4th bit.
>
> Signed-off-by: Yong, Jonathan <jonathan.yong@intel.com>

Acked-by: Guenter Roeck <linux@roeck-us.net>

> ---
>   drivers/watchdog/iTCO_wdt.c | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c
> index 0acc6c5..eccba32 100644
> --- a/drivers/watchdog/iTCO_wdt.c
> +++ b/drivers/watchdog/iTCO_wdt.c
> @@ -150,6 +150,9 @@ static inline u32 no_reboot_bit(void)
>   	u32 enable_bit;
>
>   	switch (iTCO_wdt_private.iTCO_version) {
> +	case 5:
> +		enable_bit = 0x00000008;
> +		break;
>   	case 3:
>   		enable_bit = 0x00000010;
>   		break;
> @@ -512,6 +515,7 @@ static int iTCO_wdt_probe(struct platform_device *dev)
>
>   	/* Clear out the (probably old) status */
>   	switch (iTCO_wdt_private.iTCO_version) {
> +	case 5:
>   	case 4:
>   		outw(0x0008, TCO1_STS);	/* Clear the Time Out Status bit */
>   		outw(0x0002, TCO2_STS);	/* Clear SECOND_TO_STS bit */
>


  reply	other threads:[~2016-05-18 14:37 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18  3:26 [PATCH 0/2] Correct iTCO Watchdog for Apollo Lake Yong, Jonathan
2016-05-18  3:26 ` Yong, Jonathan
2016-05-18  3:26 ` [PATCH 1/2] watchdog: iTCO-wdt handle 5th variation " Yong, Jonathan
2016-05-18 14:37   ` Guenter Roeck [this message]
2016-05-18  3:26 ` [PATCH 2/2] x86: Fix Apollo Lake Watchdog address in PMC driver Yong, Jonathan
2016-05-18  3:26   ` Yong, Jonathan
2016-05-18  4:03   ` Guenter Roeck
2016-05-18  4:03     ` Guenter Roeck
2016-05-18  4:48     ` Yong, Jonathan
2016-05-18 14:37       ` Guenter Roeck
2016-05-18 14:37         ` Guenter Roeck
2016-05-24 20:13         ` Darren Hart
2016-05-24 20:13           ` Darren Hart
2016-05-25  7:55           ` Yong, Jonathan
2016-05-25  7:55             ` Yong, Jonathan
2016-06-02  8:28             ` Yong, Jonathan
2016-06-02  8:28               ` Yong, Jonathan
2016-06-07 22:03               ` Darren Hart
2016-06-13  4:42                 ` Yong, Jonathan
2016-06-13  4:42                   ` Yong, Jonathan
2016-06-17  0:33 ` [PATCH v2 0/2] Correct iTCO Watchdog for Apollo Lake Yong, Jonathan
2016-06-17  0:33   ` [PATCH v2 1/2] watchdog: iTCO-wdt handle 5th variation " Yong, Jonathan
2016-06-23 13:39     ` Guenter Roeck
2016-06-17  0:33   ` [PATCH v2 2/2] x86: Fix Apollo Lake Watchdog address in PMC driver Yong, Jonathan
2016-06-17  0:33     ` Yong, Jonathan
2016-06-23 13:39     ` Guenter Roeck
2016-07-17 20:16   ` [PATCH v2 0/2] Correct iTCO Watchdog for Apollo Lake Wim Van Sebroeck
2016-07-17 20:16     ` Wim Van Sebroeck
2016-07-18  0:00     ` Yong, Jonathan
2016-06-17  0:36 ` Yong, Jonathan
2016-06-17  0:36   ` [PATCH v2 1/2] watchdog: iTCO-wdt handle 5th variation " Yong, Jonathan
2016-06-17  0:36   ` [PATCH v2 2/2] x86: Fix Apollo Lake Watchdog address in PMC driver Yong, Jonathan
2016-06-22  4:53   ` [PATCH v2 0/2] Correct iTCO Watchdog for Apollo Lake Yong, Jonathan
2016-06-22  4:53     ` Yong, Jonathan
2016-06-22  6:01     ` Guenter Roeck
2016-06-23  5:02       ` Darren Hart
2016-06-23  5:02         ` Darren Hart
2016-06-23 13:37         ` Guenter Roeck
2016-06-23 13:37           ` Guenter Roeck

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=573C7E1D.3040602@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=jonathan.yong@intel.com \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=qipeng.zha@intel.com \
    /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.